Opened 13 years ago

Closed 13 years ago

Last modified 13 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:
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 by umccullough, 13 years ago

Cc: umccullough added

comment:2 by luroh, 13 years ago

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 by diver, 13 years ago

hrev43954 mentions some multilib problem with x86_64.

comment:4 by korli, 13 years ago

Resolution: fixed
Status: assignedclosed

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

comment:5 by luroh, 13 years ago

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 by mmu_man, 13 years ago

Good job, one less !

in reply to:  5 comment:7 by korli, 13 years ago

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 by luroh, 13 years ago

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

Note: See TracTickets for help on using tickets.