Opened 3 years ago

Last modified 2 years ago

#64760 new defect

llvm-3.4 fails for ppc64 on Leopard: offset in archive not a multiple of 8 (must be since member is an 64-bit object file)

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: powerpc, ppc64, leopard Cc:
Port: llvm-3.4, llvm-3.3

Description

/opt/local/bin/ranlib: archive member: /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/libLLVMCodeGen.a(AllocationOrder.o) offset in archive not a multiple of 8 (must be since member is an 64-bit object file)
ranlib /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/libLLVMCodeGen.a
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/lib/CodeGen'
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/lib'
make: *** [all] Error 1
make: 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'
Command failed:  cd "/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" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: Failed to build llvm-3.4: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port llvm-3.4 failed

Attachments (3)

main.log (1.8 MB) - added by barracuda156 3 years ago.
config_new.log (202.1 KB) - added by barracuda156 3 years ago.
I don't know why but it still tries to build JIT even I disabled it. What am I missing?
main_new.log (3.3 MB) - added by barracuda156 3 years ago.

Change History (10)

Changed 3 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 3 years ago by barracuda156

Just noticed that for whatever reason it used llvm-gcc-4.2 to build, which appears very wrong for PowerPC in general. It should have used Apple gcc-4.2 instead.

UPD. Tried with Apple gcc, same failure.

Last edited 3 years ago by barracuda156 (previous) (diff)

comment:2 Changed 3 years ago by barracuda156

llvm-3.3 fails likewise, and without it using ld64_xcode fails to build gcc7:

collect2: ld returned 1 exit status
make[3]: *** [lto1] Error 1
make[3]: *** Waiting for unfinished jobs....
ld: bl out of range (-17815320 max is +/-16M) from gt_pch_nx_string_pool_data(void*) at 0x1011110F8 in __text of libbackend.a(stringpool.o) to gt_pch_nx_lang_tree_node(void*) at 0x100013AD8 in __text of  c/c-decl.o in gt_pch_nx_string_pool_data(void*) from libbackend.a(stringpool.o)
collect2: ld returned 1 exit status
make[3]: *** [cc1] Error 1
ld: bl out of range (-17845076 max is +/-16M) from gt_pch_nx_string_pool_data(void*) at 0x10143A118 in __text of libbackend.a(stringpool.o) to gt_pch_nx_lang_tree_node(void*) at 0x1003356BC in __text of  cp/tree.o in gt_pch_nx_string_pool_data(void*) from libbackend.a(stringpool.o)
collect2: ld returned 1 exit status
make[3]: *** [cc1plus] Error 1
rm gcc.pod
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build'
make: *** [bootstrap-lean] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc7/libgcc7/work/build" && /usr/bin/make -j4 -w bootstrap-lean 
Exit code: 2
Error: Failed to build libgcc7: command execution failed

comment:3 Changed 3 years ago by barracuda156

Port: llvm-3.3 added

Changed 3 years ago by barracuda156

Attachment: config_new.log added

I don't know why but it still tries to build JIT even I disabled it. What am I missing?

Changed 3 years ago by barracuda156

Attachment: main_new.log added

comment:4 Changed 3 years ago by kencu (Ken)

ld64_xcode is not a good thing to use until something like macos 10.14 or so.

before that, macports’ tools are better.

comment:5 in reply to:  4 Changed 3 years ago by barracuda156

Replying to kencu:

ld64_xcode is not a good thing to use until something like macos 10.14 or so.

before that, macports’ tools are better.

Thank you. I was able eventually to build llvm-3.7 as ppc64 and rebuild ld64-97 as +llvm37.

36-42:~ svacchanda$ port -v installed llvm-3.7
The following ports are currently installed:
  llvm-3.7 @3.7.1_7 (active) requested_variants='' platform='darwin 9' archs='ppc64' date='2022-03-06T09:58:43+0800'

This is arguably better than what I wanted initially, however it looks like a real pain if someone starts from scratch (gcc-4.2 won't build llvm-3.7).

comment:6 Changed 3 years ago by kencu (Ken)

for ppc, I should just delete that llvm option I guess, until somebody gets llvm working properly on ppc at least.

just causes confusion.

comment:7 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Same issue as #64253.

Note: See TracTickets for help on using tickets.