avatarone / vagrant

Virtual machine configurations for ready-made experiment machines
Apache License 2.0
1 stars 0 forks source link

error when creating the vagrant machine: 'features.h' file not found #2

Closed gitttt closed 8 years ago

gitttt commented 8 years ago

When trying to build the vagrant machine:

==> default: In file included from
==> default: /home/vagrant/projects/news2e-build/llvm-3.2.src.native/projects/compiler-rt/lib/enable_execute_stack.c
==> default: :
==> default: 13
==> default: :
==> default: /usr/include/x86_64-linux-gnu/sys/mman.h
==> default: :
==> default: 22
==> default: :
==> default: 10
==> default: :
==> default:
==> default: fatal error:
==> default: 'features.h' file not found
==> default: #include <features.h>
==> default:          ^
==> default: 1
==> default:  error
==> default:  generated.
==> default: make[6]: *** [/home/vagrant/projects/news2e-build/llvm-native/tools/clang/runtime/compiler-rt/clang_linux/f
ull-i386/i386/SubDir.lib/enable_execute_stack.o] Error 1
==> default: make[6]: *** Waiting for unfinished jobs....
==> default: make[6]: Leaving directory `/home/vagrant/projects/news2e-build/llvm-3.2.src.native/projects/compiler-rt'
==> default: make[5]:
==> default: *** [BuildRuntimeLibraries] Error 2
==> default: rm /home/vagrant/projects/news2e-build/llvm-native/Release/lib/clang/3.2/lib/linux/.dir
==> default: make[5]: Leaving directory `/home/vagrant/projects/news2e-build/llvm-native/tools/clang/runtime/compiler-rt
'
==> default: make[4]:
==> default: *** [compiler-rt/.makeall] Error 2
==> default: make[4]: Leaving directory `/home/vagrant/projects/news2e-build/llvm-native/tools/clang/runtime'
==> default: make[3]:
==> default: *** [all] Error 1
==> default: make[3]: Leaving directory `/home/vagrant/projects/news2e-build/llvm-native/tools/clang'
==> default: make[2]:
==> default: *** [clang/.makeall] Error 2
==> default: make[2]: Leaving directory `/home/vagrant/projects/news2e-build/llvm-native/tools'
==> default: make[1]:
==> default: *** [all] Error 1
==> default: make[1]: Leaving directory `/home/vagrant/projects/news2e-build/llvm-native'
==> default: make:
==> default: *** [stamps/llvm-native-make] Error 2
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
aurelf commented 8 years ago

I confirm the problem, a workaround, rebuild with verbose: VERBOSE=1 TOOL_VERBOSE=1 make -f ../news2e/Makefile Then identify the failing command and relaunch it by hand: make -C /home/vagrant/projects/news2e-build/llvm-3.2.src.native/projects/compiler-rt \ ProjSrcRoot=/home/vagrant/projects/news2e-build/llvm-3.2.src.native/projects/compiler-rt \ ProjObjRoot=/home/vagrant/projects/news2e-build/llvm-native/tools/clang/runtime/compiler-rt \ CC="/home/vagrant/projects/news2e-build/llvm-native/Release/bin/clang" \ LLVM_ANDROID_TOOLCHAIN_DIR="" \ clang_linux

Strangely this succeeds and allows to relaunch the compilation ( i.e. make -f ../news2e/Makefile again). This seem to be a known problem with the path: https://groups.google.com/forum/#!topic/llvm-dev/U4gGLywLwu0

zaddach commented 8 years ago

I added a step to the provisioning script to restart the build. While being an ugly workaround, this should fix the problem for now.