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 compile not working #13

Open
Flinkbaum opened this issue Mar 31, 2022 · 1 comment
Open

Cross compile not working #13

Flinkbaum opened this issue Mar 31, 2022 · 1 comment

Comments

@Flinkbaum
Copy link

What is the problem

Trying to compile the rpcsvc-proto with a different --build and --host option results in error

../rpcgen/rpcgen: 1: Syntax error: word unexpected (expecting ")")

Steps to reproduce

autopoint --force
aclocal -I m4
autoconf --force
autoheader
automake --add-missing --copy --foreign --force-missing
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=aarch64-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/rpcsvc-proto-1.4.3 --htmldir=/usr/share/doc/rpcsvc-proto-1.4.3/html
make -j16

What is the issue

../rpcgen/rpcgen is compiled for aarch64 so executing it does not work.

Suggestion

I'd suggest adding an option (e.g. --cross-execute) so that the user can specify a command with which rpcgen will be executed (like qemu-aarch64 -L '<aarch64-chroot>').
If rpcgen is only used in an intermediate step, then it may be possible to compile it for the build-architecture.

@Flinkbaum
Copy link
Author

make_output.txt

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