Home > Net >  xcode update to version 2395. ld compile problem occurs: computedAtomCount && "more atoms alloc
xcode update to version 2395. ld compile problem occurs: computedAtomCount && "more atoms alloc

Time:09-15

After I update xcode to new version in M1 Mac and then compile c by using make. the following problem occurs:

0  0x1010c81a0  __assert_rtn   140
1  0x100f4fa8c  mach_o::relocatable::Parser<arm64>::parse(mach_o::relocatable::ParserOptions const&)   4536
2  0x100f21d38  mach_o::relocatable::Parser<arm64>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&)   148
3  0x100f8a4ac  ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool)   1468
4  0x100f8d360  ___ZN2ld4tool10InputFilesC2ER7Options_block_invoke   56
5  0x1893941f4  _dispatch_client_callout2   20
6  0x1893a7954  _dispatch_apply_invoke   224
7  0x1893941b4  _dispatch_client_callout   20
8  0x1893a5a04  _dispatch_root_queue_drain   680
9  0x1893a6104  _dispatch_worker_thread2   164
10  0x189554324  _pthread_wqthread   228
A linker snapshot was created at:
    /tmp/smr_dense_SL-2022-09-14-165143.ld-snapshot
ld: Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected"), function parse, file macho_relocatable_file.cpp, line 2061.
collect2: error: ld returned 1 exit status
make: *** [smr_dense_SL] Error 1

CodePudding user response:

The same problem. Everything is good with my clang compiler, however, my gcc-12 compiler is crushed.

CodePudding user response:

Same problem for me. I've also reinstalled gcc-11 but this do not solve the problem.

  •  Tags:  
  • c
  • Related