Hello
Thanks for you inputs. I have created an issue in the upstream.
https://gitlab.com/ubports/development/core/ciborium/-/issues/15

On 23/07/25 23:13, Hector Oron wrote:
Hello,

El mié, 23 jul 2025 a las 19:09, tshah (<ts...@linux.ibm.com>) escribió:
Tried reproducing the issue of ciborium build failure on ppc64el. On checking 
the logs minutely, got to know that the issue is in one of the source file 
cdata.go. There is a function declared with no definition: func Addrs() 
(uintptr, uintptr).

This patch fixes a build failure of the Ciborium package on the ppc64el 
architecture. The qml.v1/cdata/cdata.go  file defines the Addrs() function, 
which appears to rely on architecture-specific logic that is not supported on 
ppc64el. Attempting to compile on ppc64el results in an error due to this 
missing implementation.

To resolve this, I have:

Added a Go build tag to cdata.go to exclude it from ppc64el builds.

Created a new file cdata_stub.go, which is only built on ppc64el, and provides 
a stub Addrs() function returning default zero values.

This allows the package to compile successfully on ppc64el, while retaining the 
original behavior for other platforms.

The stub ensures compatibility without introducing functional changes or 
affecting other architectures. I have attached the patch in this mail.

Could you please consider bringing this upstream at
https://gitlab.com/ubports/development/core/ciborium/-/issues if not
done already?

Thanks for your work on this.

Regards

Reply via email to