Thread overview
Build error for gdc-0.19
Sep 18, 2006
Dominique Würtz
Sep 18, 2006
Vincenzo Ampolo
Sep 19, 2006
Dominique Würtz
Sep 19, 2006
Vincenzo Ampolo
September 18, 2006
Hi,

I'm trying to build gdc-0.19 with gcc-4.0.3 under Ubuntu Edgy and get the following error:

# make

...

checking If /home/dude/sources/gcc-build/gcc/gdc -B/home/dude/sources/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include can compile D sources... /home/dude/sources/gcc-build/gcc/cc1d: /home/dude/sources/gcc-build/gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
no
configure: error: can't compile D sources!
make: *** [configure-target-libphobos] Fehler 1


Any ideas what to do about this?

Regards,
Dominique
September 18, 2006
On Mon, 2006-09-18 at 18:15 +0200, Dominique Würtz wrote:
> /home/dude/sources/gcc-build/gcc/libgcc_s.so.1: version `GCC_4.2.0'
> not
> found (required by /usr/lib/libstdc++.so.6)

Sure, i had the same :D
you are using gcc 4.1 and gdc doesn't support it.
Try building with gcc-4.0, if you are using pbuilder tell me that i'll
give you a trick.

btw i'm working to create .deb package of gdc on dapper and debian. stay tuned!
-- 
Vincenzo Ampolo
http://www.nanofreesoft.org
http://vincenzoampolo.nanofreesoft.org
http://idp.nanofreesoft.org


September 19, 2006
Vincenzo Ampolo schrieb:
> On Mon, 2006-09-18 at 18:15 +0200, Dominique Würtz wrote:
>> /home/dude/sources/gcc-build/gcc/libgcc_s.so.1: version `GCC_4.2.0'
>> not found (required by /usr/lib/libstdc++.so.6) 
> 
> Sure, i had the same :D
> you are using gcc 4.1 and gdc doesn't support it.

I did explicitly use CC="gcc-4.0" CXX="g++-4.0". OTOH, the libstdc++ package version is 4.1.1, could this be the problem? I did not find a 4.0 version in the repos.

> Try building with gcc-4.0, if you are using pbuilder tell me that i'll
> give you a trick.
> 
> btw i'm working to create .deb package of gdc on dapper and debian. stay
> tuned!

Great!
September 19, 2006
On Tue, 2006-09-19 at 09:32 +0200, Dominique Würtz wrote:
> I did explicitly use CC="gcc-4.0" CXX="g++-4.0". OTOH, the libstdc++ package version is 4.1.1, could this be the problem? I did not find a 4.0 version in the repos.

The problem should be the libstdc++.
If you go here:
http://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=libstdc%
2B%2B&searchon=names&subword=1&version=edgy&release=all
you will find that libstdc++ is at version 4.1.1 as you already know but
there are also another kind of packages like this one "libstdc
++6-4.0-dev" that provides development file fot the correct version of
libstdc++ that you need.

It seems that you cannot compile gdc on edgy, try to build it in a
dapper environment though.
Use pbuilder to create a clean dapper environment under edgy...
-- 
Vincenzo Ampolo
http://www.nanofreesoft.org
http://vincenzoampolo.nanofreesoft.org
http://idp.nanofreesoft.org


September 19, 2006
Vincenzo Ampolo wrote:

> It seems that you cannot compile gdc on edgy, try to build it in a
> dapper environment though.
> Use pbuilder to create a clean dapper environment under edgy...

For Fedora Core 5, I've found it easiest to bootstrap the entire
GCC with a supported version such as 4.0.3. I even had to use
the "compat32" compiler to do so, since system compiler is 4.1
(the RPM spec file is at http://www.algonet.se/~afb/d/gdc.spec)

As a bonus you also get a vanilla C and C++ compiler, should you
ever need one not patched silly by your distribution of choice :-)

--anders