Skip to contentSkip to conversation

Error building protobuf for 32 bit target (i386) on 64 bit host

Buildroot Tal Lubko 3 participants 3 messages Mar 4, 2021 – Mar 5, 2021 1 message not in the archive

lore
Share & tools
lore
#2 lore raw
Quoted 2 lines · Tal Lubko via buildroot

Hi
When trying to build protobuf for i386 on 64 bit host I get the following error:...ld: /usr/gcc-6.2/lib/../lib64/libatomic.so: error adding symbols: file in wrong format

This looks like it's using the host compiler to build a target package. That is
not good.

Surprising, though, since this is a configuration we definitely test, and we've
never had any protobuf failures in the autobuilders [1]. Do you have local modifications that could cause this?

Can you share a defconfig that reproduces the issue, and a more extensive build
log (particularly the command used for the configure and build steps of protobuf).

Regards,
Arnout

[1] http://autobuild.buildroot.net/?reason=protobuf

Quoted 9 lines

Any suggestions?
Thanks,Tal

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

Hello,

El jue, 4 mar 2021 a las 21:54, Arnout Vandecappelle (<[email protected]>) escribi?:

Quoted 14 lines · Tal Lubko via buildroot
Quoted 2 lines

Hi
When trying to build protobuf for i386 on 64 bit host I get the following error:...ld: /usr/gcc-6.2/lib/../lib64/libatomic.so: error adding symbols: file in wrong format

This looks like it's using the host compiler to build a target package. That is
not good.

Surprising, though, since this is a configuration we definitely test, and we've
never had any protobuf failures in the autobuilders [1]. Do you have local modifications that could cause this?

I can confirm that an i386 defconfig with protobuf builds fine on a 64-bit host, at least in my situation.
My guess is either a local change, or a change in configuration without starting from a clean build.

Best regards,
Thomas