Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld: cannot get section contents - auto-import exception (bit size 12) #191

Open
lazka opened this issue Sep 9, 2024 · 0 comments
Open

Comments

@lazka
Copy link

lazka commented Sep 9, 2024

Building our toolchain regression tests shows some linker warnings/errros. The build runs through though, so they are not fatal:

https://github.com/msys2/msys2-tests/actions/runs/10761539082/job/29840844647#step:7:192

/opt/lib/gcc/aarch64-w64-mingw32/15.0.0/../../../../aarch64-w64-mingw32/bin/ld: tests/call_once.exe.p/call_once.cpp.obj: in function `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)':
/opt/lib/gcc/aarch64-w64-mingw32/15.0.0/include/c++/ostream:673: cannot get section contents - auto-import exception (bit size 21)
/opt/lib/gcc/aarch64-w64-mingw32/15.0.0/../../../../aarch64-w64-mingw32/bin/ld: /opt/lib/gcc/aarch64-w64-mingw32/15.0.0/include/c++/ostream:673: cannot get section contents - auto-import exception (bit size 12)
/opt/lib/gcc/aarch64-w64-mingw32/15.0.0/../../../../aarch64-w64-mingw32/bin/ld: tests/call_once.exe.p/call_once.cpp.obj: in function `_Prepare_execution<std::call_once<main()::<lambda()> >(once_flag&, main()::<lambda()>&&)::<lambda()> >':
/opt/lib/gcc/aarch64-w64-mingw32/15.0.0/include/c++/mutex:843: cannot get section contents - auto-import exception (bit size 21)
/opt/lib/gcc/aarch64-w64-mingw32/15.0.0/../../../../aarch64-w64-mingw32/bin/ld: /opt/lib/gcc/aarch64-w64-mingw32/15.0.0/include/c++/mutex:843: cannot get section contents - auto-import exception (bit size 12)
/opt/lib/gcc/aarch64-w64-mingw32/15.0.0/../../../../aarch64-w64-mingw32/bin/ld: /opt/lib/gcc/aarch64-w64-mingw32/15.0.0/include/c++/mutex:845: cannot get section contents - auto-import exception (bit size 21)
/opt/lib/gcc/aarch64-w64-mingw32/15.0.0/../../../../aarch64-w64-mingw32/bin/ld: /opt/lib/gcc/aarch64-w64-mingw32/15.0.0/include/c++/mutex:845: cannot get section contents - auto-import exception (bit size 12)

This is the script for invoking the test: https://github.com/msys2/msys2-tests/blob/787806b2a0af9fc1da09d268bf985f1307075f67/toolchain/test.sh#L12-L16

I don't know if that is causing any runtime issues as I don't have a way to run them.

@Blackhex Blackhex changed the title ld: cannot get section contents - auto-import exception (bit size 12) ld: cannot get section contents - auto-import exception (bit size 12) Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant