Bug 37349 - [4.4 Regression] bootstrap broken on Alpha: undefined reference to _Jv_RegisterClasses
Summary: [4.4 Regression] bootstrap broken on Alpha: undefined reference to _Jv_Regist...
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.4.0
: P4 normal
Target Milestone: 4.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 37464 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-03 12:18 UTC by Martin Michlmayr
Modified: 2009-01-07 14:05 UTC (History)
6 users (show)

See Also:
Host: alpha-linux-gnu
Target: alpha-linux-gnu
Build: alpha-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2008-09-14 05:01:30


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Michlmayr 2008-09-03 12:18:32 UTC
I get the following bootstrap error on Alpha:

checking for uintptr_t... yes
checking for a 64-bit type... uint64_t
checking for pid_t... yes
checking for library containing strerror... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [configure-stage2-libiberty] Error 1
make[2]: Leaving directory `/home/tbm/tmp/gcc/4.3-2008-09-03-r139931'

I configured with
.../gcc/configure --enable-languages=c,c++ --with-long-double-128 --build=alpha-linux-gnu --host=alpha-linux-gnu --target=alpha-linux-gnu
Comment 1 Martin Michlmayr 2008-09-03 12:20:54 UTC
I forgot to mention that this is with current SVN.
Comment 2 Martin Michlmayr 2008-09-03 12:55:39 UTC
Also fails with:

configure --enable-languages=c,c++  --build=alpha-linux-gnu --host=alpha-linux-gnu --target=alpha-linux-gnu
Comment 3 Martin Michlmayr 2008-09-03 13:05:10 UTC
Sorry, I used make -j2 and only looked at the error at the end... but I just realized there's another error earlier on and that's the real problem.

checking for alpha-linux-gnu-gcc...  /home/tbm/tmp/gcc/3/4.3-2008-09-03-r139931/./prev-gcc/xgcc -B/home/tbm/tmp/gcc/3/4.3-2008-09-03-r139931/./prev-gcc/ -B/usr/local/alpha-linux-gnu/bin/
checking for C compiler default output file name... configure: error: in `/home/tbm/tmp/gcc/3/4.3-2008-09-03-r139931/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-stage2-intl] Error 77

The log says:

configure:2147: checking for C compiler default output file name
configure:2150:  /home/tbm/tmp/gcc/3/4.3-2008-09-03-r139931/./prev-gcc/xgcc -B/home/tbm/tmp/gcc/3/4.3-2008-09-03-r139931/./prev-gcc/ -B/usr/local/alpha-linux-gnu/bin/ -g -O2   conftest.c  >&5
/home/tbm/tmp/gcc/3/4.3-2008-09-03-r139931/./prev-gcc/crtbegin.o: In function `frame_dummy': (.text+0xec): undefined reference to `_Jv_RegisterClasses'
/tmp/ccWuMF2Y.o:(.debug_info+0x49): undefined reference to `$LSFDE0'
collect2: ld returned 1 exit status
configure:2153: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2191: error: in `/home/tbm/tmp/gcc/3/4.3-2008-09-03-r139931/intl':
configure:2194: error: C compiler cannot create executables

Comment 4 Andrew Pinski 2008-09-14 05:01:08 UTC
*** Bug 37464 has been marked as a duplicate of this bug. ***
Comment 5 Andrew Pinski 2008-09-14 05:01:30 UTC
Confirmed via the dup.
Comment 6 Thomas Koenig 2008-12-13 19:55:05 UTC
Has this been fixed in the meantime?

Uros, you wrote in
http://gcc.gnu.org/ml/gcc/2008-12/msg00228.html that bootstrap works
on Alpha...
Comment 7 Uroš Bizjak 2008-12-14 10:41:23 UTC
(In reply to comment #6)
> Has this been fixed in the meantime?
> 
> Uros, you wrote in
> http://gcc.gnu.org/ml/gcc/2008-12/msg00228.html that bootstrap works
> on Alpha...

Yes, bootstrap works. I have bootstrapped gcc on gcc30 cfarm machine a couple of times, last bootstrap from a clean directory was yesterday. Bootstrap produces working compiler:

uros@sarah:~/gcc-build/gcc$ ./xgcc -v
Using built-in specs.
Target: alphaev56-unknown-linux-gnu
Configured with: ../gcc-svn/trunk/configure --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.4.0 20081213 (experimental) [ revision ] (GCC) 
uros@sarah:~/gcc-build/gcc$ 

And from (still running) testrun:

--cut here--
LAST_UPDATED: samedi 13 décembre 2008, 16:52:13 (UTC+0000) (revision )

Native configuration is alphaev56-unknown-linux-gnu

		=== gcc tests ===


Running target unix

Compiler version: gcc gcc 
Platform: alphaev56-unknown-linux-gnu
configure flags: --enable-languages=c,c++,fortran
BOOT_CFLAGS=-g -O2
--cut here--
Comment 8 Uroš Bizjak 2009-01-07 14:05:15 UTC
Closed as WORKSFORME, since bootstrap - well - works for me.