[openbeos] Re: GCC-version mismatches...

On 11/15/06, Oliver Tappe <openbeos@xxxxxxxxxxxxxxx> wrote:

So I wonder, guys, how *did* you manage to run configure without installing
the correct gcc?

In my case I had downloaded the Haiku source back in April or so and
had a bit of a hiatus before I started developing again. I don't know
if this would affect the check, but I just tested it again and it does
not seem to work:

[/boot/develop/tools]$ ls
experimental  gcc-2.95.3_binutils-2.15  gnupro_old
[/boot/develop/tools]$ ln -s gnupro_old/ gnupro
[/boot/develop/tools]$ gcc --version
2.9-beos-991026
[/boot/develop/tools]$ cd ~/develop/haiku/trunk/
[~/develop/haiku/trunk]$ ls
3rdparty  Jamfile  Jamrules  ReadMe  build  configure  data  docs
generated  headers  makehaikufloppy  src
[~/develop/haiku/trunk]$ which gcc
/boot/develop/tools/gnupro/bin/gcc
[~/develop/haiku/trunk]$ gcc --version
2.9-beos-991026
[~/develop/haiku/trunk]$ ./configure --target=r5
[~/develop/haiku/trunk]$

It happily uses this compiler. In fact here is the relevant part of by
BuildConfig:

HAIKU_GCC_RAW_VERSION   ?= 2.9-beos-991026 ;
HAIKU_GCC_MACHINE       ?= i586-beos ;
HAIKU_GCC_LIB_DIR       ?=
/boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-991026 ;
HAIKU_GCC_HEADERS_DIR   ?=
/boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-991026/include
;
HAIKU_GCC_LIBGCC        ?=
/boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-991026/libgcc.a
;

Regards,
Ryan

Other related posts: