tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Fwd: Bug#675024: tcc: errors "Symbol `mpfr_xxx' cause


From: Michael Matz
Subject: Re: [Tinycc-devel] Fwd: Bug#675024: tcc: errors "Symbol `mpfr_xxx' causes overflow in R_X86_64_PC32 relocation"
Date: Fri, 4 Apr 2014 20:52:13 +0200 (CEST)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

Hi,

On Fri, 4 Apr 2014, Vincent Lefevre wrote:

Actually I just fixed a similar error for gawk (libtcc1.a containing non-PIC
code), which has exactly that symptom ('abort' and _PC32 reloc overflowing).
So it's worth a new try with mob branch.

This doesn't change anything in MPFR:

ypig:...ftware/mpfr/tests> ./texceptions
./texceptions: Symbol `stderr' causes overflow in R_X86_64_PC32 relocation
./texceptions: Symbol `abort' causes overflow in R_X86_64_PC32 relocation
zsh: segmentation fault (core dumped)  ./texceptions

Have you rebuilt libtcc1.a (e.g. "make clean" before redoing make in tcc)? And reinstalled it? How did you configure tinycc? How did you configure mpfr. Because I can't reproduce:

% tcc> ./configure && make -j8
% tcc> cd /tmp/mpfr-3.1.2
% mpfr-3.1.2> CC="/matz/git/tinycc/tcc -B/matz/git/tinycc/" ./configure
...
% mpfr-3.1.2> make -j8 && make check
...
[tversion] GMP: header 5.0.2, library 5.0.2
[tversion] MPFR tuning parameters from default
PASS: tversion
====================
All 160 tests passed
(1 test was not run)
====================
...

(The skipped test is tget_set_d64).  In particular:

% mpfr-3.1.2> cd tests && ./texceptions
% tests> echo $?
0
% ldd ./texceptions
        linux-vdso.so.1 =>  (0x00007fffd336f000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f36ffd28000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f36ff9bb000)
        libmpfr.so.4 => /tmp/mpfr-3.1.2/src/.libs/libmpfr.so.4 
(0x00007f36ff714000)
        libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007f36ff496000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f36fff7f000)


Ciao,
Michael.



reply via email to

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