public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc-4.6.2 build problem related to xgcc not liking '-V' option on i686-pc-linux-gnu
@ 2011-11-04 18:25 Sinkler, Wharton
  2011-11-04 23:41 ` Jonathan Wakely
  2011-11-04 23:44 ` Ian Lance Taylor
  0 siblings, 2 replies; 12+ messages in thread
From: Sinkler, Wharton @ 2011-11-04 18:25 UTC (permalink / raw)
  To: gcc-help

I have been trying unsuccessfully to install gcc-4.6.2, on a Redhat Linux VM.  The configure step seems to work fine.  I'm using the following configure options (installing 4.6.2 from a 'gcc_build' directory as suggested on the website; I already installed the required dependencies under /usr/local as indicated):

../gcc-4.6.2/configure --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local --with-ppl=/usr/local --with-cloog=/usr/local \
     LDFLAGS="-L/usr/local/lib -Xlinker -R/usr/local/lib" CONFIG_SHELL=/bin/bash -enable-languages=c,c++,fortran

Under 'make' I am getting the following error:

checking for suffix of object files... configure: error: in `/home/E341484/gnu-install/gcc_build/i686-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

I found more detail on the make failure in the file ./i686-pc-linux-gnu/libgcc/config.log, which shows an error occurring at this statement:

configure:3028: /home/E341484/gnu-install/gcc_build/./gcc/xgcc -B/home/E341484/gnu-install/gcc_build/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include    -V >&5
xgcc: error: unrecognized option '-V'
xgcc: fatal error: no input files
compilation terminated.

I think this is really the cause of the problem.  I think the upper-case V might be an error, and should be a lower case '-v'.  If I run this command with the 'V' changed to 'v', it executes successfully, returning an assortment of information, including info on the gcc version (and no error).  

Is this a bug in the Makefile?  Is the upper-case '-V' supposed to be a '-v', or am I missing something?  If the 'V' should be a 'v', any suggestions how to fix this in the Makefile?    

Thanks!  
Wharton Sinkler

 

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-11-07 20:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-04 18:25 gcc-4.6.2 build problem related to xgcc not liking '-V' option on i686-pc-linux-gnu Sinkler, Wharton
2011-11-04 23:41 ` Jonathan Wakely
2011-11-04 23:44 ` Ian Lance Taylor
2011-11-06 21:39   ` Sinkler, Wharton
2011-11-06 23:11     ` Jonathan Wakely
2011-11-07 17:10       ` Sinkler, Wharton
2011-11-07 17:21         ` Jonathan Wakely
2011-11-07 17:25           ` Jonathan Wakely
2011-11-07 17:30             ` Andrew Haley
2011-11-07 17:40               ` Jonathan Wakely
2011-11-07 20:28                 ` Sinkler, Wharton
2011-11-07 20:48                   ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).