[MacPorts] #64498: llvm-3.3/3.4 fail to build for ppc on 10.6.8 (Rosetta): Undefined symbols: "_main", referenced from: start in crt1.10.5.o
MacPorts
noreply at macports.org
Sat Jul 16 21:20:58 UTC 2022
#64498: llvm-3.3/3.4 fail to build for ppc on 10.6.8 (Rosetta): Undefined symbols:
"_main", referenced from: start in crt1.10.5.o
-------------------------+-------------------------------------------------
Reporter: | Owner: jeremyhu
barracuda156 |
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc, llvm, snowleopard, rosetta
Port: llvm-3.3, |
llvm-3.4 |
-------------------------+-------------------------------------------------
Comment (by barracuda156):
The problem remains unresolved:
{{{
llvm[4]: Linking Release executable Sample (without symbols)
/usr/bin/g++-4.2
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample/tools/sample
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/llvm-3.4.2.src/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/llvm-3.4.2.src/projects/sample/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/llvm-3.4.2.src/projects/sample/tools/sample
-DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -Os -fno-exceptions -fno-common -Woverloaded-
virtual -Wcast-qual -Os -rdynamic -Wl,-rpath -Wl, at executable_path/../lib
-L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample/Release/lib
-L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/Release/lib
-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -mmacosx-
version-min=10.6 -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter
-Wwrite-strings -o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample/Release/bin/Sample
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample/tools/sample/Release/main.o
-lsample \
-lz -lpthread -lffi -lcurses -lm
ld: warning: in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample/tools/sample/Release/main.o,
file was built for unsupported file format which is not the architecture
being linked (ppc)
ld: warning: in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample/Release/lib/libsample.a,
file was built for unsupported file format which is not the architecture
being linked (ppc)
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: ***
[/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample/Release/bin/Sample]
Error 1
make[4]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample/tools/sample'
make[3]: *** [all] Error 1
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample/tools'
make[2]: *** [all] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects/sample'
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/work/build/projects'
make: *** [all] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64498#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list