Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627330 - dev-lang/lua-5.1.5-r4 with crossdev - .libs/lapi.o: error adding symbols: File in wrong format
Summary: dev-lang/lua-5.1.5-r4 with crossdev - .libs/lapi.o: error adding symbols: Fil...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-08 14:36 UTC by Coacher
Modified: 2019-07-10 16:04 UTC (History)
1 user (show)

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


Attachments
emerge --info (info,7.12 KB, text/plain)
2017-08-08 14:36 UTC, Coacher
Details
arm-unknown-linux-gnueabi-emerge --info (cross-info,2.61 KB, text/plain)
2017-08-08 14:37 UTC, Coacher
Details
build.log (build.log,9.26 KB, text/plain)
2017-08-08 14:37 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2017-08-08 14:36:37 UTC
Created attachment 488288 [details]
emerge --info

Hello.

Cross-emerge fails with:
libtool --quiet --tag=CC --mode=link arm-unknown-linux-gnueabi-gcc -version-info 6:5:1 \
            -rpath /usr/lib/ -Wl,--hash-style=gnu  -o liblua.la lapi.lo lcode.lo ldebug.lo ldo.lo ldump.lo lfunc.lo lgc.lo llex.lo lmem.lo lobject.lo lopcodes.lo lparser.lo lstate.lo lstring.lo ltable.lo ltm.lo lundump.lo lvm.lo lzio.lo lauxlib.lo lbaselib.lo ldblib.lo liolib.lo lmathlib.lo loslib.lo ltablib.lo lstrlib.lo loadlib.lo linit.lo -lm -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/lapi.o: Relocations in generic ELF (EM: 40)
.libs/lapi.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make: *** [Makefile:197: liblua.la] Error 1

I guess the build system mixes build and host binaries.
Comment 1 Coacher 2017-08-08 14:37:08 UTC
Created attachment 488290 [details]
arm-unknown-linux-gnueabi-emerge --info
Comment 2 Coacher 2017-08-08 14:37:37 UTC
Created attachment 488292 [details]
build.log
Comment 3 Vince C. 2019-07-10 16:04:49 UTC
I have just submitted a new ebuild for building and cross-compiling lua 5.1.5. See bug #689598 .