[haiku-bugs] Re: [Haiku] #8730: Improve the build system for building on Haiku

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Wed, 01 Aug 2012 09:50:40 -0000

#8730: Improve the build system for building on Haiku
----------------------------+----------------------------
   Reporter:  mmadia        |      Owner:  mmadia
       Type:  enhancement   |     Status:  in-progress
   Priority:  normal        |  Milestone:  R1
  Component:  Build System  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by bonefish):

 Replying to [comment:9 mmadia]:
 >
 > For now I'm skipping the HaikuHostBuildConfig.h related changes.

 As written before you can omit the string function stuff, but you're going
 to need the `_HAIKU_BUILD_FEATURE_[u]int*`. All the "* does not name a
 type" errors should clear up once they are defined.

 > The build system is now at a point, where it's looking for headers in
 headers/build/target_posix (the name chosen instead of posix_haiku).
 > It's also complaining about the typedefs in
 headers/build/config_build/types.h and in
 headers/build/os/support/SupportDefs.h
 > Could you post a snippet on how you want a typedef in
 [https://github.com/mmadia/haiku/blob/master/headers/build/config_build/types.h
 headers/build/config_build/types.h] updated?
 > Between the patch and your comments, I'm not following how it should
 look.

 I hope my mail on the commit list helps.

 > {{{
 > [mmadia@fBSD ~/separate-build-environment/haiku]$ jam -q libroot.so
 > }}}

 You can start smaller, like with building libroot_build.so. libroot.so
 will only build when most of the build tools already work. You won't get
 there before not only libroot_build but also libbe_build build.

 > {{{
 > ...patience...
 > ...found 5182 target(s)...
 > ...updating 1071 target(s)...
 > C++ generated/objects/freebsd/x86/release/build/libroot/atomic.o
 > In file included from headers/build/os/support/Errors.h:9,
 >                  from headers/build/os/support/SupportDefs.h:15,
 > }}}

 As written in my mail, those headers shouldn't be included. The
 "headers/build/os", "headers/build/posix", etc. directories shouldn't even
 be in the header search path when compiling atomic.c.

 >                  from src/build/libroot/atomic.cpp:6:
 > headers/build/posix/limits.h:9:40: error: posix_target/target_limits.h:
 No such file or directory
 > In file included from headers/build/os/support/SupportDefs.h:17,
 >                  from src/build/libroot/atomic.cpp:6:
 > headers/build/posix/inttypes.h:9:42: error:
 posix_target/target_inttypes.h: No such file or directory
 > In file included from headers/build/os/support/SupportDefs.h:18,
 >                  from src/build/libroot/atomic.cpp:6:
 > headers/build/posix/sys/types.h:9:43: error:
 posix_target/sys/target_types.h: No such file or directory

 Well, the headers must be added. :-)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8730#comment:10>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: