Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601804 - sys-devel/binutils-apple-7.3.1::gentoo_prefix: Casesensitve HFS+ Volume
Summary: sys-devel/binutils-apple-7.3.1::gentoo_prefix: Casesensitve HFS+ Volume
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-06 10:53 UTC by Mario Fetka (geos_one)
Modified: 2016-12-22 07:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Fetka (geos_one) 2016-12-06 10:53:35 UTC
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
Comment 1 Guilherme Amadio gentoo-dev 2016-12-06 14:54:08 UTC
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.
Comment 2 Fabian Groffen gentoo-dev 2016-12-15 15:01:47 UTC
I pushed a fix with an optimistic symlink which appears to work for me here.
Comment 3 Mario Fetka (geos_one) 2016-12-22 02:09:46 UTC
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
Comment 4 Fabian Groffen gentoo-dev 2016-12-22 07:29:57 UTC
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.
Comment 5 Fabian Groffen gentoo-dev 2016-12-22 07:47:09 UTC
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 ;)