Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"C compiler cannot create executables" !??!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
eddo
n00b
n00b


Joined: 03 Mar 2008
Posts: 51

PostPosted: Wed Jul 09, 2008 4:02 pm    Post subject: Reply with quote

Big thanks to everyone in this thread, was having all kinds of trouble upgrading gcc but all sorted now :)
Back to top
View user's profile Send private message
eddo
n00b
n00b


Joined: 03 Mar 2008
Posts: 51

PostPosted: Sat Jul 26, 2008 4:17 pm    Post subject: Reply with quote

Damn, getting this error AGAIN in my 32-bit chroot, the problem that was causing it on the host AMD64 system was incorrect paths in /etc/env.d/05gcc... but that's not the case this time :( I've run bintuils-config, gcc-config, fix_libtools_files, made sure I have no features line in make.conf, pretty stumped :/

There's a lot of info in this thread but a lot of it is several years old and I'm concerned it may no longer be relevant, any ideas anyone?
Back to top
View user's profile Send private message
eddo
n00b
n00b


Joined: 03 Mar 2008
Posts: 51

PostPosted: Sat Jul 26, 2008 4:28 pm    Post subject: Reply with quote

Hahah what a chump I am. I copied over my make.conf from the host system and although I remembered to change the architecture, what I forgot about was that I only had gcc-4.1 on the chroot so when I was trying to call the "core2" march flag (not introduced until gcc-4.3) it would give me this error. Change to "nocona" got it working.

Seems strange why it wouldn't throw out an "invalid march type" error instead but there you go. Hope this helps someone else.
Back to top
View user's profile Send private message
tokyoahead
n00b
n00b


Joined: 27 Mar 2004
Posts: 37

PostPosted: Wed Jun 03, 2009 3:02 am    Post subject: irssi fails to upgrade Reply with quote

Hi,

just wanted to update irssi to the latest version, and this is what I get:

Code:
>>> Unpacking source...
>>> Unpacking irssi-0.8.13.tar.bz2 to /tmp/portage/net-irc/irssi-0.8.13-r1/work
 * Applying irssi-0.8.13-svn-5068.patch ...                                                                                                            [ ok ]
 * Removing useless C++ checks ...                                                                                                                     [ ok ]
