WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: configure: error: C compiler cannot create executables  (Read 5280 times)

Offline lepomis

  • Newbie
  • *
  • Posts: 36
configure: error: C compiler cannot create executables
« on: May 05, 2015, 02:12:05 PM »
Hello,

i'm trying to build hddtemp because i haven't found it in the Apps browser.

i downloaded it here: http://download.savannah.gnu.org/releases/hddtemp/

tc@box:~/Downloads/hddtemp-0.3-beta15$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

here is my config.log :  http://pastebin.com/AbdLsVtY




Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: configure: error: C compiler cannot create executables
« Reply #1 on: May 05, 2015, 02:15:44 PM »
Hi lepomis
Did you load the  compiletc.tcz  extension?

Offline lepomis

  • Newbie
  • *
  • Posts: 36
Re: configure: error: C compiler cannot create executables
« Reply #2 on: May 05, 2015, 02:19:46 PM »
Hi Rich,
unfortunately i don't even know what's that extension...let me load it ;)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: configure: error: C compiler cannot create executables
« Reply #3 on: May 05, 2015, 02:22:06 PM »
Hi lepomis
Compiletc.tcz provides the tools required for compiling.

Offline lepomis

  • Newbie
  • *
  • Posts: 36
Re: configure: error: C compiler cannot create executables
« Reply #4 on: May 05, 2015, 02:28:51 PM »
perfect it did the trick...

The result running sudo make is:

http://pastebin.com/YdteX0PC

Offline lepomis

  • Newbie
  • *
  • Posts: 36
Re: configure: error: C compiler cannot create executables
« Reply #5 on: May 06, 2015, 02:38:00 PM »
This is the part where i see these error i've never seen before..

Makefile:486: recipe for target 'hddtemp-backtrace.o' failed
make[2]: Leaving directory '/home/tc/Downloads/hddtemp-0.3-beta15/src'
Makefile:228: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/home/tc/Downloads/hddtemp-0.3-beta15'
Makefile:181: recipe for target 'all' failed

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: configure: error: C compiler cannot create executables
« Reply #6 on: May 06, 2015, 11:35:59 PM »
Hi lepomis.

hddtemp.tcz was available for x86 systems in the TC 4 repository. You may want to copy all relevant files into your system and test. If it works, notify the forum so an administrator can transfer the extension to the TC 6 repository. You didn't mention your architecture - x86?

http://forum.tinycorelinux.net/index.php/topic,18253.0.html
http://packages.tinycorelinux.net/index.php

I'm just learning to compile with TC and am just finishing a thread with almost exact title, if it helps:
http://forum.tinycorelinux.net/index.php/topic,18253.0.html

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: configure: error: C compiler cannot create executables
« Reply #7 on: May 07, 2015, 01:35:32 AM »
Sorry for pasting duplicate link to my thread. Meant this:
http://packages.tinycorelinux.net/index.php?cont=lists&ccname=repolist1&act=view&gcb=1568

Here's the TC 4 repository for the hddtemp.tcz download:
http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/

hddtemp does not appear to have dependencies, so just copy the .tcz into your Optional folder. Install the extension with 'tce-load -i hddtemp', then test.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: configure: error: C compiler cannot create executables
« Reply #8 on: May 07, 2015, 01:49:59 AM »
hddtemp copied to tc-5.x/6.x x86 repos

Please feel free to submit an update.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: configure: error: C compiler cannot create executables
« Reply #9 on: May 07, 2015, 02:29:44 AM »
According to the link provided by lepomis the latest version is 0.3-beta15 from 2007. Same version that was already in the TC 4 repository.
http://download.savannah.gnu.org/releases/hddtemp/
http://packages.tinycorelinux.net/index.php?cont=lists&ccname=repolist1&act=view&gcb=1568

Offline lepomis

  • Newbie
  • *
  • Posts: 36
Re: configure: error: C compiler cannot create executables
« Reply #10 on: May 07, 2015, 08:47:18 AM »
Thank you nitram,
I'm running the x86 version of TC
i used hddtemp.tcz you found in the tc4 repo, but i'm pretty interested to solve these error i get when i compile the sources...

testing hdd temp:

tc@box:~/Downloads$ sudo  hddtemp /dev/sda
WARNING: Drive /dev/sda doesn't appear in the database of supported drives
WARNING: But using a common value, it reports something.
WARNING: Note that the temperature shown could be wrong.
WARNING: See --help, --debug and --drivebase options.
WARNING: And don't forget you can add your drive to hddtemp.db
/dev/sda: ST3500418AS                             �:  33 C or  F
tc@box:~/Downloads$

i've never got those two characters near : 33 and also i haven't had problems ussing hddtemp with this hd in the past with other distributions, however 33°C is a reliable value in my opinion.




Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: configure: error: C compiler cannot create executables
« Reply #11 on: May 07, 2015, 09:20:49 AM »
Perhaps the gsmartcontrol or smartmontools extensions could give you the hd temp?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: configure: error: C compiler cannot create executables
« Reply #12 on: May 07, 2015, 09:28:24 AM »
BTW, you can download the hddtemp database like this:
Code: [Select]
$ wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db
..and then copy it to one or more of /usr/local/share/misc, /usr/local/share/hddtemp or /usr/local/share and then run the hddtemp command again.
« Last Edit: May 07, 2015, 09:31:42 AM by Juanito »

Offline lepomis

  • Newbie
  • *
  • Posts: 36
Re: configure: error: C compiler cannot create executables
« Reply #13 on: May 07, 2015, 11:14:03 AM »
BTW, you can download the hddtemp database like this:
Code: [Select]
$ wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db
..and then copy it to one or more of /usr/local/share/misc, /usr/local/share/hddtemp or /usr/local/share and then run the hddtemp command again.

copied the db to all the three directories...same message, i'll try the other utilities too ;)