Which version of gcc are you running, and is this native, or cross compile ?
On Sun, Jan 24, 2016 at 4:25 PM, William Hermans <yyrk...@gmail.com> wrote: > From this man page: http://man7.org/linux/man-pages/man8/ld.so.8.html > > FILES > > */lib/ld.so* > a.out dynamic linker/loader > */lib/ld-linux.so.*{*1*,*2*} > ELF dynamic linker/loader > */etc/ld.so.cache* > File containing a compiled list of directories in which to > search for shared objects and an ordered list of candidate > shared objects. > */etc/ld.so.preload* > File containing a whitespace-separated list of ELF shared > objects to be loaded before the program. > lib*.so* > shared objects > > The odd part, is these files, which are configurations files for ld, > should have been installed when ld was installed. I've never seen this > personally. Which leads me to believe that perhaps you've followed some > convoluted instructions on how to do something without understanding it. > *Or* perhaps you missed a step when following someone elses instructions. > > Anyway, if i knew which package ld, and these ld config files were part of > I'd suggest that you check to make sure you either have installed, or > installed correctly. e.g. sometimes someone will tell you to add an apt > repo to your apt.lst file - Which turns out to be a really bad idea. > > Which packages have to you installed for development ? Is > *build-essential* installed ? perhaps an *apt-get install build-essential* > will clear things up ? > > On Sun, Jan 24, 2016 at 4:04 PM, Dean <dean.b...@gmail.com> wrote: > >> I am trying to decipher my strace. My setup is Linux beaglebone >> 4.1.12-ti-r29 #1 SMP PREEMPT Mon Nov 9 22:46:19 UTC 2015 armv7l GNU/Linux >> BeagleBoard.org Debian Image 2015-11-12. I am not sure on how to interpet >> my findings. In particular of the files that are missing is that because I >> need an update or do they arise out a make file that simply is not working >> or incorrect. The CMake version that I am using is 3.0.2. Thanks for >> replies in advance. >> >> >> >> execve("./LCDApp", ["./LCDApp"], [/* 19 vars */]) = 0 >> >> brk(0) = 0x4bf000 >> >> uname({sys="Linux", node="beaglebone", ...}) = 0 >> >> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory >> ) >> >> mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) >> = 0xb6f95000 >> >> access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory >> ) >> >> open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 >> >> fstat64(3, {st_mode=S_IFREG|0644, st_size=26752, ...}) = 0 >> >> mmap2(NULL, 26752, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb6f8e000 >> >> close(3) = 0 >> >> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory >> ) >> >> open("/lib/arm-linux-gnueabihf/tls/v7l/neon/vfp/libEBBLibrary.so", >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) >> >> stat64("/lib/arm-linux-gnueabihf/tls/v7l/neon/vfp", 0xbea01370) = -1 >> ENOENT (No such file or directory) >> >> open("/lib/arm-linux-gnueabihf/tls/v7l/neon/libEBBLibrary.so", >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) >> >> open("/lib/arm-linux-gnueabihf/libEBBLibrary.so", O_RDONLY|O_CLOEXEC) = 3 >> >> read(3, >> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`m\0\0004\0\0\0"..., 512) = >> 512 >> >> lseek(3, 95252, SEEK_SET) = 95252 >> >> read(3, >> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., >> 1200) = 1200 >> >> lseek(3, 63425, SEEK_SET) = 63425 >> >> read(3, "A2\0\0\0aeabi\0\1(\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\4\22"..., >> 51) = 51 >> >> fstat64(3, {st_mode=S_IFREG|0755, st_size=96452, ...}) = 0 >> >> mmap2(NULL, 128964, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) >> = 0xb6f50000 >> >> mprotect(0xb6f5f000, 65536, PROT_NONE) = 0 >> >> mmap2(0xb6f6f000, 4096, PROT_READ|PROT_WRITE, >> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0xb6f6f000 >> >> close(3) = 0 >> >> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory >> ) >> >> open("/usr/lib/arm-linux-gnueabihf/libstdc++.so.6", O_RDONLY|O_CLOEXEC) >> = 3 >> >> read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0 >> n\4\0004\0\0\0"..., 512) = 512 >> >> open("/lib/arm-linux-gnueabihf/libEBBLibrary.so", O_RDONLY|O_CLOEXEC) = 3 >> >> read(3, >> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`m\0\0004\0\0\0"..., 512) = >> 512 >> >> lseek(3, 95252, SEEK_SET) = 95252 >> >> read(3, >> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., >> 1200) = 1200 >> >> lseek(3, 63425, SEEK_SET) = 63425 >> >> read(3, "A2\0\0\0aeabi\0\1(\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\4\22"..., >> 51) = 51 >> >> fstat64(3, {st_mode=S_IFREG|0755, st_size=96452, ...}) = 0 >> >> mmap2(NULL, 128964, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) >> = 0xb6f50000 >> >> mprotect(0xb6f5f000, 65536, PROT_NONE) = 0 >> >> mmap2(0xb6f6f000, 4096, PROT_READ|PROT_WRITE, >> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0xb6f6f000 >> >> close(3) = 0 >> >> access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory >> ) >> >> open("/usr/lib/arm-linux-gnueabihf/libstdc++.so.6", O_RDONLY|O_CLOEXEC) >> = 3 >> >> read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0 >> n\4\0004\0\0\0"..., 512) = 512 >> >> lseek(3, 100684, SEEK_SET) = 100684 >> >> read(3, >> "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., >> 1520) = 1520 >> >> lseek(3, 65940, SEEK_SET) = 65940 >> >> read(3, "A4\0\0\0aeabi\0\1*\0\0\0\0057-A\0\6\n\7A\10\1\t\2\n\4\22"..., >> 53) = 53 >> >> fstat64(3, {st_mode=S_IFREG|0755, st_size=102204, ...}) = 0 >> >> mmap2(NULL, 139836, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) >> = 0xb6ceb000 >> >> mprotect(0xb6cfb000, 61440, PROT_NONE) = 0 >> >> mmap2(0xb6d0a000, 8192, PROT_READ|PROT_WRITE, >> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0xb6d0a000 >> >> mmap2(0xb6d0c000, 4668, PROT_READ|PROT_WRITE, >> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb6d0c000 >> >> close(3) = 0 >> >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) >> = 0xb6f8c000 >> >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) >> = 0xb6f8b000 >> >> set_tls(0xb6f8b4c0, 0xb6f98050, 0xb6f8bbb8, 0xb6f8b4c0, 0xb6f98050) = 0 >> >> mprotect(0xb6df6000, 8192, PROT_READ) = 0 >> >> mprotect(0xb6d0a000, 4096, PROT_READ) = 0 >> >> mprotect(0xb6e97000, 4096, PROT_READ) = 0 >> >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) >> = 0xb6f8a000 >> >> mprotect(0xb6f44000, 16384, PROT_READ) = 0 >> >> mprotect(0xb6f97000, 4096, PROT_READ) = 0 >> >> munmap(0xb6f8e000, 26752) = 0 >> >> set_tid_address(0xb6f8b068) = 650 >> >> set_robust_list(0xb6f8b070, 12) = 0 >> >> rt_sigaction(SIGRTMIN, {0xb6cefd9d, [], SA_RESTORER|SA_SIGINFO, >> 0xb6d34ae1}, NULL, 8) = 0 >> >> rt_sigaction(SIGRT_1, {0xb6cefcbd, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, >> 0xb6d34ae1}, NULL, 8) = 0 >> >> rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 >> >> getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 >> >> futex(0xb6f4ece8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 >> >> futex(0xb6f4ecdc, FUTEX_WAKE_PRIVATE, 2147483647) = 0 >> >> fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 >> >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) >> = 0xb6f94000 >> >> mprotect(0xb6df6000, 8192, PROT_READ) = 0 >> >> mprotect(0xb6d0a000, 4096, PROT_READ) = 0 >> >> mprotect(0xb6e97000, 4096, PROT_READ) = 0 >> >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) >> = 0xb6f8a000 >> >> mprotect(0xb6f44000, 16384, PROT_READ) = 0 >> >> mprotect(0xb6f97000, 4096, PROT_READ) = 0 >> >> munmap(0xb6f8e000, 26752) = 0 >> >> set_tid_address(0xb6f8b068) = 650 >> >> set_robust_list(0xb6f8b070, 12) = 0 >> >> rt_sigaction(SIGRTMIN, {0xb6cefd9d, [], SA_RESTORER|SA_SIGINFO, >> 0xb6d34ae1}, NULL, 8) = 0 >> >> rt_sigaction(SIGRT_1, {0xb6cefcbd, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, >> 0xb6d34ae1}, NULL, 8) = 0 >> >> rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 >> >> getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 >> >> futex(0xb6f4ece8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 >> >> futex(0xb6f4ecdc, FUTEX_WAKE_PRIVATE, 2147483647) = 0 >> >> fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 >> >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) >> = 0xb6f94000 >> >> write(1, "Starting EBB LCD Character Displ"..., 43) = 43 >> >> brk(0) = 0x4bf000 >> >> brk(0x4e0000) = 0x4e0000 >> >> open("/dev/spidev2.0", O_RDWR) = -1 ENOENT (No such file or directory) >> >> dup(2) = 3 >> >> fcntl64(3, F_GETFL) = 0x402 (flags O_RDWR|O_APPEND) >> >> fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 >> >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) >> = 0xb6f93000 >> >> _llseek(3, 0, 0xbea01838, SEEK_CUR) = -1 ESPIPE (Illegal seek) >> >> write(3, "SPI: Can't open device.: No such"..., 51) = 51 >> >> close(3) = 0 >> >> munmap(0xb6f93000, 4096) = 0 >> >> ioctl(-1, 0x40046b04, 0x4bf024) = -1 EBADF (Bad file descriptor) >> >> dup(2) = 3 >> >> fcntl64(3, F_GETFL) = 0x402 (flags O_RDWR|O_APPEND) >> >> fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 >> >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) >> = 0xb6f93000 >> >> _llseek(3, 0, 0xbea01968, SEEK_CUR) = -1 ESPIPE (Illegal seek) >> >> write(3, "SPI: Can't set max speed HZ: Bad"..., 49) = 49 >> >> lose(3) = 0 >> >> munmap(0xb6f93000, 4096) = 0 >> >> ioctl(-1, 0x40206b00, 0xbea01a30) = -1 EBADF (Bad file descriptor) >> >> dup(2) = 3 >> >> fcntl64(3, F_GETFL) = 0x402 (flags O_RDWR|O_APPEND) >> >> fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 >> >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) >> = 0xb6f93000 >> >> _llseek(3, 0, 0xbea01910, SEEK_CUR) = -1 ESPIPE (Illegal seek) >> >> write(3, "SPI: SPI_IOC_MESSAGE Failed: Bad"..., 49) = 49 >> >> close(3) = 0 >> >> munmap(0xb6f93000, 4096) = 0 >> >> -- >> For more options, visit http://beagleboard.org/discuss >> --- >> You received this message because you are subscribed to the Google Groups >> "BeagleBoard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to beagleboard+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.