Opened 3 years ago
Last modified 2 years ago
#64521 assigned defect
irssi fails to build for ppc on 10.6.8 (Rosetta)
Reported by: | barracuda156 | Owned by: | l2dy (Zero King) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.0 |
Keywords: | powerpc, snowleopard, rosetta | Cc: | |
Port: | irssi |
Description
In file included from Settings.xs:3: ../../../src/core/misc.h:15: warning: ‘GTimeVal’ is deprecated ../../../src/core/misc.h:15: warning: ‘GTimeVal’ is deprecated ../../../src/core/misc.h:18: warning: ‘GTimeVal’ is deprecated ../../../src/core/misc.h:18: warning: ‘GTimeVal’ is deprecated LD blib/arch/auto/Irssi/Irssi.bundle collect2: ld terminated with signal 6 [Abort trap] make[4]: *** [blib/arch/auto/Irssi/Irssi.bundle] Error 1 make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_irc_irssi/irssi/work/irssi-1.2.3/src/perl/common' make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_irc_irssi/irssi/work/irssi-1.2.3/src/perl/common' CP blib/arch/auto/Irssi/Irssi.bs LD blib/arch/auto/Irssi/Irssi.bundle collect2: ld terminated with signal 6 [Abort trap] make[4]: *** [blib/arch/auto/Irssi/Irssi.bundle] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_irc_irssi/irssi/work/irssi-1.2.3/src/perl/common' /bin/sh: line 0: cd: irc: No such file or directory /bin/sh: line 0: cd: ui: No such file or directory /bin/sh: line 0: cd: textui: No such file or directory make[3]: *** [all-local] Error 1 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_irc_irssi/irssi/work/irssi-1.2.3/src/perl' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_irc_irssi/irssi/work/irssi-1.2.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_irc_irssi/irssi/work/irssi-1.2.3' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_irc_irssi/irssi/work/irssi-1.2.3' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_irc_irssi/irssi/work/irssi-1.2.3" && /usr/bin/make -j4 -w all Exit code: 2 Error: Failed to build irssi: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_irc_irssi/irssi/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port irssi failed
Attachments (2)
Change History (9)
Changed 3 years ago by barracuda156
Changed 3 years ago by barracuda156
Attachment: | config.log added |
---|
comment:1 follow-ups: 2 4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 3 years ago by barracuda156
Replying to ryandesign:
Looks like the linker (ld) crashed ("Abort trap"). Attaching the crash log may be helpful, however since it looks like it's using the old gcc 4.2.1 linker, maybe the solution will be to use a newer linker from one of the MacPorts ld64 port's subports.
Thanks for suggestion, I will try that. Should I use --with-ld=
in portfile pointing at the linker? Or how to invoke it?
comment:3 Changed 3 years ago by kencu (Ken)
Keywords: | snowleopard rosetta added |
---|
comment:4 Changed 3 years ago by barracuda156
Replying to ryandesign:
Looks like the linker (ld) crashed ("Abort trap"). Attaching the crash log may be helpful, however since it looks like it's using the old gcc 4.2.1 linker, maybe the solution will be to use a newer linker from one of the MacPorts ld64 port's subports.
Interestingly, this Abort linker issue is specific to 10.6.8. On 10.6 PPC I have built irssi now with no tweaks:
36-47:~ svacchanda$ port -v installed irssi The following ports are currently installed: irssi @1.2.3_1+perl (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-01-28T18:28:38+0800'
comment:5 Changed 2 years ago by barracuda156
I guess the problem is that the port build system fails to pass Macports archflags at linking stage:
/usr/bin/cc -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -fstack-protector Channel.o Client.o Ctcp.o Dcc.o Irc.o Modes.o Netsplit.o Notifylist.o Query.o Server.o -o blib/arch/auto/Irssi/Irc/Irc.bundle \ \ ld: warning: in Channel.o, file was built for ppc7400 which is not the architecture being linked (x86_64) ld: warning: in Client.o, file was built for ppc7400 which is not the architecture being linked (x86_64) ld: warning: in Ctcp.o, file was built for ppc7400 which is not the architecture being linked (x86_64) ld: warning: in Dcc.o, file was built for ppc7400 which is not the architecture being linked (x86_64) ld: warning: in Irc.o, file was built for ppc7400 which is not the architecture being linked (x86_64) ld: warning: in Modes.o, file was built for ppc7400 which is not the architecture being linked (x86_64) ld: warning: in Netsplit.o, file was built for ppc7400 which is not the architecture being linked (x86_64) ld: warning: in Notifylist.o, file was built for ppc7400 which is not the architecture being linked (x86_64) ld: warning: in Query.o, file was built for ppc7400 which is not the architecture being linked (x86_64) ld: warning: in Server.o, file was built for ppc7400 which is not the architecture being linked (x86_64) chmod 755 blib/arch/auto/Irssi/Irc/Irc.bundle
comment:6 Changed 2 years ago by barracuda156
Keywords: | powerpc snowleopard rosetta → powerpc, snowleopard, rosetta |
---|---|
Owner: | set to l2dy |
Status: | new → assigned |
Version: | 2.7.1 → 2.8.0 |
Looks like the linker (ld) crashed ("Abort trap"). Attaching the crash log may be helpful, however since it looks like it's using the old gcc 4.2.1 linker, maybe the solution will be to use a newer linker from one of the MacPorts ld64 port's subports.