Making Firefox build for BeOS/Haiku under gcc4

NEW
Unassigned

Status

()

Core
Build Config
--
enhancement
10 years ago
7 years ago

People

(Reporter: tqh, Unassigned)

Tracking

(Depends on: 1 bug, Blocks: 1 bug)

Trunk
x86
Linux
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

10 years ago
Created attachment 304300 [details] [diff] [review]
Very rough patch

Haiku is the open source replacement for BeOS, and it can be built using gcc4. I have a rough non-final patch of what it is needed for a *somewhat* working gcc4 Firefox for Haiku. I've crosscompiled it from Linux 64-bit, as Haiku doesn't have a build environment yet. It does run but has a lot of glitches to fix.
Component: Build Config → Build Config
Product: Firefox → Core
QA Contact: build.config → build-config
Version: 2.0 Branch → Trunk

Comment 1

10 years ago
Great to see you getting somewhere! :-)

But I don't think you should waste time trying to fix stuff in gfx/src/beos, as there is some pressure to remove it soon. (It depends on many functions which really should be removed as they increase the codesize for the other platforms, see e.g. bug 410114.)

Oh, are you trying this on the 1.8 branch still? Then forget the above.
(Reporter)

Comment 2

10 years ago
Yes, we are. I'd rather be on trunk but...

We have no working Cairo, although it was ported by biesi a long time ago. We have no Pango either for that matter, but afaik OS/2 had an alternate solution there.

And it wasn't that hard except for the xpcom-reflection. Hadn't it been for the hints from other platforms to use thunk based vtable I'd probably be stuck there still.
(Reporter)

Updated

10 years ago
Depends on: 419941
(Reporter)

Updated

10 years ago
Depends on: 419954
(Reporter)

Updated

10 years ago
Blocks: 422798

Comment 3

9 years ago
Created attachment 358432 [details] [diff] [review]
another version, uses Haiku's native gcc2.  cross-compile support not included.

This variation of the initial patch allows SeaMonkey, Firefox, Thunderbird, and Sunbird from MOZILLA_1_8_BRANCH to be compiled inside Haiku with gcc2.  
At this time, Haiku's native gcc4 toolchain is still being developed.

Other products, such as XUL-runner should be buildable, but were not tested.  

Cross-compile support was not included, but should be easy to add.

Comment 4

9 years ago
Another note about attachment (id=358432),  
this is a patch on the entire mozilla/ directory.  
NSS and NSPR changes are included.
You need to log in before you can comment on or make changes to this bug.