I am using tcc
for a numerical framework which requires functions to be compiled on execution.
Compiled on Linux Mint using:
./configure (default target x86_64)
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:
The origin of the error is:
static int tcc_load_ldscript(TCCState *s1)
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.