Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 805266 - sci-libs/gdal-3.3.1: emake failed - error adding symbols: file in wrong format
Summary: sci-libs/gdal-3.3.1: emake failed - error adding symbols: file in wrong format
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-30 16:31 UTC by vince.ice
Modified: 2021-08-06 12:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (sci-libs:gdal-3.3.1:20210730-102508.log.xz,36.23 KB, application/x-xz)
2021-07-30 16:33 UTC, vince.ice
Details
emerge --info '=sci-libs/gdal-3.3.1::gentoo' (info,8.91 KB, text/plain)
2021-07-30 16:34 UTC, vince.ice
Details
emerge -pqv '=sci-libs/gdal-3.3.1::gentoo' (pqv,317 bytes, text/plain)
2021-07-30 16:34 UTC, vince.ice
Details
Ebuild environment (environment,227.91 KB, text/plain)
2021-07-30 16:35 UTC, vince.ice
Details
Workaround - config.status (config.status.diff,676 bytes, patch)
2021-08-06 12:40 UTC, vince.ice
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vince.ice 2021-07-30 16:31:29 UTC
x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libsqlite3.so when searching for -lsqlite3
x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for -lpcre
x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libOpenCL.so when searching for -lOpenCL
x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libxml2.so when searching for -lxml2

x86_64-pc-linux-gnu/bin/ld: //usr/lib/../lib/libstdc++.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status

make[1]: *** [GNUmakefile:75: libgdal.la] Error 1
make[1]: Leaving directory '/home/vince/temp/portage/sci-libs/gdal-3.3.1/work/gdal-3.3.1'
make: *** [GNUmakefile:88: check-lib] Error 2
make: Leaving directory '/home/vince/temp/portage/sci-libs/gdal-3.3.1/work/gdal-3.3.1'
ERROR: sci-libs/gdal-3.3.1::gentoo failed (compile phase):
   emake failed
Comment 1 vince.ice 2021-07-30 16:33:46 UTC
Created attachment 728367 [details]
Build log
Comment 2 vince.ice 2021-07-30 16:34:33 UTC
Created attachment 728370 [details]
emerge --info '=sci-libs/gdal-3.3.1::gentoo'
Comment 3 vince.ice 2021-07-30 16:34:57 UTC
Created attachment 728373 [details]
emerge -pqv '=sci-libs/gdal-3.3.1::gentoo'
Comment 4 vince.ice 2021-07-30 16:35:30 UTC
Created attachment 728376 [details]
Ebuild environment
Comment 5 vince.ice 2021-08-06 12:40:04 UTC
I manually modified config.status as to change:
    -L/usr/lib
to 
    -L/usr/lib64

(see diff attached)
Then compiled again with:
    ebuild /usr/portage/sci-libs/gdal/gdal-3.3.1.ebuild compile
and it worked.
Comment 6 vince.ice 2021-08-06 12:40:50 UTC
Created attachment 730822 [details, diff]
Workaround - config.status