Opened 6 months ago

Closed 3 months ago

#72592 closed defect (invalid)

gnuplot @6.0.3_0 +aquaterm+luaterm+pangocairo+qt5+wxwidgets: build fails with linker error when wrong-architecture Qt frameworks are in /Library/Frameworks

Reported by: murrayE Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.7
Keywords: sequoia arm64 Cc: Schamschula (Marius Schamschula)
Port: gnuplot

Description

From log:

:info:build ld: symbol(s) not found for architecture arm64
:info:build clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Attachments (1)

main.log (564.9 KB) - added by murrayE 6 months ago.
main.log

Download all attachments as: .zip

Change History (8)

Changed 6 months ago by murrayE

Attachment: main.log added

main.log

comment:1 Changed 6 months ago by Schamschula (Marius Schamschula)

I'm not sure what is going on here. I'm on

macOS 15.5 24F74 arm64
Xcode 16.4 16F6

i.e. the same platform and set of variants. I had a clean build and have gnuplot @6.0.3_0+aquaterm+luaterm+pangocairo+qt5+wxwidgets (active).

comment:2 Changed 6 months ago by murrayE

Same Xcode and macOS versions! I just uninstalled existing gnuplot, then attempted same clean install but with configure warning...

:debug:configure Executing portconfigure::configure_finish
:warn:configure Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
:msg:configure   strchr: found in gnuplot-6.0.3/config.log

... and then the same linker failure as before (during upgrade attempt) during build.

comment:3 Changed 6 months ago by Schamschula (Marius Schamschula)

That warning should not cause a build failure, but is something I'll look into.

comment:4 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: gnuplot @6.0.3_0 +aquaterm+luaterm+pangocairo+qt5+wxwidgets build fails - linker errorgnuplot @6.0.3_0 +aquaterm+luaterm+pangocairo+qt5+wxwidgets: build fails with linker error when wrong-architecture Qt frameworks are in /Library/Frameworks

The log says:

:info:build ld: warning: ignoring file '/Library/Frameworks/QtSvg.framework/QtSvg': found architecture 'x86_64', required architecture 'arm64'
:info:build ld: warning: ignoring file '/Library/Frameworks/QtNetwork.framework/QtNetwork': found architecture 'x86_64', required architecture 'arm64'
:info:build ld: warning: ignoring file '/Library/Frameworks/QtCore.framework/QtCore': found architecture 'x86_64', required architecture 'arm64'
:info:build ld: warning: ignoring file '/Library/Frameworks/QtGui.framework/QtGui': found architecture 'x86_64', required architecture 'arm64'

To fix this, remove the Qt libraries you put in /Library/Frameworks (see wiki:FAQ#libraryframeworks), then sudo port clean gnuplot and try again.

comment:5 Changed 6 months ago by murrayE

Which files or folders, exactly need to be removed?

I ask because, for example,

/Library/Frameworks/QtSvg.framework/QtSvg

is an alias for

/Library/Frameworks/QtSvg.framework/Versions/4/Headers/QtSvg

comment:6 Changed 3 months ago by murrayE

After migration from Sequoia to Tahoe, I was able to install gnuplot @6.0.3_2+aquaterm+luaterm+pangocairo+qt5+wxwidgets without failure.

comment:7 Changed 3 months ago by reneeotten (Renee Otten)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.