[Bug ada/83016] gnat1: warning: command line option ‘-nostdinc++’ is valid for C++/ObjC++ but not for Ada

simon at pushface dot org gcc-bugzilla@gcc.gnu.org
Wed Nov 22 18:25:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83016

simon at pushface dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon at pushface dot org

--- Comment #8 from simon at pushface dot org ---
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255003
138bc75d-0d04-0410-961f-82ee72b054a4

I configured with

Target: arm-eabi
Configured with: /Volumes/Miscellaneous/tmp/gcc/configure
--build=x86_64-apple-darwin15 --disable-libada --disable-libcc1
--disable-libcilkrts --disable-libffi --disable-libgomp --disable-libmudflap
--disable-libquadmath --disable-libsanitizer --disable-libssp
--disable-libstdcxx-pch --disable-lto --disable-nls --disable-shared
--disable-threads --disable-tls --enable-languages=c,ada
--prefix=/Volumes/Miscellaneous/arm/gcc-8.0.0 --target=arm-eabi --with-gnu-as
--with-gnu-ld --with-libgloss --with-newlib
--with-stage1-ldflags='-static-libstdc++ -static-libgcc
-Wl,-headerpad_max_install_names' --with-system-zlib --without-libiconv-prefix
--with-multilib-list=rmprofile

(note the --with-stage1-ldflags)

and while building gnat tools get

gnatlink -v gnatmake -o ../../gnatmake \
          --GCC="gcc -I../generated
-I/opt/gcc-8.0.0/lib/gcc/x86_64-apple-darwin15/8.0.0/adalib/../adainclude
-I/opt/gcc-8.0.0/lib/gcc/x86_64-apple-darwin15/8.0.0/adalib -I.
-I/Volumes/Miscellaneous/tmp/gcc/gcc/ada" --LINK="g++ -static-libstdc++
-static-libgcc -static-libstdc++ -static-libgcc
-Wl,-headerpad_max_install_names -Wl,-no_pie " ../link.o ../targext.o
../../ggc-none.o ../../libcommon-target.a ../../libcommon.a
../../../libcpp/libcpp.a   -liconv ../../../libbacktrace/.libs/libbacktrace.a
../../../libiberty/libiberty.a    
gnatlink: Could not locate linker: g++ -static-libstdc++ -static-libgcc
-static-libstdc++ -static-libgcc -Wl,-headerpad_max_install_names -Wl,-no_pie


More information about the Gcc-bugs mailing list