[haiku-bugs] Re: [Haiku] #7792: error when compiling Haiku with gcc 4.5.3

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Tue, 12 Jul 2011 13:33:42 -0000

#7792: error when compiling Haiku with gcc 4.5.3
----------------------------+----------------------------
   Reporter:  diger         |      Owner:  korli
       Type:  bug           |     Status:  closed
   Priority:  normal        |  Milestone:  R1
  Component:  Build System  |    Version:  R1/Development
 Resolution:  invalid       |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------
Changes (by bonefish):

 * status:  assigned => closed
 * resolution:   => invalid


Comment:

 Replying to [comment:13 zooey]:
 > Replying to [comment:6 siarzhuk]:
 > > It is not cross-compilation - the host system is Haiku. May be just
 replace libstdc++ in system libs with one from 4.5.3 tools?
 >
 > You can't, since the gcc-4.5.3 optional package doesn't contain
 libstd++.so. That is a bug, since the respective headers are included in
 that package and the mismatch between headers and shared library causes
 the problem in the first place.

 I wouldn't say that this is a bug. The gcc-4.5.3 optional package only
 works on a Haiku system built with that compiler. Installing it on a
 mismatching Haiku is a user error.

 Whether the status quo is desirable is another question. We include the
 C++ runtime and STL in the base system, since it is needed by many base
 system components. We might want to pull it out of both the base system
 and the compiler package.

 > Never mind cross-compilation, an even worse problem exists with a Haiku
 host: when building Haiku on Haiku, libstdc++.so is apparently never being
 built at all, the one found on the host system is instead copied to the
 target. That's why the library is never being updated.

 It's actually the compiler's libstdc++, which, when using the compiler
 from the optional package, symlinks to the one in the system (which, given
 that compiler and system should match, is correct). When cross-compiling
 (from Haiku) -- which one has to do when desiring to build Haiku with a
 different compiler -- the cross-compiled library will be used.

 Closing as invalid (user error).

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

Other related posts: