Cross compiling Automake for RISC-V

80 views
Skip to first unread message

Billa Surendra

unread,
Nov 18, 2021, 4:24:01 AM11/18/21
to RISC-V SW Dev
Dear All,

I have cross-compiled Automake-1.16.2 and texinfo-6.7 package with RISC-V cross compiler, but when I am executing binaries on RISC-V target OS image its gives errors like "not found".

Here I am giving more information

The command used for cross-compile Automake:

$   ./configure  --prefix=/usr --host=riscv64-unknown-linux-gnu
$ make -j8
$  make DESTDIR=$risc-v_rootfs/ install

Cross-compilation did successfully

Error message (on risc-v rootfs):

./aclocal
-/bin/sh: ./aclocal: not found

./aclocal-1.16
-/bin/sh: ./aclocal-1.16: not found

Can anyone please find a mistake in my steps and suggest to me how I can correct it.

Thanks
Billa

Andreas Schwab

unread,
Nov 18, 2021, 4:53:52 AM11/18/21
to Billa Surendra, RISC-V SW Dev
On Nov 18 2021, Billa Surendra wrote:

> *Error message (on risc-v rootfs):*
>
> ./aclocal
> -/bin/sh: ./aclocal: not found

Looks like the script interpreter is missing in your rootfs.

Andreas.

--
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Billa Surendra

unread,
Nov 18, 2021, 5:00:46 AM11/18/21
to RISC-V SW Dev
Can you tell me what should I do about that.

Tommy Murphy

unread,
Nov 18, 2021, 6:11:20 AM11/18/21
to Billa Surendra, RISC-V SW Dev
How are you building your root filesystem or the full Linux that you're running these apps on? Buildroot? Yocto/openembedded? Full Linux distro? Etc.

Tommy Murphy

unread,
Nov 18, 2021, 6:46:35 AM11/18/21
to Billa Surendra, RISC-V SW Dev
Does /bin/sh exist?
What format line endings is your aclocal script using?
Windows CR/LF or UNIX/Linux LF only?
Reply all
Reply to author
Forward
0 new messages