Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5157 closed bug (fixed)

gcc3 build breakage

Reported by: andreasf Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking: #5158
Has a Patch: no Platform: All

Description

The following configuration on OpenSolaris host used to work: gcc 3.4.3 + cross-gcc4

haiku/trunk/headers/build/os/BeBuild.h#L43 chokes on gcc3 now though.

Can't we infer from __GNUC__ > 2 that the gcc4 ABI is to be used?

Change History (6)

comment:1 Changed 9 years ago by andreasf

The following snippet in UserBuildConfig works around this, with the gcc-dev-4 cluster installed:

HOST_GCC_RAW_VERSION = 4.3.2 ;
HOST_CC = gcc-4.3.2 ;
HOST_C++ = g++-4.3.2 ;
HOST_LINK = g++-4.3.2 ;
HOST_LIBSUPC++ = ;

comment:2 in reply to:  1 Changed 9 years ago by andreasf

...but unfortunately only for the ppc boot CD. For ppc and x86 haiku-image I get relocation errors. This happens both with gcc 3.4.3 plus patch and with gcc 4.3.2.

comment:3 Changed 9 years ago by korli

IMO the host compiler shouldn't mind the target Haiku ABI. Some parts of BeBuild.h are only valid for the target Haiku. You could probably add where applicable:

#ifdef HAIKU_TARGET_PLATFORM_HAIKU

comment:4 in reply to:  3 Changed 9 years ago by bonefish

Resolution: fixed
Status: newclosed

Replying to korli:

IMO the host compiler shouldn't mind the target Haiku ABI.

This is about build/os/BeBuild.h.

Replying to andreasf:

...but unfortunately only for the ppc boot CD. For ppc and x86 haiku-image I get relocation errors. This happens both with gcc 3.4.3 plus patch and with gcc 4.3.2.

If you feel like adding details, please create a new ticket. Closing this one. I've adjusted build/os/BeBuild.h in hrev34717.

comment:5 Changed 9 years ago by andreasf

Blocking: 5158 added

comment:6 Changed 9 years ago by andreasf

Thanks Ingo, this fixes the initial part.

Opened #5158 for the follow-on errors.

Note: See TracTickets for help on using tickets.