Bug 36065 - gcj 4.3.1 fails to compile if system libtool is version 2.x
Summary: gcj 4.3.1 fails to compile if system libtool is version 2.x
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.3.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-27 19:13 UTC by bero
Modified: 2010-09-22 21:10 UTC (History)
3 users (show)

See Also:
Host: i586-pc-linux-gnu
Target: i586-pc-linux-gnu
Build: i586-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bero 2008-04-27 19:13:26 UTC
# libtool --version |head -n1
ltmain.sh (GNU libtool) 2.2.2

# make
[...]
make[5]: Entering directory `/build-gcc-i586/BUILD/gcc-4.3.1/build/i586-ark-linux/libjava/classpath/native/fdlibm'
if /bin/sh ../../libtool --tag=CC --mode=compile /build-gcc-i586/BUILD/gcc-4.3.1/build/./gcc/xgcc -B/build-gcc-i586/BUILD/gcc-4.3.1/build/./gcc/ -B/usr/i586-ark-linux/bin/ -B/usr/i586-ark-linux/lib/ -isystem /usr/i586-ark-linux/include -isystem /usr/i586-ark-linux/sys-include -DHAVE_CONFIG_H -I. -I../../../../../../libjava/classpath/native/fdlibm -I../../include     -O2 -g -O2 -march=i586 -mtune=i686  -fweb -frename-registers -fno-strict-aliasing   -MT dtoa.lo -MD -MP -MF ".deps/dtoa.Tpo" -c -o dtoa.lo ../../../../../../libjava/classpath/native/fdlibm/dtoa.c; \
        then mv -f ".deps/dtoa.Tpo" ".deps/dtoa.Plo"; else rm -f ".deps/dtoa.Tpo"; exit 1; fi
../../libtool: line 154: CDPATH: command not found
libtool: Version mismatch error.  This is libtool 2.1a, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.1a
libtool: and run autoconf again.
make[5]: *** [dtoa.lo] Error 1
make[5]: Leaving directory `/build-gcc-i586/BUILD/gcc-4.3.1/build/i586-ark-linux/libjava/classpath/native/fdlibm'
make[4]: *** [all-recursive] Error 1


The configure script should probably detect this and fix aclocal.m4...
Comment 1 Andrew Pinski 2008-12-28 06:19:22 UTC
You should not need libtool to build gcc.  I think one of the time stamps on the generated files is messed up. 

How did you configure GCC?  How did you invoke make to build GCC?
Comment 2 Ralf Wildenhues 2010-09-22 21:10:47 UTC
This has been waiting for feedback for more than a year.  Feel free to reopen with more details if you still see this issue.  I'm closing it as worksforme.