Skip to content

[Build]: Failure to build on ARM #7012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bendrissou opened this issue Jan 24, 2025 · 3 comments
Open

[Build]: Failure to build on ARM #7012

bendrissou opened this issue Jan 24, 2025 · 3 comments

Comments

@bendrissou
Copy link

Operating System

Ubuntu 20.04.6

Compiler

clang version 10.0.0

ChakraCore Version

ch version 1.13.0.0-beta

Compiler output

-- Configuring done
-- Generating done
-- Build files have been written to: /home/chakracore/program/out/Release
Scanning dependencies of target Chakra.Pal
[  0%] Building CXX object pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o
In file included from /home/chakracore/program/pal/src/cruntime/file.cpp:23:
In file included from /home/chakracore/program/pal/src/include/pal/palinternal.h:552:
In file included from /usr/include/stdio.h:33:
/usr/lib/llvm-10/lib/clang/10.0.0/include/stddef.h:46:23: error: typedef redefinition with different types ('unsigned long' vs 'unsigned int')
typedef __SIZE_TYPE__ size_t;
                      ^
/home/chakracore/program/pal/inc/pal_mstypes.h:538:22: note: previous definition is here
typedef unsigned int size_t;
                     ^
1 error generated.
make[2]: *** [pal/src/CMakeFiles/Chakra.Pal.dir/build.make:63: pal/src/CMakeFiles/Chakra.Pal.dir/cruntime/file.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:743: pal/src/CMakeFiles/Chakra.Pal.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
See error details above. Exit code was 2

Additional Context

Command:

./build.sh --arch=arm

@ppenzin
Copy link
Member

ppenzin commented Jan 25, 2025

Nice catch, also weird that PAL is using unsigned int for size_t.

@ppenzin
Copy link
Member

ppenzin commented Jan 25, 2025

I don't have an Arm32 device to confirm though, not sure how to proceed.

@rhuanjl
Copy link
Collaborator

rhuanjl commented Feb 22, 2025

I don't think there's ever been an Arm Linux build; (unless perhaps as a brief experiment ages ago) this isn't a bug it's porting work that's not been done.

When I was working on the Apple Silicon port I half hoped to get Ubuntu Arm working at the same time but I had a lot of difficulty setting up a working dev environment and gave up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants