Opened 10 years ago

Closed 10 years ago

Last modified 10 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 by andreasf, 10 years ago

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++ = ;

in reply to:  1 comment:2 by andreasf, 10 years ago

...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 by korli, 10 years ago

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

in reply to:  3 comment:4 by bonefish, 10 years ago

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 by andreasf, 10 years ago

Blocking: 5158 added

comment:6 by andreasf, 10 years ago

Thanks Ingo, this fixes the initial part.

Opened #5158 for the follow-on errors.

Note: See TracTickets for help on using tickets.