Package: tcc Version: 0.9.26~git20120104.83d57c0-5 Severity: important When I want to build MPFR with tcc and shared libraries, I get errors of the form
Symbol `mpfr_xxx' causes overflow in R_X86_64_PC32 relocation at run time. For instance: $ ./tversion ./tversion: Symbol `mpfr_assert_fail' causes overflow in R_X86_64_PC32 relocation ./tversion: Symbol `mpfr_assert_fail' causes overflow in R_X86_64_PC32 relocation ./tversion: Symbol `mpfr_assert_fail' causes overflow in R_X86_64_PC32 relocation ./tversion: Symbol `mpfr_assert_fail' causes overflow in R_X86_64_PC32 relocation ./tversion: Symbol `mpfr_assert_fail' causes overflow in R_X86_64_PC32 relocation ./tversion: Symbol `mpfr_assert_fail' causes overflow in R_X86_64_PC32 relocation ./tversion: Symbol `mpfr_assert_fail' causes overflow in R_X86_64_PC32 relocation ./tversion: Symbol `mpfr_assert_fail' causes overflow in R_X86_64_PC32 relocation ./tversion: Symbol `mpfr_clear' causes overflow in R_X86_64_PC32 relocation ./tversion: Symbol `mpfr_clear' causes overflow in R_X86_64_PC32 relocation [...] To reproduce the problem, patch libtool for tcc support: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=663945 then: $ autoreconf -fi $ ./configure CC=tcc $ make $ make check Compiling doesn't produce any error. The errors occur at run time only. Note: MPFR depends on GMP, which is provided here by the Debian packages (thus GMP hasn't been compiled with tcc). I'm reporting this bug because bug 650757, with the same kind of errors, was actually a bug in cmake, but MPFR doesn't use cmake. IMHO, if something is wrong in the build chain (e.g. an option specific to tcc that is missing), then there should be an error there. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/8 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages tcc depends on: ii dpkg 1.16.3 ii install-info 4.13a.dfsg.1-10 ii libc6 2.13-32 Versions of packages tcc recommends: ii libc6-dev [libc-dev] 2.13-32 tcc suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

