Problem building Haiku image with recent revisions?

Has anyone had trouble building the HDD image with a recent (in the last week) revision? I am… Compilation fails on certain files. I’ve tried this in both Linux (while updating to the latest source) and BeOS (while doing a fresh checkout of the tree).

I’m doing exactly what I always do. :?

j_freeman wrote:
Has anyone had trouble building the HDD image with a recent (in the last week) revision? I am... Compilation fails on certain files. I've tried this in both Linux (while updating to the latest source) and BeOS (while doing a fresh checkout of the tree).

I’m doing exactly what I always do. :?

try a:

jam clean

or delete the whole "generated" folder…

I was having some problems also, and this seemed to help.

might post some of the failures you’re getting though…

On my Linux box, I deleted the generated folder and tried rebuilding, but I got the same errors.

And on my BeOS box, it was the first time I had tried to build Haiku in that environment… I did a completely fresh checkout of the source tree and a completely new build, but I got the same errors there too.

When I get home, I’ll post the entire Jam log.

Here’s the build log from my BeOS box:
http://www.haikuhost.com/misc/image.log

I’ll try to build on Linux again, and if I still have a problem I’ll post that log as well.

j_freeman wrote:
Here's the build log from my BeOS box: http://www.haikuhost.com/misc/image.log

I’ll try to build on Linux again, and if I still have a problem I’ll post that log as well.

It almost appears your target is set to R5?

./configure --target=haiku

and then:

jam haiku-image

again

update: nevermind - I was seeing the R5 tests generated - further down it shows the haiku objects… i dunno then.

looks like this is the first place it fails:

C++ generated/objects/r5/x86/release/tools/rc/compile.o

gcc -c "src/tools/rc/compile.cpp" -O2 -Wall -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wpointer-arith -Wcast-align -Wsign-compare -Wno-multichar -Wno-sign-compare -Wno-unused -include src/tools/rc/R5Compatibility.h -D_ZETA_USING_DEPRECATED_API_=1 -DARCH_x86 -D_NO_INLINE_ASM -DCOMPILE_FOR_R5 -DHAIKU_HOST_PLATFORM_BEOS -Isrc/tools/rc -Igenerated/objects/common/tools/rc -Igenerated/objects/r5/x86/common/tools/rc -Igenerated/objects/haiku/x86/common/tools/rc -I- -o "generated/objects/r5/x86/release/tools/rc/compile.o" ;

…failed C++ generated/objects/r5/x86/release/tools/rc/compile.o …

maybe try going into the rc directory and jam’ing it separately

I tried building under Linux again, with success. I don’t really remember what I did or what order I did it in, but that seems to be working again.

I still haven’t it to build under BeOS, though. AFAIK I have all of the requisite software installed, but it still fails. Quick question, how do you build the build tools under BeOS? I always build the latest tools on Linux, but with BeOS I’m just using the prebuilt packages mentioned on the Wiki… I think this could be my problem.

j_freeman wrote:
I tried building under Linux again, with success. I don't really remember what I did or what order I did it in, but that seems to be working again.

I still haven’t it to build under BeOS, though. AFAIK I have all of the requisite software installed, but it still fails. Quick question, how do you build the build tools under BeOS? I always build the latest tools on Linux, but with BeOS I’m just using the prebuilt packages mentioned on the Wiki… I think this could be my problem.

I’m using the pre-built tools from the wiki also - and have no problems.

Just make sure to grab the new gcc specified there and follow all the instructions that come with it - the get the jam version specified there (it works fine for me)…

I think all this must be installed OVER the original R5 dev tools that Be provided…

With my BeOS Max V 3.1b I am having no problems using the stuff posted to the wiki.

Okay, I reinstalled BeOS 5 Developer’s Edition. Before I do anything, I’ve checked to see what software I already have installed.

  1. I type in "gcc -dumpversion" and it reports back "2.95.3"... appears I'm already setup for that.
  2. I type in "jam -v" and it reports back "2.4 [other stuff I can't remember]" so I install the one listed on the Wiki and requery for the version; it reports back "Jam 2.5rc3. OS=BEOS. Copyright 1993-2002 Christopher Seiwald." So I'm now setup for that.
  3. No subversion, so I download and install the one listed on the Wiki.

As far as I can tell, I’m setup to build. I’m currently checking out the entire source tree. Again. Hopefully if I’ve missed something, someone can let me know before the checkout is complete and I start screwing things up. :wink:

j_freeman wrote:
Okay, I reinstalled BeOS 5 Developer's Edition. Before I do anything, I've checked to see what software I already have installed.
  1. I type in "gcc -dumpversion" and it reports back "2.95.3"... appears I'm already setup for that.
  2. I type in "jam -v" and it reports back "2.4 [other stuff I can't remember]" so I install the one listed on the Wiki and requery for the version; it reports back "Jam 2.5rc3. OS=BEOS. Copyright 1993-2002 Christopher Seiwald." So I'm now setup for that.
  3. No subversion, so I download and install the one listed on the Wiki.

As far as I can tell, I’m setup to build. I’m currently checking out the entire source tree. Again. Hopefully if I’ve missed something, someone can let me know before the checkout is complete and I start screwing things up. :wink:

GCC version has to be "2.95.3-beos-041202"

This is the only version guaranteed to build Haiku under BeOS currently.

Good thing I came back here, then.

Okay, just to be sure… on the GCC page linked at the Wiki, there are two versions available: 2.9x and 3.x. I’m guessing I need the 2.9x version; the first time I tried this, I must’ve just grabbed the first version listed (3.x) and that’s probably why I was having trouble.

Edit: Went ahead and installed the 2.9x version; it reports back “2.95.3-beos-041202” now, so I guess I’m ready once the tree is checked out. I bet you anything that was the reason I was having trouble earlier… I was using 3.x instead of 2.9x! :oops:

j_freeman wrote:
Good thing I came back here, then.

Okay, just to be sure… on the GCC page linked at the Wiki, there are two versions available: 2.9x and 3.x. I’m guessing I need the 2.9x version; the first time I tried this, I must’ve just grabbed the first version listed (3.x) and that’s probably why I was having trouble.

Edit: Went ahead and installed the 2.9x version; it reports back “2.95.3-beos-041202” now, so I guess I’m ready once the tree is checked out. I bet you anything that was the reason I was having trouble earlier… I was using 3.x instead of 2.9x! :oops:

:slight_smile: - report back on your success!

It worked! That was the problem, I was using the newer version of GCC. Thanks for the help, Urias. :slight_smile: