Hello,
Thank you so much for your help. I am trying to cross compile it for AARCH64.
The machine where the yocto libraries are is an AMD64 machine. The only changes
I did to my working project was to add the following lines to add this layer in
the list of layer for KAS to include
.:
meta-virtualization:
url: https://github.com/lgirdk/meta-virtualization.git
refspec: kirkstone
layers:
.:
meta-openembedded:
url: https://git.openembedded.org/meta-openembedded
refspec: 0b78362654262145415df8211052442823b9ec9b
layers:
meta-networking:
meta-oe:
meta-perl:
meta-python:
meta-filesystems:
Both the builds of CNI and PODMAN fail. This tells me that it is not a recipe
specific problem but a more generic problem. We are using kirkstone, so the
version of GO should be the default version that comes with kirkstone
Thanks
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
From: Andrei Gherzan<mailto:[email protected]>
Sent: Monday, July 18, 2022 2:36 AM
To: Pra.. Dew..<mailto:[email protected]>; Bruce
Ashfield<mailto:[email protected]>
Cc: meta-virtualization<mailto:[email protected]>
Subject: RE: [meta-virtualization] pthreads dependency error in building podman
Hi,
What machine are you building this for? I'll try to reproduce.
Andrei Gherzan
Email: [email protected]
From:Pra.. Dew.. <[email protected]>
To:Bruce Ashfield <[email protected]>;Andrei Gherzan
<[email protected]>
Cc:meta-virtualization <[email protected]>
Date:2022-07-18 07:03:21
Subject:RE: [meta-virtualization] pthreads dependency error in building podman
Thank you so much Bruce!
1. This is the commit id that I am using. I think this is from Kirkstone -
d81de7af35cc4ac803c1567a8af1c5725f80ef7d
2. However, I am getting the same errors for podman
# github.com/containers/podman/v4/cmd/rootlessport
| net(.text._cgo_3c1cec0c9a4e_C2func_getaddrinfo): unknown symbol
__errno_location in callarm64
| net(.text._cgo_3c1cec0c9a4e_C2func_getaddrinfo): unknown symbol getaddrinfo
in callarm64
| net(.text._cgo_3c1cec0c9a4e_Cfunc_freeaddrinfo): unknown symbol freeaddrinfo
in callarm64
| net(.text._cgo_3c1cec0c9a4e_Cfunc_gai_strerror): unknown symbol gai_strerror
in callarm64
| runtime/cgo(.text.fatalf): unknown symbol fputs in callarm64
| runtime/cgo(.text.fatalf): unknown symbol __vfprintf_chk in callarm64
| runtime/cgo(.text.fatalf): unknown symbol fputc in callarm64
| runtime/cgo(.text.x_cgo_notify_runtime_init_done): unknown symbol
pthread_mutex_lock in callarm64
| runtime/cgo(.text.x_cgo_notify_runtime_init_done): unknown symbol
pthread_cond_broadcast in callarm64
| runtime/cgo(.text.x_cgo_notify_runtime_init_done): unknown symbol
pthread_mutex_unlock in callarm64
| runtime/cgo(.text._cgo_try_pthread_create): unknown symbol pthread_create in
callarm64
| runtime/cgo(.text._cgo_try_pthread_create): unknown symbol pthread_detach in
callarm64
| runtime/cgo(.text._cgo_try_pthread_create): unknown symbol __stack_chk_fail
in callarm64
| runtime/cgo(.text._cgo_try_pthread_create): unknown symbol nanosleep in
callarm64
| runtime/cgo(.text.threadentry): unknown symbol free in callarm64
| runtime/cgo(.text._cgo_sys_thread_start): unknown symbol sigfillset in
callarm64
| runtime/cgo(.text._cgo_sys_thread_start): unknown symbol pthread_sigmask in
callarm64
| runtime/cgo(.text._cgo_sys_thread_start): unknown symbol pthread_attr_init in
callarm64
| runtime/cgo(.text._cgo_sys_thread_start): unknown symbol
pthread_attr_getstacksize in callarm64
| runtime/cgo(.text._cgo_sys_thread_start): unknown symbol pthread_sigmask in
callarm64
| runtime/cgo(.text._cgo_sys_thread_start): unknown symbol strerror in callarm64
|
/home/work/azure_repos/azure-sphere-nre-yocto/build/tmp-qemuarm64-azure-sphere/work/cortexa57-azuresphere-linux/podman/4.0.1+gitAUTOINC+717edd7b84-r0/recipe-sysroot-native/usr/lib/aarch64-azuresphere-linux/go/pkg/tool/linux_amd64/link:
too many errors
| make: *** [Makefile:398: bin/rootlessport] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task
(/home/work/azure_repos/azure-sphere-nre-yocto/work/meta-virtualization/recipes-containers/podman/podman_git.bb:do_compile)
Sent from
Mail<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986&data=05%7C01%7C%7C01fbbe608e754273e75608da68a0fe5d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637937337928568167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=TJzAgxLHmv2VVo%2BbEKpzsHAb5EaRfzQFTYizuiurRbA%3D&reserved=0>
for Windows
From: Bruce Ashfield<mailto:[email protected]>
Sent: Sunday, July 17, 2022 11:42 AM
To: Pra.. Dew..<mailto:[email protected]>; Andrei
Gherzan<mailto:[email protected]>
Cc:
[email protected]<mailto:[email protected]>
Subject: Re: [meta-virtualization] pthreads dependency error in building podman
On Sat, Jul 16, 2022 at 2:50 AM Pra.. Dew.. <[email protected]> wrote:
>
>
>
>
>
> I added the meta-virtualization layer to a Yocto (Kirkstone) project using
> KAS. When I try to compile the project I get the following errors. I was
> hoping that the layer should build cleanly since I have not modified anything
> in the layer. Tanks for all your guidance and help.
>
>
master looks like it has a problem with a patch I recently merged from
Andrei, but I've fixed that here and pushed a change.
kirskstone doesn't have that change, so should be fine. I'm getting
patches for podman on kirkstone, so there are people building and
running without issues.
Bruce
>
> buM_iMH1g6GesQ1UE_c\n"
>
> | HASH[link github.com/containernetworking/cni/cnitool]: "packagefile
> github.com/containernetworking/cni/pkg/types/020=oY1xAj97Tqs0jbqIHGIg\n"
>
> | HASH[link github.com/containernetworking/cni/cnitool]:
> 803d1b283174051eaa86b7a946484a68a9626fcebff229bc3c414c4222c4badc
>
>
>
> # github.com/containernetworking/cni/cnitool
>
> | runtime/cgo(.text.fatalf): unknown symbol fputs in callarm64
>
> | runtime/cgo(.text.fatalf): unknown symbol __vfprintf_chk in callarm64
>
> | runtime/cgo(.text.fatalf): unknown symbol fputc in callarm64
>
> | runtime/cgo(.text.x_cgo_notify_runtime_init_done): unknown symbol
> pthread_mutex_lock in callarm64
>
> | runtime/cgo(.text.x_cgo_notify_runtime_init_done): unknown symbol
> pthread_cond_broadcast in callarm64
>
> | runtime/cgo(.text.x_cgo_notify_runtime_init_done): unknown symbol
> pthread_mutex_unlock in callarm64
>
> | runtime/cgo(.text._cgo_try_pthread_create): unknown symbol pthread_create
> in callarm64
>
> | runtime/cgo(.text._cgo_try_pthread_create): unknown symbol pthread_detach
> in callarm64
>
> | runtime/cgo(.text._cgo_try_pthread_create): unknown symbol __stack_chk_fail
> in callarm64
>
> | runtime/cgo(.text._cgo_try_pthread_create): unknown symbol nanosleep in
> callarm64
>
> | runtime/cgo(.text.threadentry): unknown symbol free in callarm64
>
> | runtime/cgo(.text._cgo_sys_thread_start): unknown symbol sigfillset in
> callarm64
>
> | runtime/cgo(.text._cgo_sys_thread_start): unknown symbol pthread_sigmask in
> callarm64
>
> | runtime/cgo(.text._cgo_sys_thread_start): unknown symbol pthread_attr_init
> in callarm64
>
> | runtime/cgo(.text._cgo_sys_thread_start): unknown symbol
> pthread_attr_getstacksize in callarm64
>
> | runtime/cgo(.text._cgo_sys_thread_start): unknown symbol pthread_sigmask in
> callarm64
>
> | runtime/cgo(.text._cgo_sys_thread_start): unknown symbol strerror in
> callarm64
>
> | runtime/cgo(.text._cgo_sys_thread_start): unknown symbol __stack_chk_fail
> in callarm64
>
> | runtime/cgo(.text.x_cgo_init): unknown symbol malloc in callarm64
>
> | runtime/cgo(.text.x_cgo_init): unknown symbol __errno_location in callarm64
>
> | runtime/cgo(.text.x_cgo_init): unknown symbol strerror in callarm64
>
>
>
> Sent from Mail for Windows
>
>
>
>
>
>
>
>
--
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7468):
https://lists.yoctoproject.org/g/meta-virtualization/message/7468
Mute This Topic: https://lists.yoctoproject.org/mt/92416761/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-