[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool causing oprofile build failure when configuring with --with-binu

From: Maynard Johnson
Subject: libtool causing oprofile build failure when configuring with --with-binutils
Date: Thu, 31 Jul 2008 12:39:29 -0500
User-agent: Thunderbird (Windows/20080708)

We recently released OProfile 0.9.4, which for the first time includes
some libraries that must be installed along with the usual OProfile
tools.  We introduced the use of libtool in our project to support the
installation of these new OProfile libraries.  Now, a user has reported
the following error when building OProfile:

    ./configure --with-kernel-support --with-binutils=/my-binutils
        (NOTE: If you don't have an alternate binutils to point to,
    specifying --with-binutils=/usr will give same failure)

    then when 'make' is run, it fails with the following message:

    g++ -W -Wall -fno-common -ftemplate-depth-50 -g -O2 -I /usr/include
    /usr/lib -Wl,-R -Wl,/usr/lib -o opimport opimport.o 
    -L/home/dima/a/down/oprofile-0.9.4/libabi libabi.a ../libdb/libodb.a
    ../libopt++/libopt++.a ../libutil++/libutil++.a ../libutil/libutil.a
    /usr/lib/ -liberty -ldl 
    /usr/bin/ld: /usr/lib: No such file: File format not recognized
    collect2: ld returned 1 exit status
    make[3]: *** [opimport] Error 1

I've narrowed this down to our use of libtool.  This error does not
occur with the previous OProfile 0.9.3 release;  but by simply adding
libtool to the 0.9.3 release, the problem occurs. You can reproduce the
problem by pulling down OProfile 0.9.3
( and doing the following:

    1. Untar the 0.9.3 tar ball and cd into the oprofile-0.9.3 directory.
    2. Run 'libtoolize --automake'.
    3. Edit and add "AC_PROG_LIBTOOL" (I added it at line 19).
    4. Run './'.
    5. Run './configure --with-kernel-support --with-binutils=/usr'
    6. Run 'make'.  You should see the error.

I'm using libtool version 1.5.26.  Any help would be much appreciated.


Maynard Johnson
OProfile maintainer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]