Opened 13 years ago

Closed 13 years ago

#7425 closed bug (fixed)

Filerules problem + missing dependencies (haiku build on Linux)

Reported by: cprodescu Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version:
Keywords: gsoc2011 Cc:
Blocked By: Blocking:
Platform: All

Description

This ticket refers to dependencies which are not specified in ReadMe.cross-compile.

The host system was an ubuntu lucid 10.04.1 (Base system created via debootstrap + installed tools listed in Readme.cross-compile).

While building cross-compile gcc4 x86 and then haiku, the following dependencies were needed:

  • wget
  • unzip
  • g++ (kinda obvious, but not specified)

Additionally, archives pseudo-dependencies in

  • build/jam/FileRules

can lead to broken builds.

  1. Build-tools were generated via:
    ./configure --build-cross-tools-gcc4 x86 ../buildtools/
    
  1. Haiku jam branch was installed
    cd ../build-tools/jam
    make
    ./jam0 install
    
  1. While building Haiku via:
    jam -q haiku-vmware-image
    
    the following errors were encountered:
...
MkDir1 generated/objects/linux/x86/release/build/libroot 
C++ generated/objects/linux/x86/release/build/libroot/atomic.o 
cc: error trying to exec 'cc1plus': execvp: No such file or directory
...

We install g++ and proceed...

...
MkDir1 generated/download 
DownloadLocatedFile1 generated/download/pci.ids 
/bin/sh: wget: not found
...

We install wget and proceed...

ExtractZipArchive1 generated/build_packages/icu-devel-4.4.1-2010-07-26 
/bin/sh: unzip: not found

We install unzip and proceed...

The interesting part is that now, due to the pseudo-dependency between the icu-devel-4.4.1-2010-07-26 directory and the real files which should be unzipped in icu-devel-4.4.1-2010-07-26/develop/headers/3rdparty/, at the next run, the directory exists (even though the unzip has failed!) and the ExtractZipArchive1 will be skipped and this will result in compile failure for the locale sources ...

(build/jam/FileRules: line 224)

Attachments (1)

FileRules.patch (1.2 KB ) - added by cprodescu 13 years ago.

Download all attachments as: .zip

Change History (5)

by cprodescu, 13 years ago

Attachment: FileRules.patch added

comment:1 by cprodescu, 13 years ago

patch: 01

comment:2 by mmadia, 13 years ago

Keywords: gsoc2011 added

Thanks for the patch!

Ingo, the patch is functional as far as ensuring the directories will contain the extracted targets. Do you see any issues with it?

in reply to:  2 comment:3 by bonefish, 13 years ago

Replying to mmadia:

Ingo, the patch is functional as far as ensuring the directories will contain the extracted targets. Do you see any issues with it?

The patch looks good as far as I can say. If it has been tested, it can be applied.

comment:4 by mmadia, 13 years ago

Resolution: fixed
Status: newclosed

Applied in hrev41211. Thanks for the patch!

Note: See TracTickets for help on using tickets.