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.
<http://goog_331809354>git/commit/ <http://goog_331809354>
ff783b94c7b973e86b1145e53a4092 <http://goog_331809354>6bb87eb47f
<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
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to