NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-i386/61069: gcc 12.5 on NetBSD 11.1 i386 fails to compile GLSMAC Github project



>Number:         61069
>Category:       port-i386
>Synopsis:       gcc 12.5 on NetBSD 11.1 i386 fails to compile GLSMAC Github project
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 25 03:00:00 +0000 2026
>Originator:     Lubo
>Release:        NetBSD 11.1_i386
>Organization:
>Environment:
NetBSD 11.1_i386 11.1 NetBSD 11.1 (GENERIC) #0: Mon Nov  2 16:34:32 UTC 2026  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386

>Description:
Attempting i386 compile of:
https://github.com/afwbkbc/glsmac.git

Same project compiles fine on amd64 port.

i386 generates errors:

cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug && make -C build 
-- Configuring done (0.2s)
-- Generating done (17.8s)
-- Build files have been written to: /home/lubod/glsmac/build

[100%] Linking CXX executable bin/GLSMAC
ld: CMakeFiles/GLSMAC.dir/src/game/backend/Game.cpp.o: in function `std::__atomic_base<unsigned long long>::store(unsigned long long, std::memory_order)':
/usr/include/g++/bits/atomic_base.h:480:(.text._ZNSt13__atomic_baseIyEaSEy[_ZNSt13__atomic_baseIyEaSEy]+0xb5): undefined reference to `__atomic_store_8'
ld: CMakeFiles/GLSMAC.dir/src/game/backend/Game.cpp.o: in function `std::__atomic_base<unsigned long long>::operator++()':
/usr/include/g++/bits/atomic_base.h:401:(.text._ZNSt13__atomic_baseIyEppEv[_ZNSt13__atomic_baseIyEppEv]+0x25): undefined reference to `__atomic_fetch_add_8'
*** Error code 1

Stop.
make[2]: stopped making "CMakeFiles/GLSMAC.dir/build" in /home/lubod/glsmac/build
*** Error code 1

Stop.
make[1]: stopped making "all" in /home/lubod/glsmac/build
*** Error code 1

Stop.
make: stopped making "default_target" in /home/lubod/glsmac/build

>How-To-Repeat:
Set up GLSMAC build as shown on github.

Build with cmake command above, or another one of your choice.

Build does NOT complete on 11.1 i386 BUT does on 11.1 amd64.
>Fix:




Home | Main Index | Thread Index | Old Index