1.88.0 build failure on mingw64

未关闭
#1,038 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
cpp
领域
build-system

调研方向

重现 1.88.0 的 mingw64 构建,并从 libs/stacktrace/src/from_exception.cpp 和 libs/context/src/asm/make_x86_64_sysv_elf_gas.S 开始,使用所示的链接器和汇编器错误。调查报告的未定义引用和不受支持的汇编器指令。mingw64 构建在没有这些错误的情况下完成,即视为完成。

由索引模型根据 Issue 内容生成。

描述

[  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] 
主要语言
HTML
星标
8.6k
派生
2k
平均合并
9 小时 35 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

boostorg/boost 的其他 Issue

查看 boostorg/boost 的全部 Issue

相似的 Issue

更多 Build System Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。