bugTiny C Compiler - Bugs: bug #15366, tcc won't work with libc-2.3.5...

 
 

bug #15366: tcc won't work with libc-2.3.5 from ubuntu-5.10

Submitted by:  None
Submitted on:  Tue 03 Jan 2006 11:53:18 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Fri 19 Oct 2012 01:49:28 PM UTC, comment #6:

Tcc is working well in Ubuntu now. Hence closing this bug. Thanks all for the report.

Thomas Preud'homme <robotux>
Project Member
Thu 27 Jul 2006 04:46:04 PM UTC, comment #5:

I've found that the "undefined reference to" messages are the result of the libtcc1.a file on your system being stripped. I suggest trying a recompile without doing 'strip' on libtcc1.a

Jelle Foks <jelle>
Sat 15 Jul 2006 03:52:49 PM UTC, comment #4:

And SUSE 10.0
radioactiveroach@linux:~/Documents/tcc-0.9.23/examples> tcc -o helloWorld hello.o
/usr/lib/crtn.o: Invalid relocation entry
radioactiveroach@linux:~/Documents/tcc-0.9.23/examples>

Anonymous
Thu 13 Apr 2006 06:29:46 AM UTC, comment #3:

I found this patch in another forum. It did fix the problem for me, also not using gcc 4.x seems to help.
http://lists.gnu.org/archive/html/tinycc-devel/2005-09/txtJuEgJiyPEC.txt

Mike Fuzzy Partin <fuzzyoni>
Mon 10 Apr 2006 11:32:34 PM UTC, comment #2:

Ah .. I have the same errer :)

I'm also running Ubuntu, the unstable one.
Compiling doesn't work but it works with -run parameter :

$ tcc -run showargs.c arg1 arg2
arg 0: "showargs.c"
arg 1: "arg1"
arg 2: "arg2"

$ tcc showargs.c -o showargs
/usr/lib/crtn.o: Invalid relocation entry

-----
but I wouldn't say that it compiles wothout any errors ...
It compiles, yes, but the tests fails

$ LC_ALL=C make
gcc -O2 -g -Wall -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 -fno-strict-aliasing -o libtcc_test libtcc_test.c libtcc.a -ldl
libtcc.a(libtcc.o): In function `gen_cast':/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5835: undefined reference to `__tcc_int_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5835: undefined reference to `__tcc_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5836: undefined reference to `__tcc_int_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5836: undefined reference to `__tcc_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5837: undefined reference to `__tcc_int_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5837: undefined reference to `__tcc_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5843: undefined reference to `__tcc_int_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5843: undefined reference to `__tcc_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5844: undefined reference to `__tcc_int_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5844: undefined reference to `__tcc_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5845: undefined reference to `__tcc_int_fpu_control'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:5845: undefined reference to `__tcc_fpu_control'
libtcc.a(libtcc.o): In function `init_putv':/home/mildred2/.local/src/tcc-0.9.23/tcc.c:8327: undefined reference to `__shldi3'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:8339: undefined reference to `__shldi3'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:8342: undefined reference to `__shldi3'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:8351: undefined reference to `__shldi3'
:/home/mildred2/.local/src/tcc-0.9.23/tcc.c:8357: undefined reference to `__shldi3'
collect2: ld returned 1 exit status
make: *** [libtcc_test] Error 1

maybe it's another bug ... don't know

Mildred <mildred>
Sun 09 Apr 2006 06:30:49 PM UTC, comment #1:

The same error happens on Fedora Core 4, and ZenWalk 2.4.

fuzzy[tinycc]$ make
tcc -O2 -g -Wall -mpreferred-stack-boundary=2 -m386 -malign-functions=0 -o tcc tcc.c -ldl
/usr/lib/crtn.o: Invalid relocation entry
tcc -O2 -Wall -c -o libtcc1.o libtcc1.c
ar rcs libtcc1.a libtcc1.o
tcc -O2 -Wall -c -o bcheck.o bcheck.c
tcc -O2 -g -Wall -mpreferred-stack-boundary=2 -m386 -malign-functions=0 -DLIBTCC -c -o libtcc.o tcc.c
ar rcs libtcc.a libtcc.o
tcc -O2 -g -Wall -mpreferred-stack-boundary=2 -m386 -malign-functions=0 -o libtcc_test libtcc_test.c libtcc.a -ldl
/usr/lib/crtn.o: Invalid relocation entry

Mike Fuzzy Partin <fuzzyoni>
Tue 03 Jan 2006 11:53:18 PM UTC, original submission:

tcc builds well, but running it I get the following linker error

$ tcc -o hello hello.c
/usr/lib/crtn.o: Invalid relocation entry

compiling works:
$ tcc -c -o hello.o hello.c

linking fails:
$ tcc -o hello hello.o
/usr/lib/crtn.o: Invalid relocation entry
$ gcc -o hello hello.o
$ ./hello
Hello, World!

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #2262:  crtn.o added by None (2KiB - application/x-object - crtn.o from ubuntu-5.10)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by robotux (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 19 Oct 2012 01:49:28 PM UTCrobotuxStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 10 Apr 2006 11:32:34 PM UTCmildredCarbon-Copy-=>Added mildred
    Tue 03 Jan 2006 11:53:18 PM UTCNoneAttached File-=>Added crtn.o, #3243

    Back to the top


    Powered by Savane 3.1-cleanup1