Opened 7 years ago

Closed 5 years ago

#6306 closed bug (fixed)

x86_64 crosstool multilib support

Reported by: nmentley Owned by: xyzzy
Priority: normal Milestone: R1
Component: Build System Version:
Keywords: x86_64 multilib crosstools Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: x86-64

Description

Currently the x86_64 gcc toolchain for haiku doesn't output i386 binaries correctly and it doesn't build libgcc for i386 by default.

Attachments (4)

gcc_x86_64.multilib.haiku.txt (2.4 KB) - added by nmentley 7 years ago.
patch for /haiku/haiku
gcc_x86_64.multilib.buildtools.txt (5.6 KB) - added by nmentley 7 years ago.
patch for /haiku/buildtools
gcc_x86_64.multilib.buildtools.patch (5.6 KB) - added by nmentley 7 years ago.
added .patch extension to previously uploaded file
gcc_x86_64.multilib.haiku.patch (2.4 KB) - added by nmentley 7 years ago.
added .patch extension to previously uploaded file

Download all attachments as: .zip

Change History (9)

comment:1 Changed 7 years ago by nmentley

  • Has a Patch set

Changed 7 years ago by nmentley

patch for /haiku/haiku

Changed 7 years ago by nmentley

patch for /haiku/buildtools

Changed 7 years ago by nmentley

added .patch extension to previously uploaded file

Changed 7 years ago by nmentley

added .patch extension to previously uploaded file

comment:2 follow-up: Changed 7 years ago by bonefish

Thanks! Applied the buildtools patch in hrev37521 and the build/scripts/build_cross_tools_gcc4 patch in hrev37522. Regarding the build/jam/BuildSetup patch, the HAIKU_BOOT_*FLAGS part is OK I guess, but I have questions concerning the other flags:

  • You set the HAIKU_KERNEL_PIC_*FLAGS. Is there a reason why these flags are only applied to kernel add-ons, but not the kernel or the boot loader?
  • I don't find a lot of documentation for -z max-page-size=0x1000. What effect has it ("Set the emulation maximum page size to ..." -- yes, but what does that mean?) and why is it needed?

comment:3 in reply to: ↑ 2 Changed 7 years ago by korli

Replying to bonefish:

  • I don't find a lot of documentation for -z max-page-size=0x1000. What effect has it ("Set the emulation maximum page size to ..." -- yes, but what does that mean?) and why is it needed?

From what I read, it seems the default page size for ld x86-64 is 2MB, which could then result in big binaries, hence the max page size of 4KB. Travis maybe could confirm.

comment:4 Changed 5 years ago by anevilyak

  • Owner changed from bonefish to xyzzy
  • Status changed from new to assigned

comment:5 Changed 5 years ago by xyzzy

  • Resolution set to fixed
  • Status changed from assigned to closed

Was fixed in btrev43030.

Note: See TracTickets for help on using tickets.