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

  • From: "mmadia" <trac@xxxxxxxxxxxx>
  • Date: Mon, 06 Aug 2012 15:00:36 -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 mmadia):

 As a quick summary, 18 headers are done out of 123 (judging by {{{ find .
 -type f | wc -l }}} in headers/build/[config, os, posix]).
 For {{{ jam -q libroot_build.so }}}, src/build/libroot/atomic.cpp and
 src/build/libroot/byterorder.cpp compile and currently fails on
 errors.cpp.

 Replying to [comment:2 bonefish]:
 > I left out the STL issue. Code that needs a Haiku environment might also
 need the STL. This may or may not be a bigger problem. First of all, the
 STL headers must be prevented from including any build platform POSIX
 headers, so any that aren't in headers/build/posix yet need to be added.
 The purely templatized code that doesn't have an instantiation in
 libstdc++ will probably be fine. Other stuff may clash with the Haiku
 build environment, though (possibly only noticed when the tools using it
 crash). It probably also depends what parts of the STL are actually used.
 So I'm still hoping for the best. If that doesn't work, things get tricky.
 We could either try to provide a mini STL ourselves or build a complete
 one for our Haiku build environment from the build tools sources. Either
 approach may fail as well.

 And that brings us to [http://cgit.haiku-
 os.org/haiku/tree/src/build/libroot/errors.cpp errors.cpp]

 {{{
 #include <map>

 using namespace std;

 static map<int, int> sToHaikuErrorMap;
 static map<int, int> sToHostErrorMap;
 static bool sErrorMapsInitialized = false;
 }}}

 How should we proceed?

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

Other related posts: