This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Bootstrap FAILURE: gcc-3.4.0-20040406 prerelease


[Danny Smith]
> It looks like you are linking against the libstdc++.a from an
> older (modified by mingw local patches) version of gcc.
> The symbol __w32_sharedptr_unexpected does not occur in FSF
> sources for 3.4.0.

Ugh.

> I suspect that if you change PATH so that the relocatability
> magic finds the new (3.4.0) gcc driver before it finds your
> old one you will link against the correct 3.4.0 libstdc++.a.

I had, however, changed my PATH so that my 3.3.3 MinGW could no longer be
found, only the 3.4.0.

Checking again (my 3.3.3 lives in C:\MinGW\bin):

C:\Temp\gcc>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\Exec
utable;C:\Program Files\Common Files\Adaptec
 Shared\System;C:\Temp\gcc\gcc-3.4.0\bin;C:\Program Files\Metapad

C:\Temp\gcc>g++ --version
g++ (GCC) 3.4.0 20040407 (prerelease)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


C:\Temp\gcc>g++ -Wall -W hello.cc -o hello.exe
/mingw/lib/libstdc++.a(eh_throw.o)(.text+0x10):eh_throw.cc: undefined
reference to `__w32_sharedptr_unexpected'
[...blah...]

Since I executed "make bootstrap", shouldn't the 3.4.0 have compiled
libstdc++.a?

Would bootstrapping again, but with 3.4.0 as the system compiler, produce
the right libstdc++.a?  It doesn't seem right that I should have to do that,
though.

The current bootstrapped 3.4.0 I have compiles hello.c just fine.

Stephan T. Lavavej
http://nuwen.net




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]