Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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)

config.log (16.0 KB) - added by phosphide (Jakub Tomczyński) 4 years ago.
main.log (153.2 KB) - added by phosphide (Jakub Tomczyński) 4 years ago.

Download all attachments as: .zip

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)

For some reason, CC is getting messed up:

CC='/usr/bin/clang /usr/bin/clang'

and interprets this as an attempt to link against /usr/bin/clang.

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.

Last edited 4 years ago by cjones051073 (Chris Jones) (previous) (diff)

Changed 4 years ago by phosphide (Jakub Tomczyński)

Attachment: main.log added

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: assignedclosed

In 6c2a72a6640fd6bf3beb7deb63cd8fb673548a09/macports-ports (master):

cargo_fetch: Limit a bit which phases env vars are set in
Closes: #62767

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....

Note: See TracTickets for help on using tickets.