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

nativeLink failed on ubuntu #160

Open
omathe opened this issue Aug 15, 2022 · 0 comments
Open

nativeLink failed on ubuntu #160

omathe opened this issue Aug 15, 2022 · 0 comments

Comments

@omathe
Copy link

omathe commented Aug 15, 2022

Hello,

I launch the command gradle -Pandroid nativeLink

it failed

[lun. août 15 15:48:05 CEST 2022][INFO] Substrate is tested with the Gluon's GraalVM build which you can find at https://github.com/gluonhq/graal/releases.
While you can still use other GraalVM builds, there is no guarantee that these will work properly with Substrate
[lun. août 15 15:48:05 CEST 2022][INFO] ==================== LINK TASK ====================
[lun. août 15 15:48:06 CEST 2022][SEVERE] Process link failed with result: 1
Check the log files under /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/log
And please check https://docs.gluonhq.com/ for more information.
[lun. août 15 15:48:06 CEST 2022][INFO] Logging process [link] to file: /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/log/process-link-1660571286024.log
[lun. août 15 15:48:06 CEST 2022][SEVERE] Linking failed.
Check the log files under /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/log
And please check https://docs.gluonhq.com/ for more information.

logs ===>

Process

link

Command Line

/home/olivier/.gluon/substrate/Android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/home-mobile/dummy.o /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/home-mobile/launcher.o /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/home-mobile/javafx_adapter.o /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/home-mobile/touch_events.o /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/home-mobile/glibc_shim.o /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/home-mobile/attach_adapter.o /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/home-mobile/logger.o /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/tmp/SVM-1660569507386/fr.ikisource.oma.home.mobile.homegui.o -ljava -lnio -lzip -lnet -lprefs -ljvm -lfdlibm -lz -ldl -lj2pkcs11 -ljaas -lextnet -target aarch64-linux-android21 -fPIC -Wl,--rosegment,--gc-sections,-z,noexecstack -shared -landroid -llog -lffi -llibchelper -static-libstdc++ -Wl,--whole-archive -lprism_es2_monocle -lglass_monocle -ljavafx_font_freetype -ljavafx_iio -Wl,--no-whole-archive -lGLESv2 -lEGL -lfreetype -o /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/libhome-mobile.so -L/home/olivier/.gluon/substrate/javafxStaticSdk/19-ea+8/android-aarch64/sdk/lib -L/opt/graalvm/ce-java17-22.1.0/lib/svm/clibraries/27/android-aarch64 -L/home/olivier/.gluon/substrate/javaStaticSdk/18-ea+prep18-8/android-aarch64/staticjdk/lib/static -L/media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/lib -Wl,--whole-archive /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/lib/libdisplay.a /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/lib/liblifecycle.a /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/lib/libstatusbar.a /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/lib/libstorage.a /media/DATA/dev/IdeaProjects/home/home-mobile/build/gluonfx/aarch64-android/gvm/lib/libutil.a -Wl,--no-whole-archive

Output

/home/olivier/.gluon/substrate/Android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: unrecognized option '--rosegment'
/home/olivier/.gluon/substrate/Android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: use the --help option for usage information
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Result

result: 1

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