1.88.0 build failure on mingw64

Open
#1,038 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
build-system

Research direction

Reproduce the 1.88.0 mingw64 build and start with libs/stacktrace/src/from_exception.cpp and libs/context/src/asm/make_x86_64_sysv_elf_gas.S, using the linker and assembler errors shown. Investigate the reported undefined reference and unsupported assembler directives. Done means the mingw64 build completes without these errors.

Written by the indexing model from the issue text.

Description

[  591s] /usr/lib64/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld: bin.v2/libs/stacktrace/build/gc
c-mingw/release/x86_64/debug-symbols-on/target-os-windows/threadapi-win32/visibility-hidden/from_exception.o: in functio
n `current_cxx_exception_index':
[  591s] /home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/stacktrace/build/../src/from_exception
.cpp:54:(.text+0x9f): undefined reference to `__current_exception'
[  591s] /usr/lib64/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld: bin.v2/libs/stacktrace/build/gc
c-mingw/release/x86_64/debug-symbols-on/target-os-windows/threadapi-win32/visibility-hidden/from_exception.o: in functio
n `is_processing_rethrow':
[  591s] /home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/stacktrace/build/../src/from_exception
.cpp:73:(.text+0x28d): undefined reference to `__current_exception'
[  591s] collect2: error: ld returned 1 exit status
[  593s]     "x86_64-w64-mingw32-g++" "-DBOOST_USE_WINDOWS_H=1" -x assembler-with-cpp -m64 -O3 -finline-functions -Wno-i
nline -Wall -g -fvisibility=hidden  -DBOOST_ALL_NO_LIB=1 -DBOOST_COBALT_USE_STD_PMR=1 -DBOOST_CONTEXT_DYN_LINK=1 -DBOOST
_CONTEXT_NO_LIB=1 -DBOOST_CONTEXT_SOURCE -DBOOST_DISABLE_ASSERTS -DNDEBUG -D_WIN32_WINNT=0x0601 -I"." -I"/home/abuild/rp
mbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/assert/include" -I"/home/abuild/rpmbuild/BUILD/mingw64-boost-1
.88.0-build/boost_1_88_0/libs/context/include" -I"/home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/li
bs/core/include" -I"/home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/integer/include" -I"/home/a
build/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/mp11/include" -I"/home/abuild/rpmbuild/BUILD/mingw64-b
oost-1.88.0-build/boost_1_88_0/libs/pool/include" -I"/home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0
/libs/predef/include" -I"/home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/smart_ptr/include" -I"
/home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/throw_exception/include" -I"/home/abuild/rpmbui
ld/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/winapi/include" -c -o "bin.v2/libs/context/build/gcc-mingw/release
/x86_64/debug-symbols-on/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/asm/make_x86_64_sysv_elf_ga
s.o" "/home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/context/src/asm/make_x86_64_sysv_elf_gas.
S"
[  593s] 
[  593s] make_x86_64_sysv_elf_gas.S: Assembler messages:
[  593s] make_x86_64_sysv_elf_gas.S:47: Error: unknown pseudo-op: `.hidden'
[  593s] make_x86_64_sysv_elf_gas.S:48: Warning: .type pseudo-op used outside of .def/.endef: ignored.
[  593s] make_x86_64_sysv_elf_gas.S:48: Error: junk at end of line, first unrecognized character is `m'
[  593s] /home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/context/src/asm/make_x86_64_sysv_elf_gas.S:158: Warning: .size pseudo-op used outside of .def/.endef: ignored.
[  593s] /home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/context/src/asm/make_x86_64_sysv_elf_gas.S:158: Error: junk at end of line, first unrecognized character is `m'
[  593s] /home/abuild/rpmbuild/BUILD/mingw64-boost-1.88.0-build/boost_1_88_0/libs/context/src/asm/make_x86_64_sysv_elf_gas.S:161: Error: junk at end of line, first unrecognized character is `-'
[  593s] ...failed gcc.compile.asm bin.v2/libs/context/build/gcc-mingw/release/x86_64/debug-symbols-on/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/asm/make_x86_64_sysv_elf_gas.o...
[  593s] gcc.compile.asm bin.v2/libs/context/build/gcc-mingw/release/x86_64/debug-symbols-on/target-os-windows/threadapi-win32/threading-multi/visibility-hidden/asm/jump_x86_64_sysv_elf_gas.o
[  593s] 
Dominant language
HTML
Stars
8.6k
Forks
2k
Avg merge
9h 35m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/boost

All issues in boostorg/boost

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.