Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#8242 closed enhancement (fixed)

multilib problem when building m68k buildtools on Linux 32-bit

Reported by: luroh Owned by: mmu_man
Priority: normal Milestone: R1
Component: Build System Version: R1/Development
Keywords: Cc: umccullough
Blocked By: Blocking:
Has a Patch: no Platform: m68k

Description

IRC user OmniMancer found the problem why the m68k buildtools fail to build on 32-bit Linux systems; 'configure' tries to create some 64-bit libraries. This can be worked around by installing, in my case, the libc6-dev-amd64 meta package, but that's not a very elegant solution.

Google tells me there might be a --disable-multilib option available that we possibly could pass to GCC somehow.

Change History (8)

comment:1 Changed 8 years ago by umccullough

Cc: umccullough added

comment:2 Changed 7 years ago by luroh

Owner: changed from bonefish to mmu_man
Status: newassigned

Still here in 44022:

checking if gcc  -m64 supports -fno-rtti -fno-exceptions... no
checking for gcc  -m64 option to produce PIC... -fPIC -DPIC
checking if gcc  -m64 PIC flag -fPIC -DPIC works... yes
checking if gcc  -m64 static flag -static works... no
checking if gcc  -m64 supports -c -o file.o... yes
checking if gcc  -m64 supports -c -o file.o... (cached) yes
checking whether the gcc  -m64 linker (ld) supports shared libraries... yes
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-zlib] Error 1

comment:3 Changed 7 years ago by diver

hrev43954 mentions some multilib problem with x86_64.

comment:4 Changed 7 years ago by korli

Resolution: fixed
Status: assignedclosed

Fixed in hrev44031. This adds a dependency on zlib on the host for GCC4 only.

comment:5 Changed 7 years ago by luroh

Thanks korli. I have added zlib1g-dev to the build guide here: https://www.haiku-os.org/guides/building/pre-reqs Please have a look to see if it makes sense.

comment:6 Changed 7 years ago by mmu_man

Good job, one less !

comment:7 in reply to:  5 Changed 7 years ago by korli

Replying to luroh:

Thanks korli. I have added zlib1g-dev to the build guide here: https://www.haiku-os.org/guides/building/pre-reqs Please have a look to see if it makes sense.

zlib1g-dev is the name of the zlib dev package for some Linux distro, it might not apply to BSD or OS/X for instance. Maybe keep it generic in the section "Requirements for compiling the build tools", "zlib development" and be more specific sections.

comment:8 Changed 7 years ago by luroh

Thanks for the clarifications, I'll update the guide accordingly.

Note: See TracTickets for help on using tickets.