Opened 11 months ago

Last modified 6 months ago

#69001 assigned defect

polyml @5.9_1: ld: LINKEDIT overlap of start of LINKEDIT and symbol table

Reported by: murrayE Owned by: pclayton (Phil Clayton)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma arm64 Cc: phil.clayton@…
Port: polyml

Description

From main.log:

:info:build ******Writing object code******
:info:build /bin/sh ./libtool  --tag=CC   --mode=link /usr/bin/clang  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64  -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -o poly  polyexport.o  libpolymain/libpolymain.la libpolyml/libpolyml.la  -lgmp -lstdc++ 
:info:build libtool: link: /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -Wl,-headerpad_max_install_names -Wl,-syslibroot -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -o .libs/poly polyexport.o  -L/opt/local/lib libpolymain/.libs/libpolymain.a libpolyml/.libs/libpolyml.dylib -lgmp -lstdc++
:info:build ld: LINKEDIT overlap of start of LINKEDIT and symbol table in '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_polyml/polyml/work/polyml-5.9/polyexport.o' in '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_polyml/polyml/work/polyml-5.9/polyexport.o'
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [poly] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_polyml/polyml/work/polyml-5.9'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_polyml/polyml/work/polyml-5.9'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_polyml/polyml/work/polyml-5.9'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_polyml/polyml/work/polyml-5.9" && /usr/bin/make -j10 -w all 
:info:build Exit code: 2
:error:build Failed to build polyml: command execution failed
:debug:build Error code: CHILDSTATUS 96117 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"

Attachments (1)

main.log (194.4 KB) - added by murrayE 11 months ago.
main.log

Download all attachments as: .zip

Change History (3)

Changed 11 months ago by murrayE

Attachment: main.log added

main.log

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

Cc: pclayton removed
Owner: set to pclayton
Status: newassigned
Summary: polyml-5.9_1.darwin_23.arm64 link errorpolyml @5.9_1: ld: LINKEDIT overlap of start of LINKEDIT and symbol table

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

This is https://github.com/polyml/polyml/issues/194. It is allegedly fixed by adding -ld_classic to LDFLAGS when using Xcode 15 or the Xcode 15 CLT. Doing this is being discussed as part of updating polyml to 5.9.1 in https://github.com/macports/macports-ports/pull/23934.

Note: See TracTickets for help on using tickets.