Opened 14 years ago

Closed 12 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:
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 14 years ago.
patch for /haiku/haiku
gcc_x86_64.multilib.buildtools.txt (5.6 KB ) - added by nmentley 14 years ago.
patch for /haiku/buildtools
gcc_x86_64.multilib.buildtools.patch (5.6 KB ) - added by nmentley 14 years ago.
added .patch extension to previously uploaded file
gcc_x86_64.multilib.haiku.patch (2.4 KB ) - added by nmentley 14 years ago.
added .patch extension to previously uploaded file

Download all attachments as: .zip

Change History (9)

comment:1 by nmentley, 14 years ago

patch: 01

by nmentley, 14 years ago

patch for /haiku/haiku

by nmentley, 14 years ago

patch for /haiku/buildtools

by nmentley, 14 years ago

added .patch extension to previously uploaded file

by nmentley, 14 years ago

added .patch extension to previously uploaded file

comment:2 by bonefish, 14 years ago

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?

in reply to:  2 comment:3 by korli, 14 years ago

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 by anevilyak, 12 years ago

Owner: changed from bonefish to xyzzy
Status: newassigned

comment:5 by xyzzy, 12 years ago

Resolution: fixed
Status: assignedclosed

Was fixed in btrev43030.

Note: See TracTickets for help on using tickets.