Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 627330

Summary: dev-lang/lua-5.1.5-r4 with crossdev - .libs/lapi.o: error adding symbols: File in wrong format
Product: Gentoo Linux Reporter: Coacher <itumaykin+gentoo>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED FIXED    
Severity: normal CC: robbat2, sam, williamh
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=689598
https://bugs.gentoo.org/show_bug.cgi?id=791451
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
arm-unknown-linux-gnueabi-emerge --info
build.log

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 .
Comment 4 Larry the Git Cow gentoo-dev 2022-09-05 08:20:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=678e40a0f28403a4e6ef76695e33429fe6cefe00

commit 678e40a0f28403a4e6ef76695e33429fe6cefe00
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-09-05 08:20:00 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-09-05 08:20:00 +0000

    dev-lang/lua: update EAPI 7 -> 8
    
    Closes: https://github.com/gentoo/gentoo/pull/27061
    Bug: https://bugs.gentoo.org/472230
    Bug: https://bugs.gentoo.org/627330
    Bug: https://bugs.gentoo.org/689598
    Bug: https://bugs.gentoo.org/706378
    Bug: https://bugs.gentoo.org/765712
    Bug: https://bugs.gentoo.org/791451
    Bug: https://bugs.gentoo.org/834911
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lang/lua/Manifest              |  1 +
 dev-lang/lua/lua-5.4.4-r100.ebuild | 39 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=818a17909877d016c6baa9ab04ea875e98fd80bb

commit 818a17909877d016c6baa9ab04ea875e98fd80bb
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-09-05 08:19:59 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-09-05 08:19:59 +0000

    dev-lang/lua: update EAPI 7 -> 8
    
    Bug: https://bugs.gentoo.org/472230
    Bug: https://bugs.gentoo.org/627330
    Bug: https://bugs.gentoo.org/689598
    Bug: https://bugs.gentoo.org/706378
    Bug: https://bugs.gentoo.org/765712
    Bug: https://bugs.gentoo.org/791451
    Bug: https://bugs.gentoo.org/834911
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lang/lua/Manifest              |  1 +
 dev-lang/lua/lua-5.3.6-r100.ebuild | 39 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fab25cc8ac44fa73bb14821560ac1ba1829447df

commit fab25cc8ac44fa73bb14821560ac1ba1829447df
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-09-05 08:19:58 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-09-05 08:19:58 +0000

    dev-lang/lua: add 5.1.6
    
    * add two patches from Debian
    
    Bug: https://bugs.gentoo.org/472230
    Bug: https://bugs.gentoo.org/627330
    Bug: https://bugs.gentoo.org/689598
    Bug: https://bugs.gentoo.org/706378
    Bug: https://bugs.gentoo.org/765712
    Bug: https://bugs.gentoo.org/791451
    Bug: https://bugs.gentoo.org/834911
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lang/lua/Manifest                              |  1 +
 dev-lang/lua/files/5.1/0001-extern_C.patch         | 20 +++++++++
 ...02-Fix-stack-overflow-in-vararg-functions.patch | 17 ++++++++
 dev-lang/lua/lua-5.1.6.ebuild                      | 49 ++++++++++++++++++++++
 4 files changed, 87 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2022-10-13 13:19:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bc1f784b5c91f2e0be1aa06b155cff958ba22a0

commit 1bc1f784b5c91f2e0be1aa06b155cff958ba22a0
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-10-13 13:19:37 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-10-13 13:19:37 +0000

    dev-lang/lua: drop 5.1.5-r109, 5.3.6-r5, 5.4.4-r2
    
    Bug: https://bugs.gentoo.org/520480
    Bug: https://bugs.gentoo.org/717780
    Closes: https://bugs.gentoo.org/460114
    Closes: https://bugs.gentoo.org/462064
    Closes: https://bugs.gentoo.org/539826
    Closes: https://bugs.gentoo.org/627330
    Closes: https://bugs.gentoo.org/689598
    Closes: https://bugs.gentoo.org/706378
    Closes: https://bugs.gentoo.org/791772
    Closes: https://bugs.gentoo.org/834153
    Closes: https://bugs.gentoo.org/834911
    Closes: https://bugs.gentoo.org/843320
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-lang/lua/Manifest                         |   5 -
 dev-lang/lua/files/configure.in               |   5 -
 dev-lang/lua/files/lua-5.1-module_paths.patch |  30 -----
 dev-lang/lua/files/lua-5.1-readline.patch     |  10 --
 dev-lang/lua/files/lua-5.1.4-deprecated.patch |  46 -------
 dev-lang/lua/files/lua-5.1.5-make.patch       |  97 -------------
 dev-lang/lua/files/lua-5.3.6-make.patch       |  91 -------------
 dev-lang/lua/files/lua-5.4.2-r2-make.patch    |  99 --------------
 dev-lang/lua/files/lua.pc                     |  31 -----
 dev-lang/lua/lua-5.1.5-r109.ebuild            | 145 --------------------
 dev-lang/lua/lua-5.3.6-r5.ebuild              | 187 --------------------------
 dev-lang/lua/lua-5.4.4-r2.ebuild              | 184 -------------------------
 dev-lang/lua/metadata.xml                     |  23 ++--
 13 files changed, 11 insertions(+), 942 deletions(-)