LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2014, 01:52 AM   #1
Babli Kumari
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
GCC make Error


Hi All,

I am trying to build my code using cross-compiler, for testing our application On Itanium machine,

we followed below steps:
1. we copied all the include and library files of an Itanium machine to machine where we will build the cross-compiler.

2.Then configured the libc.so file (set it to: GROUP ( /usr/local/ia64-linux/lib/libc.so.6.1 /usr/local/ia64-linux/lib/libc_nonshared.a )

3.Installed binutils-2.24.51 package,
and also installing gcc-4.6.4 package,
configure --enable-threads=posix --with-libs=/usr/local/linuxia64/files/lib/ --with-headers=/usr/local/linuxia64/files/include --target=ia64-linux --prefix=/usr/local --enable-languages=c,c++ --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local

Its make command is giving me following Error:

gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4189: $? = 1
configure:4178: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files


configure:5758: result: no
configure:5772: checking for version 0.11 (revision 0 or later) of PPL
configure:5789: gcc -c -g -O2 -I/usr/local/include -I/usr/local/include -I/usr/local//include conftest.c >&5
conftest.c:10:19: fatal error: ppl_c.h: No such file or directory
compilation terminated.

How can i resolve This??
 
Old 12-15-2014, 10:28 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,796

Rep: Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754
Code:
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4189: $? = 1
configure:4178: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
It looks like it's doing a check for gcc < 5.x, (Line 4178) and running 'gcc -V' when it wants 'gcc --version.' (Line 4189)

I would try a gentle hack of the script around there. Presume that every line you write will be wrong, and retain the original commented out. You may need it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
collect2: error: ld returned 1 exit status , for make install gcc-4.8.1 in gcc-pass1 cola Linux From Scratch 1 02-16-2014 11:51 PM
gcc-4.4.3 make error - failed to build gcc-4.4.3--please help aayu09 Fedora 4 03-05-2010 10:20 AM
[SOLVED] Make error with GCC-4.4.1 EricTRA Linux From Scratch 10 08-30-2009 01:55 PM
6.12. GCC-4.1.2 make error. rcg1984 Linux From Scratch 5 08-12-2008 02:59 AM
gcc 4.0.3 make error RiSK Linux From Scratch 3 07-30-2007 11:15 PM


All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration