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

xidel on arm aarch64 #87

Closed
6F3ryYosFLJU opened this issue Mar 25, 2022 · 6 comments
Closed

xidel on arm aarch64 #87

6F3ryYosFLJU opened this issue Mar 25, 2022 · 6 comments

Comments

@6F3ryYosFLJU
Copy link

Hello,

I need to run my program on aarch64 arm machine, but the current build for linuxarm is on armhf, therefore no way to run the program. I tried to build the program myself, but hit some problems.

bash-5.1# ./build.sh
-- Building...
xquery__parse.pas(35,37) Fatal: Can't find unit strutils used by xquery__parse
Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode
bash-5.1# uname -a
Linux eec827aa2463 5.15.30-0-virt #1-Alpine SMP Wed, 23 Mar 2022 11:38:35 +0000 aarch64 Linux
bash-5.1#

Is it possible to have build on arm aarch64 as well? Or can i get some insight on how to compile?

Thanks in advance.

@benibela
Copy link
Owner

benibela commented Apr 3, 2022

xquery__parse.pas(35,37) Fatal: Can't find unit strutils used by xquery__parse

That unit is part of FreePascal

If it is not found, it is not installed properly. It needs to have search paths in fpc.cfg

Is it possible to have build on arm aarch64 as well? Or can i get some insight on how to compile?

https://sourceforge.net/projects/videlibri/files/Xidel/Xidel%20development/

@6F3ryYosFLJU
Copy link
Author

Hello, thanks for the reply. Do you mean there is already build on arm aarch64? I only see xidel-0.9.9.20220131.8335.4e6fcea4d02e.linuxarm.tar.gz which is 32-bit ARM armhf. I cannot make it to work on arm aarch64. (The platform I use is oracle cloud arm platform which is 64-bit aarch64, which armhf program cannot not run.

@benibela
Copy link
Owner

benibela commented Apr 3, 2022

Do you mean there is already build on arm aarch64?

Kind of. There is one for Android aarch64. I did not see you are on Linux. They are basically the same, although the Android one probably won't find the linker/libc and not run on Linux

@6F3ryYosFLJU
Copy link
Author

thanks for the reply. I try to work on the android aarch64 image, it seems it require some library of android (liblog.so).

% ldd ./xidel
/system/bin/linker64 (0xffffa89e5000)
libc.so => /system/bin/linker64 (0xffffa89e5000)
Error loading shared library liblog.so: No such file or directory (needed by ./xidel)
libdl.so => /system/bin/linker64 (0xffffa89e5000)
Error relocating ./xidel: __system_property_get: symbol not found
Error relocating ./xidel: __android_log_write: symbol not found
Error relocating ./xidel: __libc_init: symbol not found

@benibela
Copy link
Owner

I have uploaded a new one

Error: /usr/bin/ppcarm returned an error exitcode

That might be the problem. ppcarm is the 32-bit compiler. The 64-bit compiler is called like ppca64. But build.sh calls fpc not ppc*

@6F3ryYosFLJU
Copy link
Author

Thanks very much!!! It works! Thanks!

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

2 participants