#68487 closed defect (fixed)

SuiteSparse_CHOLMOD @3.0.14_1+openblas: ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in '/opt/local/lib/libopenblas-r1.dylib'

Reported by: karo11 Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc: szhorvat (Szabolcs Horvát), SpikeLightfoot, MaurizioLoreti, rshuston
Port: SuiteSparse_CHOLMOD

Description

Problem to build gimp2 dependencies

Build failed similar to OpenBLAS. Build log attached.

Attachments (1)

main.log (124.5 KB) - added by karo11 13 months ago.

Download all attachments as: .zip

Change History (17)

Changed 13 months ago by karo11

Attachment: main.log added

comment:1 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sonoma added; Sonoma removed
Owner: set to MarcusCalhoun-Lopez
Status: newassigned
Summary: build SuiteSparse_CHOLMOD: command execution failedSuiteSparse_CHOLMOD @3.0.14_1+openblas: ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in '/opt/local/lib/libopenblas-r1.dylib'

Log says:

ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in '/opt/local/lib/libopenblas-r1.dylib'

Sounds like #68239.

comment:2 Changed 13 months ago by karo11

Interesting again this library, libopenblas-r1.dylib also in #68402

comment:3 Changed 13 months ago by szhorvat (Szabolcs Horvát)

This happened in my SuiteSparse update PR, see https://github.com/macports/macports-ports/pull/20920

But these are linker WARNINGS only, they should not cause a failure, and normally do not cause a failure. SuiteSparse_CHOLMOD builds just fine locally on my arm64 machine.

comment:4 Changed 13 months ago by szhorvat (Szabolcs Horvát)

Cc: szhorvat added

comment:5 Changed 13 months ago by SpikeLightfoot

Cc: SpikeLightfoot added

comment:6 Changed 13 months ago by MaurizioLoreti

Cc: MaurizioLoreti added

comment:7 Changed 13 months ago by barracuda156

Fails for me on Sonoma too.

comment:8 Changed 13 months ago by szhorvat (Szabolcs Horvát)

barracude156: Do you only see the issue with Xcode 15 or also with earlier Xcode?

comment:9 Changed 13 months ago by szhorvat (Szabolcs Horvát)

configure.ldflags-append -ld_classic fixes it for me. I'll try to incorporate this into the PR.

Notice that the issue is NOT the warning. That's just a warning, and should not cause a failure. Somehow the linker returns with exit code 1, without issuing any message that would explain why. This has to be another bug in Apple's new linker.

comment:10 Changed 13 months ago by rshuston

Cc: rshuston added

comment:11 Changed 12 months ago by SpikeLightfoot

Is anything happening here? Are there workarounds that we mere mortals can use in the meantime? TIA.

comment:12 Changed 12 months ago by szhorvat (Szabolcs Horvát)

I have two PRs open for fixing this, but I have not received any feedback on them yet.

https://github.com/macports/macports-ports/pull/21127

https://github.com/macports/macports-ports/pull/20920

comment:13 Changed 12 months ago by szhorvat (Szabolcs Horvát)

I believe this should be fixed now. Can you confirm, karo11?

comment:14 Changed 12 months ago by karo11

Unluckily, I cannot confirm anymore. After many problems with Sonoma update I went back to Monterey!

comment:15 Changed 11 months ago by rshuston

I can confirm that SuiteSparse_CHOLMOD-3.0.14_2 now builds correctly for me on Sonoma on M1.

comment:16 Changed 10 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
 % port -v installed | grep CHOLMOD
  SuiteSparse_CHOLMOD @5.1.1_0+openblas (active) requested_variants='' platform='darwin 23' archs='arm64' date='2024-01-20T18:48:11-0800'
Note: See TracTickets for help on using tickets.