>>> Source unpacked in /tmp/portage/net-irc/irssi-0.8.13-r1/work
>>> Compiling source in /tmp/portage/net-irc/irssi-0.8.13-r1/work/irssi-0.8.13 ...
 * econf: updating irssi-0.8.13/build-aux/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating irssi-0.8.13/build-aux/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-proxy --with-ncurses --with-perl-lib=vendor --with-perl --without-socks --enable-ssl --enable-ipv6
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in `/tmp/portage/net-irc/irssi-0.8.13-r1/work/irssi-0.8.13':
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /tmp/portage/net-irc/irssi-0.8.13-r1/work/irssi-0.8.13/config.log
 *
 * ERROR: net-irc/irssi-0.8.13-r1 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 2464:  Called econf '--with-proxy' '--with-ncurses' '--with-perl-lib=vendor' '--with-perl' '--without-socks' '--enable-ssl' '--enable-ipv6'
 *               ebuild.sh, line  525:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/tmp/portage/net-irc/irssi-0.8.13-r1/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/net-irc/irssi-0.8.13-r1/temp/environment'.
 *


config log looks like this:

Code:

configure:2711: checking for i686-pc-linux-gnu-gcc
configure:2727: found /usr/bin/i686-pc-linux-gnu-gcc
configure:2738: result: i686-pc-linux-gnu-gcc
configure:3010: checking for C compiler version
configure:3018: i686-pc-linux-gnu-gcc --version >&5
gcc-config: error: could not run/locate 'i686-pc-linux-gnu-gcc'
configure:3022: $? = 1
configure:3029: i686-pc-linux-gnu-gcc -v >&5
gcc-config: error: could not run/locate 'i686-pc-linux-gnu-gcc'
configure:3033: $? = 1
configure:3040: i686-pc-linux-gnu-gcc -V >&5
gcc-config: error: could not run/locate 'i686-pc-linux-gnu-gcc'
configure:3044: $? = 1
configure:3067: checking for C compiler default output file name
configure:3089: i686-pc-linux-gnu-gcc -O2 -mcpu=i686 -pipe  -Wl,-O1 conftest.c  >&5
gcc-config: error: could not run/locate 'i686-pc-linux-gnu-gcc'
configure:3093: $? = 1
configure:3131: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "irssi"
| #define PACKAGE_TARNAME "irssi"
| #define PACKAGE_VERSION "0.8.13"
| #define PACKAGE_STRING "irssi 0.8.13"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3137: error: in `/tmp/portage/net-irc/irssi-0.8.13-r1/work/irssi-0.8.13':
configure:3140: error: C compiler cannot create executables
See `config.log' for more details.


any idea what to do here?

thanks
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 7904

PostPosted: Wed Jun 03, 2009 7:42 am    Post subject: Reply with quote

Merged the above post.
Back to top
View user's profile Send private message
tokyoahead
n00b
n00b


Joined: 27 Mar 2004
Posts: 37

PostPosted: Wed Jun 03, 2009 12:20 pm    Post subject: Reply with quote

andreac wrote:
was to recover the original files from the stage used for installation and manually change the links to the correct programs under /usr/bin.

In my case the files to recover are those related to binutils package under
Code:
/usr/i486-pc-linux-gnu/
/usr/share/binutils-data/i486-pc-linux-gnu/
/usr/lib/binutils/i486-pc-linux-gnu/
/etc/env.d/binutils


could you please tell me exactly how to do this? I have the problem but I am not experienced enough to translate what you say into command line text...
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Fri Jun 12, 2009 3:04 pm    Post subject: Re: Sticky ??? Reply with quote

runlevel0 wrote:
I had the problem again, but I was aware of the cause:
I was trying to test if a given env variable would work if declared inside make.conf (CCACHE_DIR) instead of /etc/profile.

IMHO in many cases these weird errors are caused by syntax errors in make.conf, so before trying anything else checking make.conf would be a good idea.

As this seems to be a recursive topic setting this thread as 'sticky' would perhaps be a good idea, we could also list all solutions:


    1) Check make.conf for errors / weirdness
    2) sh make.conf
    3) "gcc-config -l " and if necessary change with "gcc-config N"
    4) fix_libtool_files.sh OLD_GCC_VERSION (this is not the same case, but it's related, and if GCC is wrong libtool can also fail)
    5) if everything fails comment: $CC, $FEATURES, $CFLAGS, $MAKEOPTS


I just wanted to quote this magnificent post :D.
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
tokyoahead
n00b
n00b


Joined: 27 Mar 2004
Posts: 37

PostPosted: Mon Jun 15, 2009 8:14 am    Post subject: Reply with quote

sorry, I am still a bit confused by all this. I did not changes to make.conf, I did a normal emerge -Dup world and IRSSI bailed as one out of many applications being updated.

can someone walk me though to understand what package might be at trouble on my system? do I simply overwrite the above mentioned directories with the contents of the stage package?
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Sat Jun 20, 2009 5:59 pm    Post subject: Reply with quote

tokyoahead:

I had the same error, and in the post above i found my solution (it was option 3)

I updated my gcc (also in a update world) and i changed my make.conf to the proper CFLAGS for this new version of GCC, but i forgot to actually select this new version and ended op with the cannot write executables error.

So post the outcome of:
gcc-config -l

and of:
cat /etc/make.conf | grep -i flags
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
vespaman
Apprentice
Apprentice


Joined: 28 Aug 2002
Posts: 251
Location: Stockholm, Sweden

PostPosted: Thu Jul 16, 2009 6:22 am    Post subject: Reply with quote

OK so sandbox, glibc and gcc gives me this error on a *non* ~amd64 box. Everything else compiles fine (just did a world update with fairly many packages).

1 Check
2 Check
3 Check
4 - I only have one compiler installed...
5 - Have not tried. Shouldn't all packages fail if this where the case?

Code:

hela micke # gcc-config -l
  [1] x86_64-pc-linux-gnu-4.1.2 *
 hela micke # binutils-config -l
  [1] x86_64-pc-linux-gnu-2.18 *
 hela micke


Code:

cat /etc/make.conf | grep -i flags
# The available list of use flags with descriptions is in your portage tree.
# useflags for you. 'emerge app-portage/ufed'
# For optimal performance, enable a CFLAGS setting appropriate for your CPU.
#CFLAGS="-mtune=k8 -O2 -pipe"
CFLAGS="-march=athlon64 -O2 -pipe"
# If you set a CFLAGS above, then this line will set your default C++ flags to
CXXFLAGS="${CFLAGS}"
#                and to apply all USE flags in SRC_URI for digests -- for


Code:

hela micke # emerge -upvD world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-apps/sandbox-1.6-r2 [1.2.18.1-r2] 0 kB
[ebuild     U ] sys-libs/glibc-2.9_p20081201-r2 [2.6.1] USE="(multilib*) nls -debug -gd% -glibc-omitfp (-hardened) -profile (-selinux) -vanilla% (-glibc-compat20%)" 0 kB
[ebuild  NS   ] sys-devel/gcc-4.3.2-r3 [4.1.2] USE="fortran mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -gtk (-hardened) -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla" 0 kB

Total: 3 packages (2 upgrades, 1 in new slot), Size of downloads: 0 kB
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5250

PostPosted: Wed Sep 16, 2009 2:48 pm    Post subject: emerge fails on checking for C compiler default output name Reply with quote

I can't emerge anything now. Every time I try, I get something like

Code:

checking for C compiler default output name...
configure: error: c compiler cannot create executables


This is a fresh install. It doesn't have links or any browser set up. Doesn't have a GUI yet. I can't provide emerge --info and other output for that reason. :evil: :evil: :evil:

But I can just try to detail what happens and type in error text from my screen.

gcc-config will not run:
Code:

/usr/bin/gcc-config: line 9: /etc/init.d/functions.sh: no such file or directory
gcc-config: could not source /etc/init.d/functions.sh!


I have found other pages/threads on this and other forums where people had similar problems (but not the exact same problem). None of the solutions I have seen so far have worked for me. I suspect fixing gcc-config will solve the issue I'm having. What should I do?
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Sep 16, 2009 3:02 pm    Post subject: Reply with quote

On my box /etc/init.d/functions.sh belongs to sys-apps/openrc
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5250

PostPosted: Wed Sep 16, 2009 3:36 pm    Post subject: Reply with quote

Ok. But I can't emerge openrc because of this issue.

I think this happened during the first world update I did on this system (in which I remember baselayout and openrc coming in). Something broke during the update. Whatever broke has left me unable to emerge anything else.
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Back to top
View user's profile Send private message
Earthwings
Administrator
Administrator


Joined: 14 Apr 2003
Posts: 7751
Location: Karlsruhe, Germany

PostPosted: Wed Sep 16, 2009 4:25 pm    Post subject: Reply with quote

Merge last three posts.
_________________
KDE 4.13 - Get It While It's Hot!
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5250

PostPosted: Wed Sep 16, 2009 4:43 pm    Post subject: Reply with quote

I was afraid my post would end up here. :cry:

I'm re-doing the install. I don't think the problem I have is related to this thread.
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Back to top
View user's profile Send private message
ZogG
n00b
n00b


Joined: 06 Aug 2007
Posts: 10

PostPosted: Fri Oct 02, 2009 7:14 pm    Post subject: Reply with quote

Quote:
/usr/bin/gcc-config: line 9: /etc/init.d/functions.sh: no such file or directory
gcc-config: could not source /etc/init.d/functions.sh!


same here, made fresh install, copied old world (/usr/var/lib/portage/) and ran emerge -uND world, it was fine but probably new binutils ( i use amd64 and ~amd64 keywords) broke it and i can't emerge anything - and can't select gcc profile... any suggestions?
Back to top
View user's profile Send private message
balkira
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2004
Posts: 99
Location: /local/pub

PostPosted: Thu Oct 08, 2009 10:57 am    Post subject: Reply with quote

Hi,

Just add the issue. In my case, the reason is because I used an x86 stage3 and then I copied an old make.conf which has CHOST=i686-blabla

Trying to merge any packages raises me the "cannot create executables" error.

If I then change my CHOST to i486-bla, compiling works like a charm.

I guess many users used the wrong stage according the CHOST to they want.
_________________
no way to happiness, happiness is the way
Back to top
View user's profile Send private message
Gh0str1d3r
Guru
Guru


Joined: 27 May 2008
Posts: 315

PostPosted: Thu Oct 15, 2009 4:26 pm    Post subject: Reply with quote

I got the error

Quote:
configure: error: C compiler cannot create executables


only when installing sci-libs/minuit-5.22.00. The whole output looks as follows:

Quote:
>>> Emerging (1 of 1) sci-libs/minuit-5.22.00
* Minuit2-5.22.00.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* Appending a library link instruction (-lgomp); libraries to link to should not be passed through LDFLAGS
>>> Unpacking source...
>>> Unpacking Minuit2-5.22.00.tar.gz to /var/tmp/portage/sci-libs/minuit-5.22.00/work
>>> Source unpacked in /var/tmp/portage/sci-libs/minuit-5.22.00/work
>>> Preparing source in /var/tmp/portage/sci-libs/minuit-5.22.00/work/Minuit2-5.22.00 ...
* Applying minuit-5.22.00-as-needed.patch ... [ ok ]
* Running eautoreconf in '/var/tmp/portage/sci-libs/minuit-5.22.00/work/Minuit2-5.22.00' ...
* Running aclocal -I config/m4 ... [ ok ]
* Running libtoolize --copy --force --install --automake ... [ ok ]
* Running aclocal -I config/m4 ... [ ok ]
* Running autoconf ... [ ok ]
* Running autoheader ... [ ok ]
* Running automake --add-missing --copy --foreign ... [ ok ]
* Running elibtoolize in: Minuit2-5.22.00/config
* Applying portage-2.2.patch ...
* Applying sed-1.5.6.patch ...
* Applying as-needed-2.2.6.patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-libs/minuit-5.22.00/work/Minuit2-5.22.00 ...
* econf: updating Minuit2-5.22.00/config/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating Minuit2-5.22.00/config/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in `/var/tmp/portage/sci-libs/minuit-5.22.00/work/Minuit2-5.22.00':
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sci-libs/minuit-5.22.00/work/Minuit2-5.22.00/config.log
*
* ERROR: sci-libs/minuit-5.22.00 failed.
* Call stack:
* ebuild.sh, line 49: Called src_configure
* environment, line 3046: Called _eapi2_src_configure
* ebuild.sh, line 628: Called econf
* ebuild.sh, line 534: Called die
* The specific snippet of code:
* die "econf failed"
* The die message:
* econf 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/sci-libs/minuit-5.22.00/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sci-libs/minuit-5.22.00/temp/environment'.


