WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline ezee

  • Newbie
  • *
  • Posts: 17
configure: error: C compiler cannot create executables
« on: June 30, 2010, 07:46:16 PM »
trying to rebuild grub from scratch using the source found here: ftp://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/2.x/tcz/src/grub-0.97-patched.tbz2

I've used tce-load -wi to build gcc, and each time I try to do ./configure in the grub source dir, I get:

configure: error: C compiler cannot create executables


tried it with each of the following gcc extensions, get the same error each time:
gcc-3.3.6.tce
gcc-4.4.0.tcel
gcc.tcel

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: configure: error: C compiler cannot create executables
« Reply #1 on: June 30, 2010, 08:03:11 PM »
Are you using the 'compiletc.tcz' meta-extension (or only a gcc extension without all the others)? If not using 'compiletz.tcz' you are likely to miss some required component.

Have you actually tried to compile something yourself? I'd call that my "hello world test": it means to create a minimal source file (e.g. containing the infamous statement to print "hello world"), compile it, and execute the compilation result.

Offline ezee

  • Newbie
  • *
  • Posts: 17
Re: configure: error: C compiler cannot create executables
« Reply #2 on: June 30, 2010, 09:17:54 PM »
that did it, thanks.