Page 1 of 1

gcc version bug in libtool?

Posted: 7. May 2010, 05:41
by maximus
I am using x86_64 current
I was compiling something yesterday and was running into an error where libtool was linking to the wrong gcc version:

Code: Select all

libtool: link: g++ -shared -nostdlib /usr/lib64/gcc/x86_64-slackware-linux/4.4.2/../../../../lib64/crti.o
leading to this:

Code: Select all

g++: /usr/lib64/gcc/x86_64-slackware-linux/4.4.2/../../../../lib64/crti.o: No such file or directory
which is right, the directory /usr/lib64/gcc/x86_64-slackware-linux/4.4.2 does not exist - but /usr/lib64/gcc/x86_64-slackware-linux/4.4.3 does exist.

Editing /usr/bin/libtool and replacing all references to 4.4.2 with 4.4.3 fixes this issue.

Is this a bug in libtool or did something go wrong with an upgrade? Can someone confirm?

Thanks :)

Re: gcc version bug in libtool?

Posted: 7. May 2010, 10:47
by gapan
Looks like a bug. What are you trying to compile exactly?

Re: gcc version bug in libtool?

Posted: 7. May 2010, 13:45
by maximus
It's called gexiv2, "a GObject-based wrapper around the Exiv2 library" (link). I can't remember when the last libtool/gcc upgrade was but I haven't run into this particular problem before.