bebbo / gcc

Bebbo's gcc-6-branch for m68k-amigaos
GNU General Public License v2.0
33 stars 11 forks source link

[gcc13.1] After change in libnix, linking error from libstdc++ to libnix #237

Closed MBeijer closed 1 month ago

MBeijer commented 1 month ago
/opt/m68k-amigaos/lib/gcc/m68k-amigaos/13.1.1/../../../../m68k-amigaos/bin/ld: /opt/m68k-amigaos/lib/gcc/m68k-amigaos/13.1.1/libm020/libm881/libstdc++.a(ctype_configure_char.o): 
in function `_EH_FRAME_BEGIN__':
/opt/m68k-amigaos/lib/gcc/m68k-amigaos/13.1.1/../../../../m68k-amigaos/bin/ld: 
ctype_configure_char.o:(.text._ZNSt5ctypeIcEC1EPKcbm+0x78): undefined reference to `_ctype_'

Change in libnix that is the likely cuplrit for this error: https://github.com/bebbo/libnix/commit/f6846ba50234eb2d7101c90fa1b550e7160febd2#diff-a5bd985394076c19822bcb2d40a1618ddcb926607677458f02284ee62d4157d5

bebbo commented 1 month ago

please retry

MBeijer commented 1 month ago

should I target the 13.2 branch instead of 13.1? the 13.1 branch still gives the same error @bebbo

bebbo commented 1 month ago

your libnix needs some updates

MBeijer commented 1 month ago

I do fetch your libnix, not my version:

$ cat default-repos 
amiga-netinclude   https://github.com/bebbo/amiga-netinclude    master
binutils           https://github.com/bebbo/binutils-gdb        amiga
clib2              https://github.com/bebbo/clib2               master
fd2pragma          https://github.com/bebbo/fd2pragma           master
fd2sfd             https://github.com/adtools/fd2sfd            master
gcc                https://github.com/bebbo/gcc                 amiga13.2
ira                https://github.com/bebbo/ira                 master
ixemul             https://github.com/bebbo/ixemul              master
lha                https://github.com/jca02266/lha              master
libdebug           https://github.com/bebbo/libdebug            master
libnix             https://github.com/bebbo/libnix              master
libSDL12           https://github.com/AmigaPorts/libSDL12       master
newlib-cygwin      https://github.com/bebbo/newlib-cygwin       amiga
sfdc               https://github.com/bebbo/sfdc                master
vasm               https://github.com/mheyer32/vasm             master
vbcc               https://github.com/bebbo/vbcc                master
vlink              https://github.com/bebbo/vlink           master
aros-stuff         https://github.com/bebbo/aros-stuff          master
MBeijer commented 1 month ago

tried building 13.2 now to see if that works any better

MBeijer commented 1 month ago

Just to clarify, I always build from a clean slate, so no cached stuff hanging around.

glebm commented 1 month ago

The build is now green! diasurgical/devilutionX/actions/runs/11206330368/job/31253606044

MBeijer commented 1 month ago

switching to 13.2 fixed it, thanks @bebbo for fixing and thanks @glebm for testing