LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-26-2015, 06:58 AM   #1
wowy
Member
 
Registered: Mar 2015
Location: France
Distribution: Ubuntu 14.04
Posts: 61

Rep: Reputation: Disabled
"checking whether the C++ compiler works... no" error when trying to configure


Hi,

I am trying to configure and make install tslib on my computer to use it later to create application for a board. I configured and installed it on a pc and there was no problem but now that i am trying it on 2 others i run into this error. (i followed the same steps in the first pc and now)

i configure it like this :
Code:
./configure CC=arm-linux-gcc CXX=arm-linux-g++ -host=arm-linux -target=arm-linux -enable-static=yes -enable-shared=yes
And get the message :
Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... arm-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether the C++ compiler works... no
configure: error: in `/home/spi/installQt/ts/tslib-1.0':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
I checked in config.log and saw this :

Code:
configure:3208: checking for C++ compiler version
configure:3217: arm-linux-g++ --version >&5
./configure: line 3219: /usr/bin/arm-linux-g++: No such file or directory
configure:3228: $? = 127
configure:3217: arm-linux-g++ -v >&5
./configure: line 3219: /usr/bin/arm-linux-g++: No such file or directory
configure:3228: $? = 127
configure:3217: arm-linux-g++ -V >&5
./configure: line 3219: /usr/bin/arm-linux-g++: No such file or directory
configure:3228: $? = 127
configure:3217: arm-linux-g++ -qversion >&5
./configure: line 3219: /usr/bin/arm-linux-g++: No such file or directory
configure:3228: $? = 127
configure:3248: checking whether the C++ compiler works
configure:3270: arm-linux-g++    conftest.cpp  >&5
./configure: line 3272: /usr/bin/arm-linux-g++: No such file or directory
configure:3274: $? = 127
configure:3312: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "tslib"
| #define PACKAGE_TARNAME "tslib"
| #define PACKAGE_VERSION "0.1.0"
| #define PACKAGE_STRING "tslib 0.1.0"
| #define PACKAGE_BUGREPORT "kergoth@handhelds.org"
| #define PACKAGE_URL ""
| #define PACKAGE "tslib"
| #define VERSION "0.1.0"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3317: error: in `/home/spi/installQt/ts/tslib-1.0':
configure:3319: error: C++ compiler cannot create executables
See `config.log' for more details
I check, the symlink exist in /usr/bin, the targets exist too and all of them have all the rights.

I tried :
Code:
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install build-essential
It always tells me that i have the lastest version.

Autoconf and libtool are installed too.
 
Old 05-26-2015, 07:34 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you need to install gcc-arm-linux-gnueabi or similar, but it depends on the target platform.
http://linux-sunxi.org/Toolchain
 
Old 05-26-2015, 07:54 AM   #3
wowy
Member
 
Registered: Mar 2015
Location: France
Distribution: Ubuntu 14.04
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you need to install gcc-arm-linux-gnueabi or similar, but it depends on the target platform.
http://linux-sunxi.org/Toolchain
The target platform is an arm.
I don't seems to call gcc-arm-linux-gnueabi, the configuration seems to call the badic gcc-arm-linux.
I will try to install gcc-arm-linux-gnueabi and see what happen.

EDIT: Still the same error after installing gcc-arm-linux-gnueabi.

Last edited by wowy; 05-26-2015 at 07:58 AM.
 
Old 05-26-2015, 09:53 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Using dpkg or apt find out the name of arm C and C++ compiler executable name and path. And use that with configure script.
 
  


Reply

Tags
compiler, configure, error message, g++, ubuntu 14.04



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] binutils-2.22 configure error "C compiler cannot create executables" iceman911 Linux From Scratch 4 11-06-2014 05:51 AM
checking for C compiler default output... configure: error: C compiler cannot create clubbing80s Linux - Software 3 07-05-2010 08:17 PM
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
Got configure: error: "compiler support for __thread is required" rbharath Linux - General 0 10-17-2008 02:30 AM
error: "c compiler cannot create executables" when trying to run ./configure fedoraemu Linux - Software 2 04-24-2007 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:43 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
Open Source Consulting | Domain Registration