Package: tcc
Version: 0.9.25-6
Severity: grave
Justification: renders package unusable


TCC fails to build the most trivial code because it can't find crt1.o, crti.o 
and crtn.o:

test.c:
        int
        main ()
        {
        
          ;
          return 0;
        }


tcc call:
        $ tcc -L/usr/lib/x86_64-linux-gnu test.c
        tcc: file '/usr/lib/crt1.o' not found
        tcc: file '/usr/lib/crti.o' not found
        tcc: file '/usr/lib/crtn.o' not found


This seems to happen because the paths for these files are hardcoded in TCC to 
        CONFIG_TCC_CRT_PREFIX CONFIG_SYSROOT "/usr/lib"
rather than an arch-specific path like
        CONFIG_TCC_CRT_PREFIX CONFIG_SYSROOT "/usr/lib/x86_64-linux-gnu"

Changing the constant to this fixes the problem on my x86_64 system -- but of
course it won't work on a i386 system.

Since TCC's build system can probably know the libdir (it seems to be given to
dh_auto_configure), it should be possible to make it be something like:
        CONFIG_TCC_CRT_PREFIX CONFIG_SYSROOT LIBDIR


Note that this bug don't seem to affect programs built and run with the -run 
option.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tcc depends on:
ii  dpkg                      1.16.0.3       Debian package management system
ii  install-info              4.13a.dfsg.1-6 Manage installed documentation in 
ii  libc6                     2.13-7         Embedded GNU C Library: Shared lib

Versions of packages tcc recommends:
ii  libc6-dev [libc-dev]          2.13-7     Embedded GNU C Library: Developmen

tcc suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to