Home My Page Projects Code Snippets Project Openings devtools
Summary Activity Tracker SCM

[#2292] mingw gcc-10: ninja undefined reference to `_setjmp'

Date:
2020-07-02 12:46
Priority:
3
State:
Open
Submitted by:
Charles Ballard (ccb63)
Assigned to:
Nobody (None)
branch:
py3
type:
none
Summary:
mingw gcc-10: ninja undefined reference to `_setjmp'

Detailed description
g++ -Lbuild -static -o ninja.exe build/ninja.o -lninja
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/lib/../lib\libpthread.a(libwinpthread_la-thread.o):(.text+0xc5e): undefined reference to `_setjmp'
collect2.exe: error: ld returned 1 exit status
when running: g++ -Lbuild -static -o ninja.exe build/ninja.o -lninja
Traceback (most recent call last):
File "./configure.py", line 539, in <module>
ninja = n.build(binary('ninja'), 'link', objs, implicit=ninja_lib,
File "./configure.py", line 164, in build
self._run_command(self._expand(cmd, local_vars))
File "./configure.py", line 189, in _run_command
subprocess.check_call(cmdline, shell=True)
File "C:/msys64/mingw64/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'g++ -Lbuild -static -o ninja.exe build/ninja.o -lninja' returned non-zero exit status 1.
Message  ↓
Date: 2020-07-02 12:50
Sender: Charles Ballard

windows macro issue, see http://www.agardner.me/golang/windows/cgo/64-bit/setjmp/longjmp/2016/02/29/go-windows-setjmp-x86.html

No Changes Have Been Made to This Item