My compiler is gcc-4.1.2. Version 4.3.2 is installed, but not activated. I tried every suggestion given here, but nothing worked. I have no problems with other ebuilds (only root, which minuit is a part of, fails, see http://bugs.gentoo.org/show_bug.cgi?id=288924. Any further ideas?
Back to top
View user's profile Send private message
Gh0str1d3r
Guru
Guru


Joined: 27 May 2008
Posts: 315

PostPosted: Sat Oct 17, 2009 6:17 pm    Post subject: Reply with quote

Problem is solved by removing all gccs but one. Though I don't get why it doesn't work with more if the others are not activated...
Back to top
View user's profile Send private message
quicksilverprince
n00b
n00b


Joined: 28 Oct 2009
Posts: 30

PostPosted: Tue Dec 29, 2009 6:56 am    Post subject: Reply with quote

Hello, every time I run an emerge that doesn't deal with binaries, I get a "C compiler was not able to produce an executable" and when I run gcc-config I get a

/usr/bin/gcc-config: line 9: /etc/init.d/functions.sh: No such file or directory
gcc-config: Could not source /etc/init.d/functions.sh!

I'm at a loss, is there any way to repair this?
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Fri Jul 30, 2010 1:48 pm    Post subject: compiling failing? Reply with quote

hello, i am getting a number of apps that failing to compile. This occurring with different compilers as well.


Code:

hecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether the C++ compiler works... no
configure: error: in `/var/tmp/portage/media-gfx/iscan-2.25.0/work/iscan-2.25.0':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.




Code:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/net-irc/xchat-2.8.8/work/xchat-2.8.8':
configure: error: C compiler cannot create executables



Code:

Linking C executable cmTryCompileExec

  /usr/bin/cmake -E cmake_link_script
  CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

  /usr/bin/gcc -march=core2 -O2 -pipe -Wl,-O1 -Wl,--as-needed-Wl,--as-needed
  CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o cmTryCompileExec
  -rdynamic

 
  /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld:
  unrecognized option '--as-needed-Wl'

 
  /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld:
  use the --help option for usage information

  collect2: ld returned 1 exit status

  gmake[1]: Leaving directory
  `/var/tmp/portage/app-misc/strigi-0.7.0/work/strigi-0.7.0_build/CMakeFiles/CMakeTmp'


  gmake[1]: *** [cmTryCompileExec] Error 1

  gmake: *** [cmTryCompileExec/fast] Error 2

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (project)



any ideas?

cheers
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7664
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jul 30, 2010 2:13 pm    Post subject: Reply with quote

Take a look at GF20: C compiler cannot create executables. :)

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Fri Jul 30, 2010 2:51 pm    Post subject: Reply with quote

