Opened 10 years ago

Last modified 10 years ago

#306 new defect

g++ -v fails

Reported by: KO Myung-Hun Owned by:
Priority: normal Milestone: libc-0.7
Component: gcc Version: 0.6.5
Severity: normal Keywords:
Cc:

Description

Hi/2.

g++ -v requires a input file and return an error status. Due to this, configure test for this fails, and libtool cannot generate DLLs for C++. However gcc -v works as expected.

gcc -v :

Reading specs from F:/lang/gcc/usr/lib/gcc-lib/i386-pc-os2-emx/3.3.5/specs
Configured with: D:/CODING/LIBC/0.6/src/gcc/configure --enable-clh --enable-threads=os2 --enable-shared=libgcc,bfd,opcodes -enable-nls --without-included-gettext --with-local-prefix=D:/CODING/LIBC/0.6TOOLS/x86.os2/gcc/staged --prefix=/gcc --with-gnu-as -disable-libgcj --enable-languages=c,c++
Thread model: os2
gcc version 3.3.5 (Bird Build 2012-03-23 03:21 (csd5))

g++ -v:

Reading specs from F:/lang/gcc/usr/lib/gcc-lib/i386-pc-os2-emx/3.3.5/specs Configured with: D:/CODING/LIBC/0.6/src/gcc/configure -enable-clh --enable-threads=os2 --enable-shared=libgcc,bfd,opcodes -enable-nls --without-included-gettext --with-local-prefix=D:/CODING/LIBC/0.6/TOOLS/x86.os2/gcc/staged --prefix=/gcc --with-gnu-as -disable-libgcj --enable-languages=c,c++
Thread model: os2
gcc version 3.3.5 (Bird Build 2012-03-23 03:21 (csd5))
g++.exe: no input files, try "g++.exe --help"

Attachments (1)

g++v.diff (340 bytes ) - added by KO Myung-Hun 10 years ago.
patch for g++ -v

Download all attachments as: .zip

Change History (3)

by KO Myung-Hun, 10 years ago

Attachment: g++v.diff added

patch for g++ -v

comment:1 by KO Myung-Hun, 10 years ago

This occurs if GCCOPT is set. For examples, GCCOPT=-pipe.

comment:2 by Silvan Scherrer, 10 years ago

I tested this with gcc 4.9.2 and there it works. Does it really make sense to work on this old compiler at all? I personally doubt.

Note: See TracTickets for help on using tickets.