Skip to content
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

Cross build from RasPi5/Linux/Aarch64 to -m=rv64le FAILS [zlib] #918

Open
KenDickey opened this issue Feb 17, 2025 · 2 comments
Open

Cross build from RasPi5/Linux/Aarch64 to -m=rv64le FAILS [zlib] #918

KenDickey opened this issue Feb 17, 2025 · 2 comments

Comments

@KenDickey
Copy link

Greetings,

It has been several years since I used Chez and am interested in a build for StarFive 2 [RV64G].

I am probably doing something incredibly stupid and would appreciate any help.

Thanks!
-KenD [Ken(dot)Dickey(at)Whidbey(dot)COM]

rv64-make.out.txt

=============
RasPiOS5:Arm64:~/Scheme/ChezScheme >>> ./configure -m=rv64le

Configuring for rv64le, and will create boot files via pb

RasPiOS5:Arm64:~/Scheme/ChezScheme >>> make

bin/zuo rv64le MAKE="make"
checking boot files for rv64le against pb
... ... ...
running pb/bin/pb/scheme to build xc-rv64le/boot/rv64le/heapcheck.inc
cd rv64le/zlib && ./configure
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
** ./configure aborting.
libz configure failed
in build-one
in loop
in module->hash
make: *** [Makefile:8: build] Error 1

@KenDickey
Copy link
Author

Ah. "configure.log" shows:

gcc -c -mabi=lp64d -O2 ztest169441.c
gcc: error: unrecognized argument in option ‘-mabi=lp64d’
gcc: note: valid arguments to ‘-mabi=’ are: ilp32 lp64; did you mean ‘lp64’?
(exit code 1)

Perhaps a cross-compile tool issue?

@KenDickey
Copy link
Author

tried
./configure --cross -m=trv64le CFLAGS="-march=rv64gc" CC_FOR_BUILD=gcc
but no joy.

However, I discovered that you cleverly used the pb Scheme interpreter to bootstrap natively on RV64GC ! 8^| 8^O 8^) ;^)

So I now have Chez Scheme working on a StarFive Visionfive 2.

Thanks for all the great work!!!
-KenD

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

No branches or pull requests

1 participant