This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM62X: wordsize.h - when using

Part Number: PROCESSOR-SDK-AM62X

Hi Andres (mostlikely) when workining with protobufs and attempting to configure the build space I had difficulty getting the [configure] script to execute properly.

I have a hack to fix it below, but I'm just not sure why __aarch64__ would not be configured properly. Could be that protobufs 3.20.x configure tool is the source of the failure.

See:

#define __aarch64__                                                                                     <-------------------------------------added.

in wordsize.h file below.

But in the related link I was looking at the $CC compiler environment points at the aarch64-oe-linux compiler aarch64-oe-linux-gcc 

Should it by default define __aarch64__. Is the problem with protobufs related to the autogen.sh ?(note this was run after the linux-dev/environment-setup script).

$ echo $CC
aarch64-oe-linux-gcc --sysroot=/home/mnidev/ti-processor-sdk-linux-rt-am62xx-evm-09.02.01.09/linux-devkit/sysroots/aarch64-oe-linux

github.com/.../protobuf.git

commit c18477fab24fee9a667965d9ea537e80f1648698 (HEAD -> 3.20.x, origin/3.10.)

But making this update I corrected the 32bit use errors.

ti-processor-sdk-linux-rt-am62xx-evm-09.02.01.09/linux-devkit/sysroots/aarch64-oe-linux/usr/include/bits

$ cat wordsize.h
/* Determine the wordsize from the preprocessor defines.

Copyright (C) 2016-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.

The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<www.gnu.org/.../>. */

#define __aarch64__                                                                                     <-------------------------------------added.
#if defined (__aarch64__) && defined (__LP64__)
# define __WORDSIZE 64