View previous topic :: View next topic |
Author |
Message |
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Aug 01, 2010 11:17 pm Post subject: |
|
|
jordanwb
Code: | equery d gmp
* These packages depend on gmp:
dev-libs/mpfr-3.0.0 (>=dev-libs/gmp-4.1.4-r2)
dev-libs/openssl-1.0.0a (gmp ? dev-libs/gmp)
sys-apps/coreutils-8.5 (gmp ? dev-libs/gmp)
sys-devel/gcc-4.3.2-r4 (>=dev-libs/gmp-4.2.1)
|
but mpfr is also a gcc dependency
Code: | equery d mpfr
* These packages depend on mpfr:
sys-devel/gcc-4.3.2-r4 (>=dev-libs/mpfr-2.3)
|
so check gmp & mpfr (as you already check gmp)
for gdbm it's python that depend on it (and perl), but as python=emerge, might be good to check it too.
well, without an error log, can't guess more. |
|
Back to top |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Sun Aug 01, 2010 11:30 pm Post subject: |
|
|
Here's the build log when I try to compile gcc |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9621 Location: beyond the rim
|
Posted: Sun Aug 01, 2010 11:36 pm Post subject: |
|
|
Code: | See `config.log' for more details. |
^^ the important details. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Aug 01, 2010 11:39 pm Post subject: |
|
|
Code: | #
[32;01m*[0m CFLAGS=""
#
[32;01m*[0m CXXFLAGS=""
|
i think it's that, your CFLAGS are cleared.
check your gcc env & gcc-config -l (and ask gcc-config to switch to the same gcc version)
edit: yeah the config.log
Last edited by krinn on Sun Aug 01, 2010 11:40 pm; edited 1 time in total |
|
Back to top |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Sun Aug 01, 2010 11:40 pm Post subject: |
|
|
config.log: http://pastebin.org/439779
I see this:
Code: | /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory |
but don't know what to do about it. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Aug 01, 2010 11:43 pm Post subject: |
|
|
you've break your gcc :p
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
bad idea to remove libmpfr.so.4
try locate another copy and link to that one, else use the tinderbox to grab it
revdep-rebuild could repair that, but it will ask emerge to rebuild mpfr, and of course emerge will ask gcc to rebuild it -> chicken & egg
edit: i think there's a thread for that, or at least, i saw neddyseaggon explain a guy how to fix it with the tinderbox
or check the https://forums.gentoo.org/viewtopic-t-832937.html
Last edited by krinn on Sun Aug 01, 2010 11:48 pm; edited 1 time in total |
|
Back to top |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Sun Aug 01, 2010 11:45 pm Post subject: |
|
|
krinn wrote: | you've break your gcc :p |
Uhh yeah I kinda figured that.
krinn wrote: | bad idea to remove libmpfr.so.4 |
What? You'd think I'd run "rm -fr --no-preserve-root /" as well? Come on.
krinn wrote: | try locate another copy and link to that one, else use the tinderbox to grab it |
I understand but don't know how to do that.
Nevermind I found the location in the man page
Last edited by jordanwb on Sun Aug 01, 2010 11:53 pm; edited 2 times in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Aug 01, 2010 11:50 pm Post subject: |
|
|
jordanwb wrote: | What? You'd think I'd run "rm -fr --no-preserve-root /" as well? Come on. |
step1: remove gcc
step2: ?
step 3: profit |
|
Back to top |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Sun Aug 01, 2010 11:52 pm Post subject: |
|
|
krinn wrote: | jordanwb wrote: | What? You'd think I'd run "rm -fr --no-preserve-root /" as well? Come on. |
step1: remove gcc
step2: ?
step 3: profit |
At least there's a legit reason to do that. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Aug 01, 2010 11:54 pm Post subject: |
|
|
http://www.southparkstudios.com/clips/151040
can't resist found the clip (i was thinking about it)
on a more serious note, the link i gave upper to the sticky "i remove mpfr by mistake" explain anything to correct your issue |
|
Back to top |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Sun Aug 01, 2010 11:57 pm Post subject: |
|
|
I downloaded the newer version of mpfr from that site and put it in /usr/portage/packages/ and ran "emerge -k mpfr" but portage still tries to compile mpfr and fails.
krinn wrote: | http://www.southparkstudios.com/clips/151040 |
Can't watch it. I'm in Canada. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Aug 02, 2010 12:02 am Post subject: |
|
|
Code: | equery b libmpfr.so.4
* Searching for libmpfr.so.4 ...
dev-libs/mpfr-3.0.0 (/usr/lib/libmpfr.so.4 -> libmpfr.so.4.0.0)
|
need v3.0.0 package, it might work but you should emerge -k =mpfr-version to force the package version (else emerge might just try to emerge the version you have and not the package version) |
|
Back to top |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Mon Aug 02, 2010 12:04 am Post subject: |
|
|
Code: | emerge -k =mpfr-2.4.2_p3 |
Still tries to compile the source instead of using the tarball. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Aug 02, 2010 12:13 am Post subject: |
|
|
move it to dev-libs
Code: | ls
mpfr-3.0.0.tbz2
pwd
/usr/portage/packages/dev-libs
|
|
|
Back to top |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Mon Aug 02, 2010 12:16 am Post subject: |
|
|
Okay so it installed mpfr via the tarball but gcc still can't compile. I'll get the config.log file in a moment.
http://pastebin.org/439845
I fixed it! Two files were missing in /usr/lib: libmpfr.so.4 and libgmp.so.3, so I symlinked libmpfr.so to libmpfr.so.4 and libgmp.so to libgmp.so.3
Code: | cd /usr/lib
ln -s libmpfr.so libmpfr.so.4
ln -s libgmp.so libgmp.so.3 |
But my question is, why did I have to do that? Why are there four symlinks in the same directory pointing to the same file in the same directory as the sysmlinks?
Last edited by jordanwb on Tue Sep 28, 2010 6:56 pm; edited 2 times in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Aug 02, 2010 12:23 am Post subject: |
|
|
well, same error as before try slocate mpfr.so
or download the 3.0.0 version (at least i'm sure the file is in that one)
edit: ah ok great, try rebuild them to have the good libs.
then revdep-rebuild to check
Code: | ls /usr/lib/libmpfr.so.* -l
-rwxr-xr-x 1 root root 305396 2 août 02:12 /usr/lib/libmpfr.so.1
lrwxrwxrwx 1 root root 16 2 août 02:12 /usr/lib/libmpfr.so.4 -> libmpfr.so.4.0.0
-rwxr-xr-x 1 root root 325924 2 août 02:12 /usr/lib/libmpfr.so.4.0.0
|
|
|
Back to top |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Mon Aug 02, 2010 12:37 am Post subject: |
|
|
I hope my solution works for the original poster.
On an unrelated note, why does gcc have a gtk USE flag? |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Aug 02, 2010 1:09 am Post subject: |
|
|
no idea about the gtk use flag for gcc
the original poster will be fine when he will fix is ldflags, the dup -wl,--as-needed without a space = bork ldflags -> C compiler cannot...
(ok he might not, but that would be another issue) |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Mon Aug 02, 2010 1:40 am Post subject: |
|
|
gtk useflag for gcc is gcj related. |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Mon Aug 02, 2010 11:22 am Post subject: |
|
|
Hello, it seems it was glibc that had issue with my ldflags, i commented them out and it built fine and so did everything else. Now since then i get eselect new item telling that -Wl,--as-needed has been added to default profile, i can also add this to ldflags which will override default profile.
What the issue it is now working. _________________ 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 |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
F1r31c3r Tux's lil' helper
Joined: 31 Aug 2007 Posts: 107 Location: UK
|
Posted: Sat Oct 16, 2010 5:01 pm Post subject: Update to C compiler cannot create executables |
|
|
rjenks wrote: | I had a similar problem when doing an upgrade via "emerge -u portage". When it tried to compile a pre-requisite package (in this case Gawk), I got the same error message.
I found that apparently it had updated the C++ libraries and my paths (specifically in /etc/ld.so.conf), were now wrong. In order to fix it I had to:
1) edit /etc/ld.so.conf to fix the gcc-lib path (in my case it went from 3.2.3 to 3.3.3.
2) run "ldconfig" to set the proper library path
3) edit /etc/env.d/05gcc and change all the paths to the new version.
If you don't do steps 1 and 2 you won't be able to run emerge again. If you don't do step 3, it will undo your changes from step 1 when you run emerge again.
Hope this helps...
-Robert |
Hey Robert
this helped massively. Thought i would pull this thread up to date this is a important addition as i broke my system doing a emerge --depclean
I had 3 compilers on my system version 3.x a 4.3x and current 4.4.x
So i am sure you can imagine -depclean removed 3.x and 4.3.x but left the directory listings in the 05gcc files.
BTW 05gcc file has on my system located as: "/etc/env.d/05gcc-i686-pc-linux-gnu" so anyone need assistance in finding the file cd into /etc/env.d and find which file ending there is by doing a "ls" in that directory. I would also advise on opening a second terminal(I was in X windows so multiple terminals were open) cd each gcc directory listed in the 05gcc file to double check they exist and contain files this is a good way of checking that gcc is installed and the version it points to exists.
Most important find i have found to fix this problem something not mentioned in Roberts post was after modifying all the directories in the files make sure you run:
If you dont it wont take effect unless you reboot which i dont advise on a broken system rofl. so to conclude the perfect fix Thank You Robert:
Quote: |
I found that apparently it had updated the C++ libraries and my paths (specifically in /etc/ld.so.conf), were now wrong. In order to fix it I had to:
1) edit /etc/ld.so.conf to fix the gcc-lib path (in my case it went from 3.2.3 to 3.3.3.
2) run "ldconfig" to set the proper library path
3) edit /etc/env.d/05gcc and change all the paths to the new version.
4) run env-update
If you don't do steps 1 and 2 you won't be able to run emerge again. If you don't do step 3, it will undo your changes from step 1 when you run emerge again.
|
Thanks again all and hope this helps someone. _________________ A WikI, A collection of mass misinformation based on opinion and manipulation by a deception of freedom.
If we know the truth, then we should be free from deception (John 8:42-47 ) |
|
Back to top |
|
|
tel Tux's lil' helper
Joined: 15 Aug 2006 Posts: 112
|
Posted: Fri Oct 29, 2010 6:01 am Post subject: Bus errors? C compiler not working? What went wrong? |
|
|
I was emerging and compiling stuff just fine.
Finally, wine failed to emerge with a bus error. After that, I can emerge NOTHING! Every attempt says my C compiler cannot create executables, and the associated config.log looks like this (for a ccache emerge, for example):
!!! Please attach the following file when seeking support:
configure:2063: Configuring ccache
configure:2077: checking for x86_64-pc-linux-gnu-gcc
configure:2093: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:2104: result: x86_64-pc-linux-gnu-gcc
configure:2373: checking for C compiler version
configure:2382: x86_64-pc-linux-gnu-gcc --version >&5
./configure: line 2384: 4957 Bus error $CC --version 1>&5
configure:2393: $? = 135
configure:2382: x86_64-pc-linux-gnu-gcc -v >&5
./configure: line 2384: 4962 Bus error $CC -v 1>&5
configure:2393: $? = 135
configure:2382: x86_64-pc-linux-gnu-gcc -V >&5
./configure: line 2384: 4967 Bus error $CC -V 1>&5
configure:2393: $? = 135
configure:2382: x86_64-pc-linux-gnu-gcc -qversion >&5
./configure: line 2384: 4972 Bus error $CC -qversion 1>&5
configure:2393: $? = 135
configure:2413: checking whether the C compiler works
configure:2435: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wl,-O1 -Wl,--s
Here's my make.conf:
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j9 -l5"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=5.0 --with-bdeps=y"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_ELOG_CLASSES="warn error log"
USE="-gnome -ipv6 acpi qt3support kde dvd alsa cdr aac cups X pdf png tiff \
jpeg -hal dbus java nsplugin mp3 mp4 win32codecs xinerama \
xcb qt3 v4l2 svg mng truetype type1 cleartype corefonts dri udev"
INPUT_DEVICES="evdev"
VIDEO_CARDS="nvidia"
--------------------------------------------------------
On the other hand, I can compile my own programs just fine.
$ gcc myprog.c
works perfectly, giving me a working a.out
Any thoughts on where to look? |
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Fri Oct 29, 2010 6:43 am Post subject: |
|
|
What does say? |
|
Back to top |
|
|
lakul1n n00b
Joined: 29 Oct 2010 Posts: 1
|
Posted: Fri Oct 29, 2010 6:59 am Post subject: sur RPS ovh |
|
|
Personnellement, toutes ces méthodes n'ont pas marché. seul
cd /etc
rm make.profile
ln -s ../usr/portage/profiles/default/linux/x86/2008.0/server make.profile
env-update && source /etc/profile
a fonctionné. (RPS OVH Release 2) |
|
Back to top |
|
|
|