Closed dslm4515 closed 3 years ago
Also caught another error:
[ 13%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o
/mnt/cmlto/sources/llvm/projects/libcxx/src/atomic.cpp:19:10: fatal error: linux/futex.h: No such file or directory
19 | #include <linux/futex.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [projects/libcxx/src/CMakeFiles/cxx_static.dir/build.make:104: projects/libcxx/src/CMakeFiles/cxx_static.dir/atomic.cpp.o] Error 1
make[2]: Leaving directory '/mnt/cmlto/sources/llvm/build'
Not sure why suddenly build breaks on Musl. Was broken on Glibc hosts.
You need to build curses libraries, e.g GNU ncurses
in every stage. I also experience that, as always.
Also caught another error:
[ 13%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o /mnt/cmlto/sources/llvm/projects/libcxx/src/atomic.cpp:19:10: fatal error: linux/futex.h: No such file or directory 19 | #include <linux/futex.h> | ^~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [projects/libcxx/src/CMakeFiles/cxx_static.dir/build.make:104: projects/libcxx/src/CMakeFiles/cxx_static.dir/atomic.cpp.o] Error 1 make[2]: Leaving directory '/mnt/cmlto/sources/llvm/build'
Not sure why suddenly build breaks on Musl. Was broken on Glibc hosts.
https://github.com/dslm4515/CMLFS/issues/11#issuecomment-869086030
You need to build curses libraries, e.g GNU
ncurses
in every stage. I also experience that, as always.
I did try installing ncurses to cgnutools and same exact error. I would think setting the paths in /cgnutools/etc/ld-musl-x86_64.path
would be enough.
Strange, when building under Ubuntu, I didn't have this issue
Also caught another error:
[ 13%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ARMWinEH.cpp.o /mnt/cmlto/sources/llvm/projects/libcxx/src/atomic.cpp:19:10: fatal error: linux/futex.h: No such file or directory 19 | #include <linux/futex.h> | ^~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [projects/libcxx/src/CMakeFiles/cxx_static.dir/build.make:104: projects/libcxx/src/CMakeFiles/cxx_static.dir/atomic.cpp.o] Error 1 make[2]: Leaving directory '/mnt/cmlto/sources/llvm/build'
Not sure why suddenly build breaks on Musl. Was broken on Glibc hosts.
https://github.com/dslm4515/CMLFS/issues/11#issuecomment-869086030
I tried that too and build still failed with missing libstd.h header...
First I thought building cgnutools with LTO broke it but I did try again without LTO and same exact errors
I rebuilt cgnutools. This time with no LTO for GCC static and GCC final. Now I can build file
without --host=
and --target
... same error for missing libcurses. Installed libcurses to cgnutools as static library. Same error. Created a link:
ln -sv libncursesw.a /cgnutools/lib/libcurses.a
Now build proceeds!
You need to build curses libraries, e.g GNU
ncurses
in every stage. I also experience that, as always.
I don;t know why, but in the past i never had to for cgnutools or cross-tools.... even under Ubuntu.
You need to build curses libraries, e.g GNU
ncurses
in every stage. I also experience that, as always.I don;t know why, but in the past i never had to for cgnutools or cross-tools.... even under Ubuntu.
Hmm, I wonder too.
On a musl host, LLVM fails to build due to liker not able to find
-lcurses
:Same issue on hosts running MLFS 9.0.0 and CMLFS 2.0.0 (with LTO)
First attempt was building cgnutools with LTO. Same error for LLVM. Then I tried again with out LTO: same error.