[haiku-bugs] Re: [Haiku] #14842: Error building bootstraping libicuio while cross-compiling ARM on Ubuntu 18.04

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 15 Feb 2019 14:35:26 -0000

#14842: Error building bootstraping libicuio while cross-compiling ARM on Ubuntu
18.04
----------------------------+----------------------------
   Reporter:  pemdp         |      Owner:  bonefish
       Type:  bug           |     Status:  new
   Priority:  normal        |  Milestone:  Unscheduled
  Component:  Build System  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  arm
----------------------------+----------------------------

Comment (by kallisti5):

 ok... PIC is *definitely* the default in our toolchain (as expected)

 {{{
 ./arm-unknown-haiku-g++ -dM -E - < /dev/null | grep PIC
 #define __PIC__ 2
 ./arm-unknown-haiku-g++ -fPIC -dM -E - < /dev/null | grep PIC
 #define __PIC__ 2
 ./arm-unknown-haiku-g++ -fpic -dM -E - < /dev/null | grep PIC
 #define __PIC__ 1
 ./arm-unknown-haiku-g++ -fno-pic -dM -E - < /dev/null | grep PIC
 (none)
 }}}

 This matches the behaviour in:
 https://www.remlab.net/op/pic-vs-pic.shtml

 As a bonus note, gcc in the bootstrap container also defaults to PIC
 {{{
 g++ -dM -E - < /dev/null | grep PIC
 #define __PIC__ 2
 }}}

 So.. the PIC warning's recommendation is *definitely* a false report.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14842#comment:11>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: