-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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.
- git clone https://github.com/securesystemslab/pkru-safe-automation.git automation
- cd automation
- docker pull mgdickerson/pkru-safe
- docker run -it mgdickerson/pkru-safe
[In Docker Environment]
- cd mpk-test/dir
- cd automation
- ./servo-requirement.sh
- ./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!
Metadata
Metadata
Assignees
Labels
No labels