Opened 2 years ago

Last modified 17 months 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)

main.log (1.6 MB) - added by barracuda156 2 years ago.
config.log (57.7 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (9)

Changed 2 years ago by barracuda156

Attachment: main.log added

Changed 2 years ago by barracuda156

Attachment: config.log added

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

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.

comment:2 in reply to:  1 Changed 2 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 2 years ago by kencu (Ken)

Keywords: snowleopard rosetta added

comment:4 in reply to:  1 Changed 2 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 17 months 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 17 months ago by barracuda156

Keywords: powerpc snowleopard rosettapowerpc, snowleopard, rosetta
Owner: set to l2dy
Status: newassigned
Version: 2.7.12.8.0

comment:7 Changed 17 months ago by kencu (Ken)

and should not see /usr/bin/cc being used ever…

Note: See TracTickets for help on using tickets.