tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] float value triggers error


From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] float value triggers error
Date: Sun, 03 Nov 2013 23:45:29 +0800
User-agent: KMail/4.10.5 (Linux/2.6.38-ac2-ac100; KDE/4.10.5; armv7l; ; )

Le lundi 21 octobre 2013 07:26:07 Stevie G. Messervey a écrit :
> Hello,
> 
> Here is a small example program that reproduces the error:
> 
> #!/usr/local/bin/tcc -run
> #include <stdlib.h>
> #include <stdio.h>
> 
> int main(int argc, char **argv) {
>   int y = (int)(25.0 * (rand() / RAND_MAX));
>   printf("%d\n",y);
>   exit(EXIT_SUCCESS);
> }
> 
> when attempting to execute it (or even compile it, without the #!), I get
> these errors: tcc: error: undefined symbol '__tcc_int_fpu_control'
> tcc: error: undefined symbol '__tcc_fpu_control'
> 
> I see this behavior on CentOS 5.9 and Debian 6.0.7
> CentOS gcc: 4.4.7 20120313 (Red Hat 4.4.7-1)
> Debian gcc: 4.4.5 (Debian 4.4.5-8)
> Both are 32-bit
> tcc version 0.9.25 & 0.9.26, configured only as '--with-libgcc'
> 
> Can anyone shed some light?

Sorry, I couldn't reproduce this error on Debian sid. Could you try with the 
mob branch?

Alternatively, you could try using the same configure invocation as in the 
Debian package? That is, ensure you have:

Binary  directory   /usr/bin
TinyCC directory    /usr/lib/x86_64-linux-gnu/../tcc
Library directory   /usr/lib/x86_64-linux-gnu
Include directory   /usr/include
Manual directory    /usr/share/man
Info directory      /usr/share/info
Doc directory       /usr/share/doc/../tcc

after running the configure script.

> 
> Thank you,
>   Steve

Best regards,

Thomas



reply via email to

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