Bug#808205: libc6: Unrecognized relocation when compiling
You are right. I apologize, I so much did not expect testing packages on the system I am working on that I was in denial of libc6 not being the stable version! I don’t remember why I have sid/stretch packages (I really should not have).
$ dpkg -l libc6:amd64
[…]
ii libc6:amd64 2.21-1 amd64 GNU C Library: Shared libraries
$ md5sum /usr/lib/x86_64-linux-gnu/crti.o
4ca8dc3c02f848753e5a5317fe78fb14 /usr/lib/x86_64-linux-gnu/crti.o
I have downgraded everything to stable and the issue has of course disappeared. Sorry for the noise and thanks for your help.
> On Jan 5, 2016, at 1:39 AM, Aurelien Jarno <aurelien@aurel32.net> wrote:
>
> On 2016-01-05 00:55, Mahesh Kronecker wrote:
>> Dear all,
>> I am on Debian/Jessie, not sid nor Stretch, but I can reproduce the hello.c bug as done by John Aston:
>>
>> $ gcc hello.c -o hello
>> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o: réadressage inconnu (0x2a) dans la section « .init »
>> /usr/bin/ld: édition de lien finale en échec: Mauvaise valeur
>> collect2: error: ld returned 1 exit status
>>
>> Packages:
>> --------------------------------------
>> sudo apt-cache show binutils
>> Package: binutils
>> Version: 2.25-5
>>
>> Package: libc6-dev
>> Source: glibc
>> Version: 2.19-18+deb8u1
>>
>> sudo apt-cache show libgcc1
>> Package: libgcc1
>> Source: gcc-4.9 (4.9.2-10)
>> Version: 1:4.9.2-10
>>
>> sudo apt-cache show libc6
>> Package: libc6
>> Status: install ok installed
>> […]
>> Source: glibc
>> Version: 2.21-1
>
> glibc version 2.21-1 has never been available in jessie...
>
>> […]
>> -------------------------------------
>>
>> Is there something wrong in my settings or is this related to the bug you are describing in the testing versions of Debian?
>> I do not know what to do to fix the issue on my system.
>
> It really looks like your system have a mix of jessie and stretch or
> sid. Can you please try to run the following commands and send me the
> output:
>
> dpkg -l libc6:amd64
>
> md5sum /usr/lib/x86_64-linux-gnu/crti.o
>
> --
> Aurelien Jarno GPG: 4096R/1DDD8C9B
> aurelien@aurel32.net http://www.aurel32.net
Reply to: