This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error building gcc w/ newlib


On Sat, Jun 25, 2016 at 1:23 AM, Wilkes, John <John.Wilkes@amd.com> wrote:
>
> Then I build gcc again with newlib:
> ../gcc-6.1.0/configure --target=$TARGET --prefix=$PREFIX --with-system-zlib --disable-shared --enable-languages=c,c++
> make
>
> And this is where I get the error:
>
> checking for shl_load... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
> Makefile:11152: recipe for target 'configure-target-libstdc++-v3' failed
>
> Apparently it is complaining about a shared library test. The --disable-shared configuration option does not disable the test.
>
> There are lots of reports of this problem, but few proposed solutions, none of which have worked for me.
>

I believe you still need to pass --with-newlib to the second gcc invocation.
If you provide the libstdc++-v3 config.log, it should show exactly why
link tests are being disabled.

Thanks,

Peter


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]