Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PKRU-Safe Build Using Docker Image #1

Open
MJUCOM opened this issue Dec 1, 2022 · 0 comments
Open

PKRU-Safe Build Using Docker Image #1

MJUCOM opened this issue Dec 1, 2022 · 0 comments

Comments

@MJUCOM
Copy link

MJUCOM commented Dec 1, 2022

Hi!
I build the PKRU-Safe to test the benchmark from servo. However, An error occurred while building the docker image. I use the pre-built docker image in https://hub.docker.com/r/mgdickerson/pkru-safe. And I process the following commends.

  1. git clone https://github.com/securesystemslab/pkru-safe-automation.git automation
  2. cd automation
  3. docker pull mgdickerson/pkru-safe
  4. docker run -it mgdickerson/pkru-safe

[In Docker Environment]

  1. cd mpk-test/dir
  2. cd automation
  3. ./servo-requirement.sh
  4. ./build-servo.sh -t all ( This commend occur the error !!)

And the error message like below

configure:8978: checking whether malloc_usable_size definition can use const argument
configure:8989: /usr/bin/gcc -std=gnu99 -c -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 conftest.c 1>&5
configure:8983:26: error: conflicting types for 'malloc_usable_size'
In file included from configure:8981:
/usr/include/malloc.h:134:15: note: previous declaration of 'malloc_usable_size' was here
 extern size_t malloc_usable_size (void *__ptr) __THROW;
               ^~~~~~~~~~~~~~~~~~
configure: failed program was:
#line 8980 "configure"
#include "confdefs.h"
#include <malloc.h>
                  #include <stddef.h>
                  size_t malloc_usable_size(const void *ptr);
int main() {
return malloc_usable_size(0);
; return 0; }
configure:9011: checking for valloc in malloc.h
configure:9036: checking for valloc in unistd.h
configure:9066: checking for localeconv
INFO: Creating config.status

--- stderr
Traceback (most recent call last):
  File "/root/.cargo/git/checkouts/pkru-safe-mozjs-f23c4d365ae9f343/fcabb6a/mozjs/js/src/../../configure.py", line 124, in <module>
    sys.exit(main(sys.argv))
  File "/root/.cargo/git/checkouts/pkru-safe-mozjs-f23c4d365ae9f343/fcabb6a/mozjs/js/src/../../configure.py", line 35, in main
    return config_status(config)
  File "/root/.cargo/git/checkouts/pkru-safe-mozjs-f23c4d365ae9f343/fcabb6a/mozjs/js/src/../../configure.py", line 109, in config_status
    from mozbuild.config_status import config_status
  File "/root/.cargo/git/checkouts/pkru-safe-mozjs-f23c4d365ae9f343/fcabb6a/mozjs/build/mach_bootstrap.py", line 386, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/root/.cargo/git/checkouts/pkru-safe-mozjs-f23c4d365ae9f343/fcabb6a/mozjs/python/mozbuild/mozbuild/config_status.py", line 21, in <module>
    from mozbuild.base import MachCommandConditions
  File "/root/.cargo/git/checkouts/pkru-safe-mozjs-f23c4d365ae9f343/fcabb6a/mozjs/build/mach_bootstrap.py", line 386, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/root/.cargo/git/checkouts/pkru-safe-mozjs-f23c4d365ae9f343/fcabb6a/mozjs/python/mozbuild/mozbuild/base.py", line 20, in <module>
    from mach.mixin.process import ProcessExecutionMixin
  File "/root/.cargo/git/checkouts/pkru-safe-mozjs-f23c4d365ae9f343/fcabb6a/mozjs/build/mach_bootstrap.py", line 386, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/root/.cargo/git/checkouts/pkru-safe-mozjs-f23c4d365ae9f343/fcabb6a/mozjs/python/mach/mach/mixin/process.py", line 30, in <module>
    raise Exception('Could not detect environment shell!')
Exception: Could not detect environment shell!
make: *** [makefile.cargo:186: maybe-configure] Error 1

So, I spend more time to solve this error.. But i can`t solve this error.
Is there any solution or way to build the PKRU-safe and test the servo using benchmark??

Thank you!
Have a nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant