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

Build issue with Apple Clang 15/macOS Sonoma #8

Closed
adamjstewart opened this issue Oct 4, 2023 · 1 comment
Closed

Build issue with Apple Clang 15/macOS Sonoma #8

adamjstewart opened this issue Oct 4, 2023 · 1 comment

Comments

@adamjstewart
Copy link

I'm trying to build GCC 13.2.0 with https://raw.githubusercontent.com/Homebrew/formula-patches/3c5cbc8e9cf444a1967786af48e430588e1eb481/gcc/gcc-13.2.0.diff, which is allegedly based off of this repo. However, I hit the following build error:

1  0x100afffac  ld::AtomPlacement::findAtom(unsigned char, unsigned long long, ld::AtomPlacement::AtomLoc const*&, long long&) const + 1204
2  0x100b15924  ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const + 15164
3  0x100b22e30  ld::InputFiles::parseAllFiles(void (ld::AtomFile const*) block_pointer)::$_7::operator()(unsigned long, ld::FileInfo const&) const + 420
4  0x18b159950  _dispatch_client_callout2 + 20
5  0x18b16cba0  _dispatch_apply_invoke + 176
6  0x18b159910  _dispatch_client_callout + 20
7  0x18b16b3cc  _dispatch_root_queue_drain + 864
8  0x18b16ba04  _dispatch_worker_thread2 + 156
9  0x18b3030d8  _pthread_wqthread + 228
ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336.
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:762: libstdc++.la] Error 1
make[5]: Leaving directory '/private/var/folders/jv/cgkfvslj6nq1l7cw0c8c_8gm0000gn/T/Adam/spack-stage/spack-stage-gcc-13.2.0-cif4pnk3frkkk7ycwb2xfeui2iosa5ad/spack-src/spack-build/aarch64-apple-darwin23.0.0/libstdc++-v3/src'
make[4]: *** [Makefile:795: all-recursive] Error 1
make[4]: Leaving directory '/private/var/folders/jv/cgkfvslj6nq1l7cw0c8c_8gm0000gn/T/Adam/spack-stage/spack-stage-gcc-13.2.0-cif4pnk3frkkk7ycwb2xfeui2iosa5ad/spack-src/spack-build/aarch64-apple-darwin23.0.0/libstdc++-v3/src'
make[3]: *** [Makefile:576: all-recursive] Error 1
make[3]: Leaving directory '/private/var/folders/jv/cgkfvslj6nq1l7cw0c8c_8gm0000gn/T/Adam/spack-stage/spack-stage-gcc-13.2.0-cif4pnk3frkkk7ycwb2xfeui2iosa5ad/spack-src/spack-build/aarch64-apple-darwin23.0.0/libstdc++-v3'
make[2]: *** [Makefile:501: all] Error 2
make[2]: Leaving directory '/private/var/folders/jv/cgkfvslj6nq1l7cw0c8c_8gm0000gn/T/Adam/spack-stage/spack-stage-gcc-13.2.0-cif4pnk3frkkk7ycwb2xfeui2iosa5ad/spack-src/spack-build/aarch64-apple-darwin23.0.0/libstdc++-v3'
make[1]: *** [Makefile:11955: all-target-libstdc++-v3] Error 2
make[1]: *** Waiting for unfinished jobs....

Full build log: spack-build-out.txt

@iains
Copy link
Owner

iains commented Oct 4, 2023

this is a duplicate of:
iains/gcc-darwin-arm64#117
and
iains/gcc-12-branch#22

The same work-around would apply.

@iains iains closed this as completed Oct 4, 2023
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

2 participants