Skip to contentSkip to conversation

ACE + TAO with buildroot - GLIBC_2.28 not found

Buildroot Earthquake 2 participants 3 messages Apr 29, 2022 – May 2, 2022

lore
Share & tools
lore

Earthquake

author
#0 lore raw

Hi,

intergrating ACE was successfull with

https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

ACE lib is built.

When I integrate TAO in the ace.mk

TAO_LIBRARIES += TAO_IDL
TAO_LIBRARIEs += tao/PortableServer
$(foreach lib,$(TAO_LIBRARIES), ACE_ROOT="$(@D)" $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/TAO/$(lib) ACE_ROOT="$(@D)" TAO_ROOT="$(@D)/TAO"  all )

The tao_idl complier will be built.

The PortableServer uses the created tao_idl complier but exit with:

../../../bin/tao_idl: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by ../../../lib/libACE.so.7.0.2) ../../../bin/tao_idl: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by ../../../lib/libACE.so.7.0.2)

Wrong way to call?

Thanks for support,

Alex

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#1 lore raw
Quoted 15 lines · Earthquake

Hi,

intergrating ACE was successfull with

https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

ACE lib is built.

When I integrate TAO in the ace.mk

TAO_LIBRARIES += TAO_IDL
TAO_LIBRARIEs += tao/PortableServer
$(foreach lib,$(TAO_LIBRARIES), ACE_ROOT="$(@D)" $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/TAO/$(lib) ACE_ROOT="$(@D)" TAO_ROOT="$(@D)/TAO"  all )

Quoted 6 lines

The tao_idl complier will be built.

The PortableServer uses the created tao_idl complier but exit with:

../../../bin/tao_idl: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by ../../../lib/libACE.so.7.0.2) ../../../bin/tao_idl: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by ../../../lib/libACE.so.7.0.2)

You created tao_idl for the target, but are trying to run it on the host. The
libc versions on target and host are not compatible.

This probably means that the tao build system is not cross-compilation
friendly. Perhaps it does support cross-compilation but you need some other option to pass the host compiler (we pass CC_FOR_BUILD="$(HOSTCC)" because CC_FOR_BUILD is the variable used by autotools, but with a custom Makefile they may expect a different variable).

If it really doesn't support cross-compilation, then you should make a
host-ace package that builds tao_idl and installs it in $(HOST_DIR)/bin, and then call that one.

Regards,
Arnout

Quoted 4 lines

Wrong way to call?

Quoted 8 lines

Thanks for support,

Alex

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

author
#2 lore raw

Hi Arnout,

thanks for your answer.

Am 30.04.2022 um 12:31 schrieb Arnout Vandecappelle:

Quoted 20 lines · Earthquake
Quoted 17 lines

Hi,

intergrating ACE was successfull with

https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

ACE lib is built.

When I integrate TAO in the ace.mk

TAO_LIBRARIES += TAO_IDL
TAO_LIBRARIEs += tao/PortableServer
$(foreach lib,$(TAO_LIBRARIES), ACE_ROOT="$(@D)" $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/TAO/$(lib) ACE_ROOT="$(@D)" TAO_ROOT="$(@D)/TAO"  all )

The tao_idl complier will be built.

Quoted 8 lines
Quoted 4 lines

The PortableServer uses the created tao_idl complier but exit with:

../../../bin/tao_idl: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by ../../../lib/libACE.so.7.0.2) ../../../bin/tao_idl: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by ../../../lib/libACE.so.7.0.2)

 You created tao_idl for the target, but are trying to run it on the host. The libc versions on target and host are not compatible.

 This probably means that the tao build system is not cross-compilation friendly. Perhaps it does support cross-compilation but you need some other option to pass the host compiler (we pass CC_FOR_BUILD="$(HOSTCC)" because CC_FOR_BUILD is the variable used by autotools, but with a custom Makefile they may expect a different variable).

TAO supports cross compile.
TAO itself allows to set the location for the compiler.
I have to write a host-ace.mk bacause for cross compilation the tao_idl compiler must be built/available for the host (the buildroot host).

Setting the compiler path in TAO platform_macros.GNU file:

TAO_IDL := $(HOST_ROOT)/bin/tao_idl
TAO_IDLFLAGS += -g $(HOST_ROOT)/bin/gperf
TAO_IDL_DEP := $(HOST_ROOT)/bin/tao_idl$(EXEEXT)

Can I use a buildroot variables that contains the host path?

Quoted 2 lines

 If it really doesn't support cross-compilation, then you should make a host-ace package that builds tao_idl and installs it in $(HOST_DIR)/bin, and then call that one.

I there a host package template that I can use for creating the host-ace.mk?

Quoted 11 lines

 Regards,
 Arnout

Quoted 8 lines

Wrong way to call?

Thanks for support,

Alex

Quoted 8 lines
Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Thank´s.

Best regards,

Alex

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot