chain aarch64-linux-gnu-gcc-5.
compatible.
and run on diffrent.
Post by Tuukka PasanenHi,
On capturing strace for patest1 I get below
output. Please let me know which files it is
looking for because libm.so.6 is present in
/lib64 in my board.
How do I solve below error when running
*/usr/bin/aarch64-linux-gnu-gcc-5: line 1: ELF
: not found
syntax error: unexpected "("n/data/alexa/portaudio*
*
*
*Strace Output for above error:*
/data/alexa/portaudio # strace ./patest1
execve("./patest1", ["./patest1"], [/* 18 vars
*/]) = 0
brk(0)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0x517000
mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa136b000
faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK)
= -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file
or directory)
openat(AT_FDCWD,
"/lib64/tls/aarch64/libm.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file
or directory)
newfstatat(AT_FDCWD, "/lib64/tls/aarch64",
0x7fdb36a190, 0) = -1 ENOENT (No such file or
directory)
openat(AT_FDCWD, "/lib64/tls/libm.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file
or directory)
newfstatat(AT_FDCWD, "/lib64/tls",
0x7fdb36a190, 0) = -1 ENOENT (No such file or
directory)
openat(AT_FDCWD, "/lib64/aarch64/libm.so.6",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file
or directory)
newfstatat(AT_FDCWD, "/lib64/aarch64",
0x7fdb36a190, 0) = -1 ENOENT (No such file or
directory)
openat(AT_FDCWD, "/lib64/libm.so.6",
O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\300Q\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=596712,
...}) = 0
mmap(NULL, 660120, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa129e000
mprotect(0x7fa132f000, 61440, PROT_NONE) = 0
mmap(0x7fa133e000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x90000) = 0x7fa133e000
close(3)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
openat(AT_FDCWD, "/lib64/libc.so.6",
O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0h\372\1\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755,
st_size=1336848, ...}) = 0
mmap(NULL, 1409952, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa1145000
mprotect(0x7fa1284000, 65536, PROT_NONE) = 0
mmap(0x7fa1294000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x13f000) = 0x7fa1294000
mmap(0x7fa129a000, 13216, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0x7fa129a000
close(3)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa136a000
mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa1369000
mprotect(0x7fa1294000, 16384, PROT_READ) = 0
mprotect(0x7fa133e000, 4096, PROT_READ) = 0
mprotect(0x7fa136e000, 4096, PROT_READ) = 0
getuid()Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
brk(0)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0x517000
brk(0x538000)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0x538000
getpid()Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 7441
rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD],
SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {SIG_DFL, [HUP],
SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
getppid()Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 7439
uname({sysname="Linux", nodename="apq8053",
...}) = 0
newfstatat(AT_FDCWD, "/data/alexa/portaudio",
{st_mode=S_IFDIR|0777, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, ".",
{st_mode=S_IFDIR|0777, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "./patest1", O_RDONLY) = 3
fcntl(3, F_DUPFD, 10) = 10
close(3)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
fcntl(10, F_SETFD, FD_CLOEXEC) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x45dd2c, ~[RTMIN RT_1],
0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0},
8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN, ~[RTMIN RT_1],
0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0},
8) = 0
rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1],
0}, NULL, 8) = 0
read(10, "#! /bin/sh\n\n# bin/patest1 -
temp"..., 1023) = 1023
wait4(-1, 0x7fdb36a5bc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36a27c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
pipe2([3, 4], 0)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fa13690d0) = 7442
close(4)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
read(3, "errexit off\nnoglob     "..., 128) = 128
read(3, " off\nxtrace off\n"..., 128) = 128
--- SIGCHLD {si_signo=SIGCHLD,
si_code=CLD_EXITED, si_pid=7442, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
read(3, "off\nvi off\npipefail"..., 128) = 44
read(3, "", 128) = 0
close(3)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) ==
0}], 0, NULL) = 7442
wait4(-1, 0x7fdb36a41c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36a41c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36a41c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36a41c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
read(10, "X shell print the target directo"...,
1023) = 1023
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fa13690d0) = 7443
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) ==
0}], 0, NULL) = 7443
--- SIGCHLD {si_signo=SIGCHLD,
si_code=CLD_EXITED, si_pid=7443, si_uid=0,
si_status=0, si_utime=0, si_stime=1} ---
wait4(-1, 0x7fdb36a41c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
read(10, "NUX_SOUNDCARD_H=1 -DSIZEOF_SHORT"...,
1023) = 1023
wait4(-1, 0x7fdb36a5bc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
read(10, "een the wrapper\n# /script/ and
t"..., 1023) = 1023
read(10, " the debug banner immediately:\n
"..., 1023) = 1023
read(10, "c_exec_program ()\n{\n case \" $*
"..., 1023) = 1023
read(10, "cygwin/mingw when embedded
into\n"..., 1023) = 1023
read(10, "d 2>&1`; then :\n else\n\tprin"...,
1023) = 751
wait4(-1, 0x7fdb36a41c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36853c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb3681fc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36839c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb3686dc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb368efc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb3685cc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb3685cc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36876c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
pipe2([3, 4], 0)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fa13690d0) = 7444
close(4)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
read(3, ".\n", 128)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 2
read(3, "", 128) = 0
--- SIGCHLD {si_signo=SIGCHLD,
si_code=CLD_EXITED, si_pid=7444, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
close(3)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) ==
0}], 0, NULL) = 7444
wait4(-1, 0x7fdb36909c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36909c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
pipe2([3, 4], 0)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fa13690d0) = 7447
close(4)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
read(3, "", 128) = 0
--- SIGCHLD {si_signo=SIGCHLD,
si_code=CLD_EXITED, si_pid=7447, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
close(3)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) ==
0}], 0, NULL) = 7447
wait4(-1, 0x7fdb3693dc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36938c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36971c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36971c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
pipe2([3, 4], 0)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fa13690d0) = 7450
close(4)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
read(3, "/data/alexa/portaudio\n", 128) = 22
--- SIGCHLD {si_signo=SIGCHLD,
si_code=CLD_EXITED, si_pid=7450, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
read(3, "", 128) = 0
close(3)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) ==
0}], 0, NULL) = 7450
wait4(-1, 0x7fdb369a5c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb369a5c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb369a5c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb369d9c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb369f3c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb369d9c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
newfstatat(AT_FDCWD,
"/data/alexa/portaudio/.libs/lt-patest1",
0x7fdb369aa0, 0) = -1 ENOENT (No such file or
directory)
wait4(-1, 0x7fdb3698bc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
wait4(-1, 0x7fdb36971c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
newfstatat(AT_FDCWD,
"/data/alexa/portaudio/.libs",
{st_mode=S_IFDIR|0775, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, "/sbin/rm", 0x7fdb3696e0,
0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/sbin/rm",
0x7fdb3696e0, 0) = -1 ENOENT (No such file or
directory)
newfstatat(AT_FDCWD, "/bin/rm",
{st_mode=S_IFREG|0755, st_size=69048, ...}, 0) = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fa13690d0) = 7451
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) ==
0}], 0, NULL) = 7451
--- SIGCHLD {si_signo=SIGCHLD,
si_code=CLD_EXITED, si_pid=7451, si_uid=0,
si_status=0, si_utime=0, si_stime=0} ---
wait4(-1, 0x7fdb3698bc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
pipe2([3, 4], 0)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fa13690d0) = 7452
close(4)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
read(3, "/usr/bin/aarch64-linux-gnu-gcc-5"...,
128) = 63
read(3, "/usr/bin/aarch64-linux-gnu-gcc-5"...,
128) = 71
read(3, "", 128) = 0
--- SIGCHLD {si_signo=SIGCHLD,
si_code=CLD_EXITED, si_pid=7452, si_uid=0,
si_status=2, si_utime=0, si_stime=0} ---
close(3)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) ==
2}], 0, NULL) = 7452
wait4(-1, 0x7fdb36971c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
fcntl(1, F_DUPFD, 10) = 11
dup3(2, 1, 0) = 1
wait4(-1, 0x7fdb3693dc, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
fcntl(1, F_GETFL) = 0x20002 (flags O_RDWR|0x20000)
fstat(1, {st_mode=S_IFCHR|0620,
st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 65536, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa1135000
write(1, "/usr/bin/aarch64-linux-gnu-gcc-5"...,
63/usr/bin/aarch64-linux-gnu-gcc-5: line 1: ELF
: not found
) = 63
write(1, "/usr/bin/aarch64-linux-gnu-gcc-5"...,
syntax error: unexpected "("n) = 71
dup3(11, 1, 0) = 1
close(11)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7fa13690d0) = 7456
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) ==
0}], 0, NULL) = 7456
--- SIGCHLD {si_signo=SIGCHLD,
si_code=CLD_EXITED, si_pid=7456, si_uid=0,
si_status=0, si_utime=0, si_stime=1} ---
wait4(-1, 0x7fdb36957c, WNOHANG, NULL)Â = -1
ECHILD (No child processes)
exit_group(1)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â = ?
+++ exited with 1 +++
--
Thanks & Regards,
Arjav Parikh
On Fri, Oct 12, 2018 at 1:23 PM Arjav Parikh
Hi,
I have cross compiled portaudio
(v190600_20161030) for ARM platform using
*./configure --host=aarch64-linux-gnu
--build=x86_64-pc-linux-gnu
--prefix=/usr/local/portaudio
--with-alsa=/home/ap/Desktop/VVDN_AVS/alexa/local_build_arm/alsa-lib
--with-jack=no *
After doing make and make install I copied
libportaudio.a & libportaudio.so.2.0.0 on
my board.
Also copied scripts & .lib folder under bin
onto my board. Changed the paths mentioned
under *relink_command* as it was showing
the path of host system. Then I run
ELF : not found
syntax error: unexpected
"("n/data/alexa/portaudio*
aarch64-linux-gnu-ar
aarch64-linux-gnu-elfedit
aarch64-linux-gnu-g++-5
aarch64-linux-gnu-gcc-5
aarch64-linux-gnu-ld
aarch64-linux-gnu-ranlib
aarch64-linux-gnu-readelf
Please guide me to solve this problem.
--
Thanks & Regards,
Arjav Parikh
_______________________________________________
Portaudio mailing list
https://lists.columbia.edu/mailman/listinfo/portaudio