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

How to compile a cross-platform jar locally #59

Open
cuibo01 opened this issue Jan 14, 2023 · 0 comments
Open

How to compile a cross-platform jar locally #59

cuibo01 opened this issue Jan 14, 2023 · 0 comments

Comments

@cuibo01
Copy link

cuibo01 commented Jan 14, 2023

https://github.com/ververica/frocksdb/blob/FRocksDB-6.20.3/java/RELEASE.md
I compiled frocksdb on centos7.6 according to the document, but encountered many errors.

First, I ran the make jclean clean rocksdbjavastaticreleasedocker command and encountered the following error
CFLAGS='-fPIC ' LDFLAGS=' ' ./configure --static --archs='-arch x86_64' && make
Checking for gcc...
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
** ./configure aborting.

and then delete all -arch x86_64, and encountered the error
docker run --rm --name rocksdb_linux_x86-be --platform linux/386 --attach stdin --attach stdout --attach stderr --volume /root/.m2:/root/.m2:ro --volume pwd:/rocksdb-host:ro --volu-java-target --env DEBUG_LEVEL=0 evolvedbinary/rocksjava:centos6_x86-be /rocksdb-host/java/crossbuild/docker-build-linux-centos.sh
unknown flag: --platform

Is there any detailed document or CI for reference? thank you

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