Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41925 - libtool foolishness
Summary: libtool foolishness
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 30453
  Show dependency tree
 
Reported: 2004-02-17 09:55 UTC by Derek Dolney
Modified: 2004-02-19 12:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derek Dolney 2004-02-17 09:55:07 UTC
Compile this code two ways:

int main() {}

1. libtool --mode=compile gcc -c main.c -o main.o
2. libtool --mode=compile /usr/bin/gcc -c main.c -o main.o

The second way dies with the error libtool: compile: unable to infer tagged configuration

I can't imagine a reason for libtool to be so stupid. Please enlighten me if there is really a reason for this. I didn't see this with previous versions of libtool, but libtool 1.5 versions other than 1.5.2-r3 have been removed from portage, so I can only verify that 1.4.3-r3 does not have this problem.

Gentoo Base System version 1.4.3.13
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.4.20-gentoo-r11)
=================================================================
System uname: 2.4.20-gentoo-r11 i686 
ccache version 2.3 [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox userpriv"
GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo http://mirror.clarkson.edu/pub/distributions/gentoo/ http://mirror.tucdemonic.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X acl alsa apm atlas bonobo cdr crypt cups fam foomaticdb gdbm gif gnome gpm gtk gtk2 imap java jpeg maildir mmx mozilla mpeg ncurses oggvorbis opengl oss pam pcmcia perl png pnp python quicktime readline slang spell sse ssl tcltk tcpd tetex truetype trusted video_cards_mach64 x86 xml2 xmms zlib"
Comment 1 SpanKY gentoo-dev 2004-02-18 23:10:27 UTC
thats because other versions of 1.5 are very broken
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-19 12:10:05 UTC
Its on purpose to automatically get tags set:

--
    # Infer tagged configuration to use if any are available and
    # if one wasn't chosen via the "--tag" command line option.
    # Only attempt this if the compiler in the base compile
    # command doesn't match the default compiler.
--

Default CC is "gcc", so I guess you could edit the makefile if you
reallly want to use /usr/bin/gcc ...
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-19 12:10:53 UTC
Err, edit /usr/bin/libtool (or whatever libtool you uses) ...  Just do not set
the PATH is the correct way though it seems.