Attempting to emerge sci-libs/gdal fails. Reproducible: Always Steps to Reproduce: 1. emerge =sci-libs/gdal-1.7.2 Actual Results: /var/tmp/portage/sci-libs/gdal-1.7.2/work/gdal-1.7.2/libgdal.so: file not recognized: File truncated collect2: ld returned 1 exit status make[1]: *** [gdalinfo] Error 1 make[1]: Leaving directory `/var/tmp/portage/sci-libs/gdal-1.7.2/work/gdal-1.7.2/apps' make: *** [install-actions] Error 2 make: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/sci-libs/gdal-1.7.2/work/gdal-1.7.2' * ERROR: sci-libs/gdal-1.7.2 failed: * make install failed * * Call stack: * ebuild.sh, line 54: Called src_install * environment, line 5826: Called die * The specific snippet of code: * emake DESTDIR="${D}" install || die "make install failed"; * * If you need support, post the output of 'emerge --info =sci-libs/gdal-1.7.2', * the complete build log and the output of 'emerge -pqv =sci-libs/gdal-1.7.2'. * The complete build log is located at '/var/tmp/portage/sci-libs/gdal-1.7.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-libs/gdal-1.7.2/temp/environment'. * S: '/var/tmp/portage/sci-libs/gdal-1.7.2/work/gdal-1.7.2' Expected Results: Successful merge
Created attachment 241547 [details] Outupt of emerge --info =sci-libs/gdal-1.7.2
Created attachment 241549 [details] Output of emerge -pqv =sci-libs/gdal-1.7.2
Created attachment 241551 [details] Environment file from the build of gdal
Created attachment 241553 [details] Build log from the build of gdal
Same error here with -j5, but works with -j1
Forcing MAKEOPTS="-j1" does allow it to merge.
Disable ccache. Retry and report if it still fails.
Package does merge with MAKEOPTS="-j2" and without FEATURES="ccache". Having done this I tried to merge again with ccache re-enabled and it still failed with ccache
Reproduced without ccache around.
Thanks for confirming Diego. I disabled parallel make in global scope. Please retry and reopen if still occurs or close as fixed if it now workie