Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Ubuntu 16.04.1 [ libfl.so.2: invalid ELF header ] #63

Closed
VlasovRoman opened this issue Oct 7, 2016 · 6 comments
Closed
Assignees

Comments

@VlasovRoman
Copy link

VlasovRoman commented Oct 7, 2016

While compiling i gets strange error:



cc/bin/x86_64-powernex-ar: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libfl.so.2: invalid ELF header



I have tried install package from Debian testing reps, but it not solved this problem.

@Vild
Copy link
Member

Vild commented Oct 7, 2016

What does file /usr/lib/x86_64-linux-gnu/libfl.so.2 output?

@M4GNV5
Copy link
Member

M4GNV5 commented Oct 7, 2016

i get the same.
i just replaced cc/bin/x86_64-powernex-ar inside the build file with ar
Afaik ar just packs files anyways so using the system one shouldnt be that big of a problem.

@M4GNV5
Copy link
Member

M4GNV5 commented Oct 7, 2016

also:

➜  ~ file /usr/lib/x86_64-linux-gnu/libfl.so.2    
/usr/lib/x86_64-linux-gnu/libfl.so.2: symbolic link to libfl.so.2.0.0
➜  ~ file /usr/lib/x86_64-linux-gnu/libfl.so.2.0.0
/usr/lib/x86_64-linux-gnu/libfl.so.2.0.0: ASCII text
➜  ~ cat /usr/lib/x86_64-linux-gnu/libfl.so.2.0.0
/* GNU ld script
 *                                -*- Mode: C -*-
 * libfl.so ---
 * Author           : Manoj Srivastava ( srivasta@golden-gryphon.com )
 * Created On       : Mon Sep 11 13:25:55 2006
 * Created On Node  : glaurung.internal.golden-gryphon.com
 * Last Modified By : Manoj Srivastava
 * Last Modified On : Tue Sep 12 03:34:30 2006
 * Last Machine Used: glaurung.internal.golden-gryphon.com
 * Update Count     : 2
 * Status           : Unknown, Use with caution!
 * HISTORY          :
 * Description      :
 *
 * GNU ld script
 * When shared linking is requested, map the request to the PIC static
 * library, which is the closest we come to a shared library here.
 *
 * arch-tag: ce35efb4-3893-42c7-bdcb-56d95beba2ac
 */

INPUT( /usr/lib/x86_64-linux-gnu/libfl_pic.a )

@VlasovRoman
Copy link
Author

VlasovRoman commented Oct 7, 2016

+, libfl.so* in Debain-like systems contain same information.
P.S. Yes, your method works. Thanks!

@Vild
Copy link
Member

Vild commented Oct 13, 2016

I guess I should setup a build server that builds the toolchain for multiple distros.
I'll add this to my TODO list.

(Do this at the same time as #25)

@Vild Vild added this to the The Future™ milestone Oct 13, 2016
@Vild Vild self-assigned this Oct 13, 2016
@Vild
Copy link
Member

Vild commented Feb 27, 2018

Superseeded by #55 & #80

@Vild Vild closed this as completed Feb 27, 2018
@Vild Vild removed this from the Backlog milestone Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants