[haiku-bugs] Re: [Haiku] #15682: libroot build broken for gcc2

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 07 Feb 2020 21:45:02 -0000

#15682: libroot build broken for gcc2
---------------------------------+----------------------------
   Reporter:  korli              |      Owner:  nobody
       Type:  bug                |     Status:  new
   Priority:  normal             |  Milestone:  Unscheduled
  Component:  System/libroot.so  |    Version:  R1/Development
 Resolution:                     |   Keywords:
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  All
---------------------------------+----------------------------
Comment (by ambroff):

 This happened in my cross-compilation attempt today as well, using

 {{{
 ../configure ... --build-cross-tools x86_gcc2 ../../buildtools
 }}}

 The problem is this block here from
 src/system/libroot/posix/musl/math/x86/Jamfile:

 {{{
 if $(architecture) = x86_gcc2 {
     # GCC 2 miscompiles some of the files in here, so we use GCC 8.
     original_TARGET_CC_x86_gcc2 = $(TARGET_CC_x86_gcc2) ;
     TARGET_CC_x86_gcc2 = $(TARGET_CC_x86) -Wa,-mrelax-relocations=no -Wno-
 unused-but-set-variable ;
 }
 }}}

 If you look in generated.x86_gcc2/build/BuildConfig, the only packaging
 arch is only set to x86_gcc2

 {{{
 HAIKU_PACKAGING_ARCHS           ?=  x86_gcc2 ;
 }}}

 So there is no secondary arch. I haven't completely untangled the
 evaluation from TARGET_CC_x86_gcc2 and TARGET_CC_x86, but I suspect that
 since the x68 arch isn't defined as a secondary arch that TARGET_CC_x86
 will evaluate to empty.

 I'll have more time after work to dig into this.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15682#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: