Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 805266 - sci-libs/gdal-3.3.1 and sci-libs/gdal-3.4.1: emake failed - error adding symbols: file in wrong format
Summary: sci-libs/gdal-3.3.1 and sci-libs/gdal-3.4.1: emake failed - error adding symb...
Status: RESOLVED OBSOLETE
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: 2022-12-21 19:19 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
Comment 7 vince.ice 2022-03-14 08:21:06 UTC
Problem persists in version 3.4.1
Workaround still works
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-14 09:12:46 UTC
Need new build.log as lots has changed since.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-14 11:53:00 UTC
(In reply to Sam James from comment #8)
> Need new build.log as lots has changed since.

FWIW, I did actually start a lot of work on this, but got bogged down in autotools hell with the huge amount of macros which needed fixing and doing the logic properly.

Upstream were very nice so no issue there, I just ended up moving on to something else. They're moving to CMake now too so this will resolve itself.

There is still a (huge) patch being applied though (gdal-3.3.0-libdir.patch) for the time being.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-09 05:20:02 UTC
Obsolete given move to CMake in stable now.