tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] /usr/lib/libc.so:3 error: unrecognized file type


From: Mads
Subject: [Tinycc-devel] /usr/lib/libc.so:3 error: unrecognized file type
Date: Mon, 26 Jan 2015 23:04:36 +0100

I am using tcc for a numerical framework which requires functions to be compiled on execution. 

Setup:
Latest mob branch version (may apply to all): http://repo.or.cz/w/tinycc.git/commit/ff783b94c7b973e86b1145e53a40926bb87eb47f
Compiled on Linux Mint using:
./configure (default target x86_64)
make

It compiles and runs as expected (tested for two partitions of Linux Mint). However, an error is produced when testing on another Linux system (Linux students 3.13.6-1 ( x86_64 PLD Linux )):

/usr/lib/libc.so:3 error: unrecognized file type

This error has previously been discussed e.g in:
https://lists.gnu.org/archive/html/tinycc-devel/2003-05/msg00000.html
https://lists.gnu.org/archive/html/tinycc-devel/2003-05/msg00011.html (suggested solution, tested but didn't work)
https://lists.gnu.org/archive/html/tinycc-devel/2014-04/msg00058.html
...

The origin of the error is:
static int tcc_load_ldscript(TCCState *s1)
inside tccelf.c
which is the function that links libc.so:3

I do not understand the error or why it only occurs for specific systems.
This error seems to be quite common, but I have not found a solution or a satisfying explanation among countless of threads.

An explanation of the error and/or a possible work-around would be greatly appreciated. 

~Mads

reply via email to

[Prev in Thread] Current Thread [Next in Thread]