[lfs-dev] binutils-2.27 major problem

Bruce Dubbs bruce.dubbs at gmail.com
Thu Aug 4 18:35:04 PDT 2016


Bruce Dubbs wrote:
> Douglas R. Reno wrote:
>> On Thu, Aug 4, 2016 at 6:03 PM, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
>>
>>> I started to test both binutils-2.27 and glibc-2.24 today and got a crash
>>> at binutils-pass2.  I then backed off and tried binutils-2.27 with the
>>> existing glibc and still got the crash.  Trying the new glibc and the old
>>> binutils was OK.
>>>
>>> The binutils-pass2 error is in the configure section:
>>>
>>> configure:4496: checking whether the C compiler works
>>> configure:4505: ./a.out
>>> ../configure: line 4507: 31596 Segmentation fault      ./$ac_file
>>> If you meant to cross compile, use `--host'.
>>>
>>> I'm still investigating, but if anyone has a suggestion, let me know.
>>> My next step will be to see what valid options can be used for --host.
>>>
>>> Checking their 2.27 branch in git, all I have seen is:
>>
>> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=dccb2ff522d2afba77301a046b37949356c29f88
>>
>>
>> However, I am not sure if that is the case without more context. I can
>> search through all commits since it was released and see if there is a fix
>> present there.
>
> Just now I was able to get binutils-pass2 to build with adding
> --host=$LFS_TGT like we do in  Libstdc++-6.1.0
>
> That was just a preliminary indication.  I'll try a full build with that.
2.26.1 an try a
Did not work.  I did get a lot further but got an error:

  libtool: compile:  x86_64-lfs-linux-gnu-gcc -DHAVE_CONFIG_H -I. 
-I../../ld -I. -I../../ld -I../bfd -I../../ld/../bfd -I../../ld/../include 
-g -O2 -DENABLE_PLUGINS -DLOCALEDIR=\"/tools/share/locale\" -g -O2 -g -O2 
-MT libldtestplug_la-testplug.lo -MD -MP -MF 
.deps/libldtestplug_la-testplug.Tpo -c ../../ld/testplug.c  -fPIC -DPIC -o 
.libs/libldtestplug_la-testplug.o
x86_64-lfs-linux-gnu-gcc: internal compiler error: Segmentation fault 
(program as)

So the assembler is dropping a segmentation error.  I'm going to drop back 
to binutils-2.26.1 and try a full build.

   -- Bruce




More information about the lfs-dev mailing list