emerge GNAT - C compiler cannot create executables [Solved]

Anything that pertains to Portage

Moderator: Moderators

emerge GNAT - C compiler cannot create executables [Solved]

Postby gevard » Sun Sep 16, 2007 15:07

Hello everyone
As everyone tried to emerge gnat, I have the following error:
Code: Select all
checking whether the C compiler (/var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/bin/gnatgcc -Os -march=i586 -mno-tls-direct-seg-refs -mmmx -m32 -L/var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/lib/gnatgcc/i586-pc-linux-gnu/4.1) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
 *
 * ERROR: dev-lang/gnat-gpl-4.1.3.2007 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1334:   Called gnatbuild_src_compile
 *   gnatbuild.eclass, line 371:   Called gnatbuild_src_compile 'all'
 *   gnatbuild.eclass, line 377:   Called gnatbuild_src_compile 'configure' 'make-tools' 'bootstrap' 'gnatlib_and_tools' 'gnatlib-shared'
 *   gnatbuild.eclass, line 454:   Called die
 *
 * configure failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/temp/build.log'.
 *

 * Messages for package dev-lang/gnat-gpl-4.1.3.2007:

 * Fallback PaX marking -E
 *      /var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/work/usr/bin/gnat1
 *
 * ERROR: dev-lang/gnat-gpl-4.1.3.2007 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1334:   Called gnatbuild_src_compile
 *   gnatbuild.eclass, line 371:   Called gnatbuild_src_compile 'all'
 *   gnatbuild.eclass, line 377:   Called gnatbuild_src_compile 'configure' 'make-tools' 'bootstrap' 'gnatlib_and_tools' 'gnatlib-shared'
 *   gnatbuild.eclass, line 454:   Called die
 *
 * configure failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/gnat-gpl-4.1.3.2007/temp/build.log'.
 *


I did an emerge --sync and emerge the last version of gcc without any problem..

Any idee, thanks in advance for your help
Last edited by gevard on Tue Sep 18, 2007 7:33, edited 1 time in total.
gevard
Baby Hen
 
Posts: 13
Joined: Fri Dec 08, 2006 17:20

Re: emerge GNAT - C compiler cannot create executables

Postby nikaya » Sun Sep 16, 2007 15:48

Image
former john_doe
nikaya
Growing Hen
 
Posts: 162
Joined: Wed Oct 04, 2006 18:12
Location: Germany

emerge GNAT - C compiler cannot create executables (SOLVED)

Postby gevard » Mon Sep 17, 2007 20:13

Thanks for your help

I notice thant my architecture was not correct in make.conf.
Code: Select all
localhost ~ # arch
i686
localhost ~ # gcc-config -l
 [1] i586-pc-linux-gnu-4.1.2
 [2] i586-pc-linux-gnu-4.2.0 *


I edit the make.conf to change i585 in i686.
Code: Select all
CFLAGS="-Os -march=i686 -mno-tls-direct-seg-refs -mmmx -m32"
CHOST="i686-pc-linux-gnu"


It seems to work.
Do you have any idea why the arch was not correct? I haven't changed it.
Regards
gevard
Baby Hen
 
Posts: 13
Joined: Fri Dec 08, 2006 17:20

Re: emerge GNAT - C compiler cannot create executables (SOLVED)

Postby nikaya » Tue Sep 18, 2007 10:24

PLEASE,DON'T CHANGE THE CHOST !!!
Image
former john_doe
nikaya
Growing Hen
 
Posts: 162
Joined: Wed Oct 04, 2006 18:12
Location: Germany

Re: emerge GNAT - C compiler cannot create executables [Solved]

Postby gevard » Tue Sep 18, 2007 16:14

OK I will go back for the next emerge, but it's the only way I found to emerge GNAT.
Any idea for a cleaner solution?
Regards
gevard
Baby Hen
 
Posts: 13
Joined: Fri Dec 08, 2006 17:20


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests