tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] test failure on Linux


From: Ramsay Jones
Subject: Re: [Tinycc-devel] test failure on Linux
Date: Tue, 12 Feb 2013 18:28:16 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

Thomas Preud'homme wrote:
> Le samedi 9 février 2013 17:01:44, vous avez écrit :
>> Hi
>>
>> Sorry for not testing earlier, but the current 'mob' branch does not
>> pass the tests for me, viz:
>>
>>     $ git --no-pager log --oneline -1
>>     7a477d7 lib/Makefile: use CC, add bcheck to libtcc1.a
>>     $ make clean >/dev/null
>>     $ make >out 2>&1
>>     $ make test
>>     make -C tests test
>>     make[1]: Entering directory `/home/ramsay/tinycc/tests'
>>     ------------ hello ------------
>>     ../tcc -B.. ../examples/ex1.c -o hello && ./hello
>>     tcc: error: file 'crt1.o' not found
>>     tcc: error: file 'crti.o' not found
>>     tcc: error: file 'crtn.o' not found
>>     tcc: error: undefined symbol 'printf'
>>     make[1]: *** [hello] Error 1
>>     make[1]: Leaving directory `/home/ramsay/tinycc/tests'
>>     make: *** [test] Error 2
>>     $
>>
>> This is on (a somewhat dated) Linux (ubuntu):
>>
>>     $ uname -a
>>     Linux ramsay-laptop 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC
>> 2007 i686 GNU/Linux $
> 
> Can you tell me what is in /lib/i386-linux-gnu?

Ultimately nothing! ;-) [Quoting from the email you are replying to]:

    $ ls -l /lib/i386-linux-gnu
    lrwxrwxrwx 1 root root 19 2007-06-24 19:44 /lib/i386-linux-gnu -> 
/lib/i486-linux-gnu/
    $ ls -l /lib/i486-linux-gnu/
    total 0
    $ 

Also we see:

    $ ls -l /usr/lib/crt?.o
    -rw-r--r-- 1 root root 2459 2007-04-04 11:31 /usr/lib/crt1.o
    -rw-r--r-- 1 root root 2296 2007-04-04 11:31 /usr/lib/crti.o
    -rw-r--r-- 1 root root 1824 2007-04-04 11:31 /usr/lib/crtn.o
    $ 

>                                                 Also, can you tell me what is 
> the final destination of the symbolic link /lib/ld-linux.so.2?

    $ ls -l /lib/ld-linux.so.2
    lrwxrwxrwx 1 root root 9 2007-06-24 19:44 /lib/ld-linux.so.2 -> ld-2.5.so*
    $ ls -l /lib/ld-*.so
    -rwxr-xr-x 1 root root 109268 2007-04-04 11:48 /lib/ld-2.5.so*
    $ 

I've added some further information from gcc below. If you need more
information about my environment, or for me to test some patches etc.,
just let me know.

Thanks!

ATB,
Ramsay Jones

    $ gcc -v
    Using built-in specs.
    Target: i486-linux-gnu
    Configured with: ../src/configure -v 
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr 
--enable-shared --with-system-zlib --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix --enable-nls 
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
    Thread model: posix
    gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
    $

    $ gcc -print-file-name=crt1.o
    /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o
    $ 

    $ gcc -print-search-dirs
    install: /usr/lib/gcc/i486-linux-gnu/4.1.2/
    programs: 
=/usr/lib/gcc/i486-linux-gnu/4.1.2/:/usr/lib/gcc/i486-linux-gnu/4.1.2/:/usr/lib/gcc/i486-linux-gnu/:/usr/lib/gcc/i486-linux-gnu/4.1.2/:/usr/lib/gcc/i486-linux-gnu/:/usr/libexec/gcc/i486-linux-gnu/4.1.2/:/usr/libexec/gcc/i486-linux-gnu/:/usr/lib/gcc/i486-linux-gnu/4.1.2/:/usr/lib/gcc/i486-linux-gnu/:/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/bin/i486-linux-gnu/4.1.2/:/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/bin/
    libraries: 
=/usr/lib/gcc/i486-linux-gnu/4.1.2/:/usr/lib/gcc/i486-linux-gnu/4.1.2/:/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/lib/i486-linux-gnu/4.1.2/:/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/lib/:/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../i486-linux-gnu/4.1.2/:/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../:/lib/i486-linux-gnu/4.1.2/:/lib/:/usr/lib/i486-linux-gnu/4.1.2/:/usr/lib/
    $ 






reply via email to

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