#62767 closed defect (fixed)
librsvg @2.50.4 fails at configure during build
Reported by: | phosphide (Jakub Tomczyński) | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | Cc: | cjones051073 (Chris Jones), balanco | |
Port: | librsvg |
Description (last modified by cjones051073 (Chris Jones))
Changes in commit 990215fb0308d43a17285250e7ea5832d78d341b seem to prevent librsvg from building, the configure script fails at checking the C compiler. The compiler path is also passed as the first argument? The installation I'm working on is x86_64 emulated via Rosetta 2 on M1.
configure:4053: checking whether the C compiler works configure:4075: /usr/bin/clang /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64 -I/opt/macports-x86_64/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -L/opt/macports-x86_64/lib -Wl,-headerpad_max_install_names -lobjc -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64 conftest.c >&5 ld: can't link with a main executable file '/usr/bin/clang' for architecture x86_64
Full log attached.
After reverting to f81d9284291514bc66032866fb3451a1e7689dbc it builds without problems.
Attachments (2)
Change History (11)
Changed 4 years ago by phosphide (Jakub Tomczyński)
Attachment: | config.log added |
---|
comment:1 Changed 4 years ago by kencu (Ken)
comment:2 Changed 4 years ago by kencu (Ken)
Probably a typo of some kind -- there were a large number of recent changes in these portgroups.
comment:3 Changed 4 years ago by kencu (Ken)
Cc: | cjones051073 added |
---|
Hey Chris, this looks like something you'd be interested in.
comment:4 Changed 4 years ago by cjones051073 (Chris Jones)
that isn't the full macports log, can you attach that as well please.
Changed 4 years ago by phosphide (Jakub Tomczyński)
comment:5 Changed 4 years ago by kencu (Ken)
Description: | modified (diff) |
---|
comment:6 Changed 4 years ago by cjones051073 (Chris Jones)
Description: | modified (diff) |
---|
Ok, can reproduce. Investigating...
comment:7 Changed 4 years ago by balanco
Cc: | balanco added |
---|
comment:8 Changed 4 years ago by Chris Jones <jonesc@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:9 Changed 4 years ago by cjones051073 (Chris Jones)
This was an odd one... Turns out setting some env vars in too many phases causes this weird behaviour where CC and CXX get a double setting during configure....
For some reason, CC is getting messed up:
and interprets this as an attempt to link against /usr/bin/clang.