the binutils for apple cant be bootstraped when the Filesystem is Casesenitive. clang++ -m64 -march=native -O2 -pipe -Wno-invalid-offsetof -std=c++0x -stdlib=libc++ -I/Users/mario/Gentoo/tmp/usr/include -DNDEBUG -DSUPPORT_SNAPSHOTS -Iinclude -Iabstraction -Ild -Ild/parsers -Iother -I. -c -o ld/passes/code_dedup.o ld/passes/code_dedup.cpp clang++ -m64 -march=native -O2 -pipe -Wno-invalid-offsetof -std=c++0x -stdlib=libc++ -I/Users/mario/Gentoo/tmp/usr/include -DNDEBUG -DSUPPORT_SNAPSHOTS -Iinclude -Iabstraction -Ild -Ild/parsers -Iother -I. -c -o ld/parsers/textstub_dylib_file.o ld/parsers/textstub_dylib_file.cpp ld/parsers/textstub_dylib_file.cpp:32:10: fatal error: 'bitcode.hpp' file not found #include "bitcode.hpp" ^ clang -m64 -march=native -O2 -pipe -I/Users/mario/Gentoo/tmp/usr/include -DNDEBUG -DSUPPORT_SNAPSHOTS -Iinclude -Iabstraction -Ild -Ild/parsers -Iother -I. -c -o ld/debugline.o ld/debugline.c 1 error generated. to correct this bitcode.hpp schould be changed to Bitcode.hpp in ld/parsers/textstub_dylib_file.cpp Reproducible: Always
The fix is really simple: --- ld64-264.3.102.old/src/ld/parsers/textstub_dylib_file.cpp 2016-12-06 11:49:46.000000000 -0200 +++ ld64-264.3.102.new/src/ld/parsers/textstub_dylib_file.cpp 2016-12-06 11:43:47.000000000 -0200 @@ -29,7 +29,7 @@ #include <vector> #include "Architectures.hpp" -#include "bitcode.hpp" +#include "Bitcode.hpp" #include "MachOFileAbstraction.hpp" #include "MachOTrie.hpp" #include "generic_dylib_file.hpp" @grobian, can I just put this into files/ as a patch? There's no files/ directory now, so I wonder if you just want to add this to your patchsets. Please let me know.
I pushed a fix with an optimistic symlink which appears to work for me here.
the problem evolved into another problem with the latest llvm ld/parsers/textstub_dylib_file.cpp:32:10: warning: non-portable path to file '"Bitcode.hpp"'; specified path differs in case from file name on disk [-Wnonportable-include-path] #include "bitcode.hpp" ^~~~~~~~~~~~~ "Bitcode.hpp" with the symlink the stage1-2 worked but on the last rebuild (with emerge ...) it failes. maybe: echo "#include \"Bitcode.hpp\"" > src/ld/bitcode.hpp
We should just patch it in the ebuild, which I forgot. I did the hack in the bootstrap script because that avoided having to wait for a new snapshot. I'll fix it proper now.
I pushed a patch like Guilherme's one. @amadio: you can just unpack + add patch + repack the patch tarball, increment the revision and use that. There is no git repo or something for that. I just store the tars in my dev-space, should be backed up sufficiently on all the mirrors and all that ;)