John R. Graham wrote:
Take a look at GF20: C compiler cannot create executables. :)

- John


Thanks for the link but all seems ok!

Code:

hamlet michael # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.3.4 *
hamlet michael # binutils-config -l
 [1] x86_64-pc-linux-gnu-2.18 *
hamlet michael # cat /etc/ld.so.conf
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
include ld.so.conf.d/*.conf
//usr/lib32/opengl/xorg-x11/lib
//usr/lib64/opengl/xorg-x11/lib
/lib
/usr/lib
/lib64
/usr/lib64
/usr/local/lib64
/lib32
/usr/lib32
/usr/local/lib32
/usr/x86_64-pc-linux-gnu/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/32
//usr/lib64/xulrunner-1.9.2
/usr/lib64/qca2
/usr/lib/qt4
/usr/lib64/qt4
/usr/lib32/qt4
/opt/xulrunner
/opt/bibble5pro/libs
/usr/games/lib
/usr/games/lib64
/usr/games/lib32
/usr/lib64/fltk-1.1
/usr/GNUstep/System/Library/Libraries
/usr/GNUstep/Local/Library/Libraries
/usr/lib32/libstdc++-v3/


As you can see i only have one version of gcc on system, my make.conf has not been changed and have not updated any of the tool chain apps lately?

Code:

emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.34-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 30 Jul 2010 11:05:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r3, 2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --with-bdeps y"
FEATURES="# assume-digests distlocks eyecandy fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv# usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/ http://mirror.ovh.net/gentoo-distfiles/ http://gentoo.oregonstate.edu http://gentoo.osuosl.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed-Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage /usr/local/portage/layman/berkano /usr/local/portage/layman/zugaina /usr/local/portage/layman/xwing /usr/local/portage/layman/kde-sunset /usr/local/portage/layman/kde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cleartype cli consolekit cracklib crypt cups cxx dbus dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal iconv jpeg kde kdehiddenvisibility lcms libnotify logrotate lzma lzo lzw lzw-tiff mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl openmp oss pam pango pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb virtualbox vorbis x264 xcb xcomposite xinerama xml xorg xulrunner xv xvid zip zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


cheers
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
jordanwb
l33t
l33t


Joined: 10 Jul 2008
Posts: 642
Location: Ottawa, Canada

PostPosted: Sun Aug 01, 2010 8:45 pm    Post subject: Reply with quote

I'm having this issue too. It started after upgrading sys-libs/glibc, sys-libs/ncurses, sys-libs/gdbm and dev-libs/gmp. One of those packages seems to be breaking gcc and due to the nature of the package my money's on glibc.

Emerge --info:
Code:
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.3, glibc-2.11.2-r0, 2.6.32-24-generic x86_64)
=================================================================
System uname: Linux-2.6.32-24-generic-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8300_@_2.50GHz-with-gentoo-2.1.6
Timestamp of tree: Sun, 01 Aug 2010 19:10:02 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2
sys-apps/baselayout: 2.1.6
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages mini-manifest news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/  http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/  "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 aspell bzip2 cairo cdparanoia css cups dbus dri dvd expat firefox foomaticdb gdbm gif gnome gtk java jpeg mad midi mmx mp3 mpeg msn multilib ncurses nls opengl pam pcmcia pcre pdf pnf png ppds pulseaudio python samba sdl spell sse ssl svg threads threadsafe tiff unicode usb wifi xcb xorg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


This was the before and after of what was upgraded:
Code:
[ebuild     U ] sys-libs/glibc-2.11.2 [2.10.1-r1] USE="(multilib) nls -debug -gd -glibc-omitfp (-hardened) -profile (-selinux) -vanilla" 0 kB [?=>0]
[ebuild     UD] sys-libs/ncurses-5.7-r3 [5.7-r5] USE="unicode -ada -cxx* -debug -doc -gpm* -minimal -profile -trace (-static-libs%)" 0 kB [?=>0]
[ebuild   R   ] sys-libs/gdbm-1.8.3-r4  USE="-berkdb*" 0 kB [?=>0]
[ebuild     UD] dev-libs/gmp-4.3.2 [5.0.1] USE="-nocxx" 0 kB [?=>0]


*Edit*

It seems that dev-libs/gmp is what's causing the breakage.

*Edit #2*

No there's something else causing it too. Either glibc-2.11.2, ncurses-5.7-r3 or gdbm-1.8.3-r4
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4141

PostPosted: Sun Aug 01, 2010 11:10 pm    Post subject: Reply with quote

it only "seems"
carpman wrote:

Code:

LDFLAGS="-Wl,-O1 -Wl,--as-needed-Wl,--as-needed"


cheers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11, 12  Next
Page 8 of 12

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum