This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: error building gcc w/ newlib
- From: Peter Foley <pefoley2 at pefoley dot com>
- To: "Wilkes, John" <John dot Wilkes at amd dot com>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Sat, 25 Jun 2016 11:20:15 -0400
- Subject: Re: error building gcc w/ newlib
- Authentication-results: sourceware.org; auth=none
- References: <DM2PR12MB00135A85C7AB174670C1D539FF2F0 at DM2PR12MB0013 dot namprd12 dot prod dot outlook dot com>
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