FireBurn / Overlay

Gentoo Overly
GNU General Public License v3.0
21 stars 6 forks source link

llvm-32bit fails to build #3

Closed hvenev closed 11 years ago

hvenev commented 11 years ago

llvm[1]: Compiling llvm-config.cpp for Release build if x86_64-pc-linux-gnu-g++ -I/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/include -I/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config -DNDEBUG -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/Release -fvisibility-inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual -O2 -pipe -O2 -pipe -fomit-frame-pointer -march=corei7 -mtune=corei7 -O2 -march=corei7 -mtune=corei7 -m32 -I/usr/lib64/libffi-3.0.11/include -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -c -MMD -MP -MF "/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/Release/llvm-config.d.tmp" -MT "/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/Release/llvm-config.o" -MT "/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/Release/llvm-config.d" llvm-config.cpp -o /var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/Release/llvm-config.o ; \ then /bin/mv -f "/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/Release/llvm-config.d.tmp" "/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/Release/llvm-config.d"; else /bin/rm "/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/Release/llvm-config.d.tmp"; exit 1; fi llvm-config.cpp:45:35: fatal error: LibraryDependencies.inc: No such file or directory compilation terminated. /bin/rm: cannot remove ‘/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/Release/llvm-config.d.tmp’: No such file or directory make[1]: * [/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/Release/llvm-config.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config' make: * [all] Error 1

FireBurn commented 11 years ago

Please can you pastebin your build.log and also your make.conf - what USE flags are you using for this package?

This is what I currently have: sys-devel/llvm-9999::FireBurn USE="amdgpu gold libffi multitarget -debug -ocaml {-test} -udis86 -vim-syntax"

pmichals commented 11 years ago

On my machine build fails with the same error which mustrumr got. I tried both with default USE flags and with those specified above. Currently I have this: sys-devel/llvm-32bit-9999::FireBurn USE="amdgpu gold libffi multitarget -debug -ocaml {-test} -udis86 -vim-syntax" Build.log pastebin: http://pastebin.com/BCwjmtcq (1/5) http://pastebin.com/0DX4E75F (2/5) http://pastebin.com/JmRNyFv3 (3/5) http://pastebin.com/jwK0jex9 (4/5) http://pastebin.com/0teHxnFn (5/5)

make.conf: http://pastebin.com/Cgf2qkh8

FireBurn commented 11 years ago

Out of interest does the llvm-9999-r1 package install correctly? Also which emul packages do you have installed?

pmichals commented 11 years ago

Yes, the 64-bit version compiles without errors.

app-emulation/emul-linux-x86-baselibs-20121202 -development
app-emulation/emul-linux-x86-db-20121202 -development
app-emulation/emul-linux-x86-gtklibs-20121028 -development
app-emulation/emul-linux-x86-medialibs-20121028 -development
app-emulation/emul-linux-x86-opengl-20121028 -development
app-emulation/emul-linux-x86-qtlibs-20121028 -development -gtkstyle
app-emulation/emul-linux-x86-soundlibs-20121028 +alsa -development
app-emulation/emul-linux-x86-xlibs-20121028 +opengl -development
ghost commented 11 years ago

Looking up further in the build.log I see:

llvm[0]: Constructing LLVMBuild project information. /var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/utils/llvm-build/llvm-build \ --native-target "x86" \ --enable-targets "AMDGPU CppBackend X86 " \ --enable-optional-components "" \ --write-library-table /var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/tools/llvm-config/LibraryDependencies.inc \ --write-make-fragment /var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/Makefile.llvmbuild Traceback (most recent call last): File "/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/utils/llvm-build/llvm-build", line 3, in import llvmbuild File "/var/tmp/portage/sys-devel/llvm-32bit-9999/work/llvm-9999.src/utils/llvm-build/llvmbuild/init.py", line 1, in from main import main ImportError: No module named main for dir in lib/Support lib/TableGen utils lib/VMCore lib tools/llvm-shlib tools/llvm-config tools runtime docs unittests; do \ (make -C $dir all ) || exit 1; \ done

I don't know enough about how Python is being used to take a stab at a solution, but I think because the script can't import all of its modules, certain .inc files are not generated leading to the error.

FireBurn commented 11 years ago

Ah can you try eselecting python 2 manually before emerging

I had to remove the python eclass from the ebuild as it was trying to select a 32bit python with we don't have and isn't necessary

pmichals commented 11 years ago

With Python 2.7 llvm-32bit compiles without errors. Thanks for support.

FireBurn commented 11 years ago

If any one can figure out a way to force python 2 without needing a 32bit python please let me know

Until then I'm closing this off