Opened 14 months ago
Last modified 14 months ago
#68297 new defect
libgcc-devel @12-20221229_0+stdlib_flag: ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336
Reported by: | ofarrill | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | sonoma arm64 | Cc: | cjones051073 (Chris Jones), shpokas |
Port: | libgcc-devel |
Description
building libgcc-devel fails under Sonoma
Attachments (2)
Change History (11)
Changed 14 months ago by ofarrill
Changed 14 months ago by ofarrill
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc-devel/libgcc-devel/main.lo
comment:1 Changed 14 months ago by cjones051073 (Chris Jones)
for production purposes please use gcc12 instead. gcc-devel is really just for build testing purposes.
comment:2 Changed 14 months ago by cjones051073 (Chris Jones)
Cc: | cjones051073 added |
---|
comment:3 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | sonoma arm64 added; libgcc-devel Sonoma removed |
---|---|
Summary: | libgcc-devel-12-20221229_0+stdlib_flag.darwin_23.arm64.: Error: Failed to build libgcc-devel: command execution failed @sonoma → libgcc-devel @12-20221229_0+stdlib_flag: ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336 |
main1.log appears to be incomplete and does not end with an error.
main2.log appears to be a continuation of the log and contains this error:
0 0x103033648 __assert_rtn + 72 1 0x102f67fac ld::AtomPlacement::findAtom(unsigned char, unsigned long long, ld::AtomPlacement::AtomLoc const*&, long long&) const + 1204 2 0x102f7d924 ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const + 15164 3 0x102f8ae30 ld::InputFiles::parseAllFiles(void (ld::AtomFile const*) block_pointer)::$_7::operator()(unsigned long, ld::FileInfo const&) const + 420 4 0x188621950 _dispatch_client_callout2 + 20 5 0x1886361a4 _dispatch_apply_invoke_and_wait + 176 6 0x188635464 _dispatch_apply_with_attr_f + 1176 7 0x188635650 dispatch_apply + 96 8 0x1030053b8 ld::AtomFileConsolidator::parseFiles(bool) + 292 9 0x102fa6170 main + 9048 ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336. collect2: error: ld returned 1 exit status
In the future, it's preferred to upload a single logfile that is compressed if it is large.
comment:4 Changed 14 months ago by cjones051073 (Chris Jones)
Thats entirely expected, as the gcc-devel port doesn’t yet have the workarounds added to gcc12 and gcc13 for the Xcode 15 linker issues.
This port also needs an update, as the snapshot built here is now quite old.
I will take a look when I can next week, but in the meantime I recommend just uninstalling the devel port and using one of the released versions instead. Gcc12 would be the best choice, as gcc13 is new and still to be proven.
comment:5 Changed 14 months ago by ofarrill
Thanks, it's not that I installed this port specifically, it was installed because of the dependencies from
fftw-3 @3.3.10_0
-> ImageMagick @6.9.11-60_10
py27-numpy @1.16.6_3
-> py27-pygtk @2.24.0_6
-> gimp2 @2.10.34_3 -> gimp2 @2.10.34_6
OpenBLAS @0.3.23_0
->py27-numpy @1.16.6_3
py311-numpy @1.25.2_0
->inkscape @1.3_1 ->OpenBLAS @0.3.23_0
But the problematic sequence seems to arise when sudo port upgrade outdated ---> Fetching archive for cctools ---> Attempting to fetch cctools-949.0.1_3+xcode.darwin_23.noarch.tbz2 from https://packages.macports.org/cctools ---> Attempting to fetch cctools-949.0.1_3+xcode.darwin_23.noarch.tbz2 from https://fra.de.packages.macports.org/cctools ---> Attempting to fetch cctools-949.0.1_3+xcode.darwin_23.noarch.tbz2 from https://nue.de.packages.macports.org/cctools ---> Fetching distfiles for cctools ---> Verifying checksums for cctools ---> Extracting cctools ---> Configuring cctools ---> Building cctools ---> Staging cctools into destroot ---> Installing cctools @949.0.1_3+xcode ---> Activating cctools @949.0.1_3+xcode ---> Cleaning cctools ---> Computing dependencies for isl ---> Fetching archive for isl ---> Attempting to fetch isl-0.24_1.darwin_23.arm64.tbz2 from https://packages.macports.org/isl ---> Attempting to fetch isl-0.24_1.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/isl ---> Attempting to fetch isl-0.24_1.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/isl ---> Fetching distfiles for isl ---> Verifying checksums for isl ---> Extracting isl ---> Applying patches to isl ---> Configuring isl ---> Building isl ---> Staging isl into destroot ---> Installing isl @0.24_1 ---> Activating isl @0.24_1 ---> Cleaning isl ---> Fetching archive for ld64-xcode ---> Attempting to fetch ld64-xcode-2_6.darwin_23.arm64.tbz2 from https://packages.macports.org/ld64-xcode ---> Attempting to fetch ld64-xcode-2_6.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/ld64-xcode ---> Attempting to fetch ld64-xcode-2_6.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/ld64-xcode ---> Fetching distfiles for ld64-xcode ---> Verifying checksums for ld64-xcode ---> Extracting ld64-xcode ---> Configuring ld64-xcode ---> Building ld64-xcode ---> Staging ld64-xcode into destroot ---> Installing ld64-xcode @2_6 ---> Activating ld64-xcode @2_6 ---> Cleaning ld64-xcode ---> Computing dependencies for ld64 ---> Fetching archive for ld64 ---> Attempting to fetch ld64-3_6+ld64_xcode.darwin_23.arm64.tbz2 from https://packages.macports.org/ld64 ---> Attempting to fetch ld64-3_6+ld64_xcode.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/ld64 ---> Attempting to fetch ld64-3_6+ld64_xcode.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/ld64 ---> Fetching distfiles for ld64 ---> Verifying checksums for ld64 ---> Extracting ld64 ---> Configuring ld64 ---> Building ld64 ---> Staging ld64 into destroot ---> Installing ld64 @3_6+ld64_xcode ---> Activating ld64 @3_6+ld64_xcode ---> Cleaning ld64 ---> Computing dependencies for mpfr ---> Fetching archive for mpfr ---> Attempting to fetch mpfr-4.2.1_0.darwin_23.arm64.tbz2 from https://packages.macports.org/mpfr ---> Attempting to fetch mpfr-4.2.1_0.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/mpfr ---> Attempting to fetch mpfr-4.2.1_0.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/mpfr ---> Fetching distfiles for mpfr ---> Verifying checksums for mpfr ---> Extracting mpfr ---> Configuring mpfr ---> Building mpfr ---> Staging mpfr into destroot ---> Installing mpfr @4.2.1_0 ---> Activating mpfr @4.2.1_0 ---> Cleaning mpfr ---> Computing dependencies for libmpc ---> Fetching archive for libmpc ---> Attempting to fetch libmpc-1.3.1_0.darwin_23.arm64.tbz2 from https://packages.macports.org/libmpc ---> Attempting to fetch libmpc-1.3.1_0.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/libmpc ---> Attempting to fetch libmpc-1.3.1_0.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/libmpc ---> Fetching distfiles for libmpc ---> Verifying checksums for libmpc ---> Extracting libmpc ---> Configuring libmpc ---> Building libmpc ---> Staging libmpc into destroot ---> Installing libmpc @1.3.1_0 ---> Activating libmpc @1.3.1_0 ---> Cleaning libmpc ---> Fetching archive for gcc_select ---> Attempting to fetch gcc_select-0.1_10.darwin_23.noarch.tbz2 from https://packages.macports.org/gcc_select ---> Attempting to fetch gcc_select-0.1_10.darwin_23.noarch.tbz2 from https://fra.de.packages.macports.org/gcc_select ---> Attempting to fetch gcc_select-0.1_10.darwin_23.noarch.tbz2 from https://nue.de.packages.macports.org/gcc_select ---> Fetching distfiles for gcc_select ---> Verifying checksums for gcc_select ---> Extracting gcc_select ---> Configuring gcc_select ---> Building gcc_select ---> Staging gcc_select into destroot ---> Installing gcc_select @0.1_10 ---> Activating gcc_select @0.1_10 ---> Cleaning gcc_select ---> Fetching archive for libgcc-devel ---> Attempting to fetch libgcc-devel-12-20221229_0+stdlib_flag.darwin_23.arm64.tbz2 from https://packages.macports.org/libgcc-devel ---> Attempting to fetch libgcc-devel-12-20221229_0+stdlib_flag.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/libgcc-devel ---> Attempting to fetch libgcc-devel-12-20221229_0+stdlib_flag.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/libgcc-devel ---> Computing dependencies for libgcc-devel ---> Building libgcc-devel Error: Failed to build libgcc-devel: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc-devel/libgcc-devel/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
comment:6 Changed 14 months ago by cjones051073 (Chris Jones)
You probably have those dependencies because you have ports installed with out of date default variants. You need to uninstall any port that is using gcc -devel and reinstall with the latest defaults, which will be gcc12.
comment:7 Changed 14 months ago by cjones051073 (Chris Jones)
Run
port -qv installed
And search that list for any ports using gcc-devel variants. Uninstall those ports and reinstall with a different variant (e.g. the defaults).
comment:9 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)
Cc: | shpokas added |
---|
Has duplicate #68351.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc-devel/libgcc-devel/main.log