RE: can't seem to install gmp 6.1.2?
(09-22-2018, 10:00 AM)gijoe77 Wrote: (09-16-2018, 10:31 AM)TruHobbyist Wrote: Hi gijoe77!!!
My thoughts on this:
1. libtool script can be tracked down easily to the point where it executes "install" commands. It actually only supports 4 or 5 commands (compiling objects, linking libraries, linking executables, installing files and maybe a few others). The "mode" argument should be a keyword to search in the script.
2. Use -v flag for install:
/usr/bin/install -v -c .libs/libgmp.so.11.2 /usr/local/lib/libgmp.so.11.2
This prints exactly how the source and the target files are named.
3. Try par. Haven't seen many people here (nor on nekochan) using this powerful tool, I do on a regular basis for debugging. Try this:
par -sSSi -o install.par /usr/bin/install -c .libs/libgmp.so.11.2 /usr/local/lib/libgmp.so.11.2
-s is for collecting syscalls
-SS is for one line summaries and traces of syscalls (syscall name, arguments, possible errors and return values)
-i if the executable you are tracing forks, keep tracing the new child
-o output syscall summaries to this file for later inspection instead of spitting it out to stdout
When done, open install.par with a text editor (I use vi) and take a look at the relevant syscalls. Or post it here so we can all take a look.
Good luck!
ok so here is what the "gmake install" spits out and what I was able to figure out from the par output (seems it doesn't parse the "./libs/$1" or whatever its doing, or so it seems to me)
Code: -bash-4.2# cd /usr/people/develop/dev/gmp/gmp-6.1.2
-bash-4.2# gmake install
<snip>
gmake[3]: Entering directory `/usr/people/develop/dev/gmp/gmp-6.1.2'
./install-sh -c -d '/usr/local/lib'
/bin/ksh ./libtool --mode=install /usr/bin/install -c libgmp.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libgmp.so.11.2 /usr/local/lib/libgmp.so.11.2
/usr/bin/install: can't open libgmp.so.11.2: No such file or directory.
gmake[3]: *** [install-libLTLIBRARIES] Error 2
gmake[3]: Leaving directory `/usr/people/develop/dev/gmp/gmp-6.1.2'
gmake[2]: *** [install-am] Error 2
gmake[2]: Leaving directory `/usr/people/develop/dev/gmp/gmp-6.1.2'
gmake[1]: *** [install-recursive] Error 1
gmake[1]: Leaving directory `/usr/people/develop/dev/gmp/gmp-6.1.2'
gmake: *** [install] Error 2
-bash-4.2#
-bash-4.2# par -sSSi -o install.par /usr/bin/install -c .libs/libgmp.so.11.2 /usr/local/lib/libgmp.so.11.2
/usr/bin/install: can't open libgmp.so.11.2: No such file or directory.
-bash-4.2# cd .libs
-bash-4.2# /usr/bin/install -c ./libgmp.so.11.2 /usr/local/lib/libgmp.so.11.2
-bash-4.2#
here is the install.par output:
Code: 0mS (338914): was sent signal SIGUSR1
0mS par(338914): received signal SIGUSR1 (handler 0x10002aa8)
0mS par(338914): END-pause() errno = 4 (Interrupted function call)
0mS par(338914): sigreturn(0x7ffb7af0) OK
0mS install(338914): execve("/usr/bin/install", 0x7ffb7f64, 0x7ffb7f78)
11mS install(338914): END-execve() OK
11mS install(338914): sysconf(_SC_CAP) = 1
11mS install(338914): syssgi(SGI_PROC_ATTR_GET, 0xfb44730, 0x7ffb7ee0, 0, 0, 0) = 0
11mS install(338914): getuid() = 0, euid=0
11mS install(338914): open("/lib32/rld", O_RDONLY, 04) = 4
11mS install(338914): read(4, <7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00>..., 512) = 512
12mS install(338914): elfmap(4, 0x7ffb7d74, 2) = 0xfb60000
12mS install(338914): close(4) OK
12mS install(338914): getpagesize() = 4096
12mS install(338914): open("/dev/zero", O_RDONLY, 03700) = 4
12mS install(338914): mmap(0xfbd7000, 36864, PROT_WRITE|PROT_READ, MAP_PRIVATE, 4, 0) = 0xfbd7000
12mS install(338914): close(4) OK
12mS install(338914): syssgi(0x5c, 0, 0x3d, 0, 0xfbd61b1, 0x52) = 0
13mS install(338914): sysinfo(_MIPS_SI_PROCESSORS, 0x7ffb7dc0, 257) = 11
26mS install(338914): syssgi(SGI_TOSSTSAVE) OK
26mS install(338914): getuid() = 0, euid=0
27mS install(338914): stat(".libs/libgmp.so.11.2", 0x7ffb73f0) OK
27mS install(338914): stat("/usr/local/lib/libgmp.so.11.2", 0x7ffb73f0) OK
27mS install(338914): stat("/usr/local/lib/libgmp.so.11.2", 0x7ffb7410) OK
27mS install(338914): stat("/usr/local/lib/libgmp.so.11.2", 0x7ffb73f0) OK
27mS install(338914): getpagesize() = 4096
27mS install(338914): brk(0x1000b000) OK
27mS install(338914): umask(0) = 022
28mS install(338914): stat("/etc/passwd", 0x7ffb73e0) OK
28mS install(338914): open("/var/ns/cache/passwd.byname", O_RDONLY, 0400) = 4
28mS install(338914): fstat(4, 0x7ffb68f0) OK
28mS install(338914): mmap(0, 65536, PROT_READ, MAP_SHARED, 4, 0) = 0x4000000
28mS install(338914): close(4) OK
28mS install(338914): syssgi(SGI_USE_FP_BCOPY, 0x4008004, 0x3d, 0xffffffff, 0x1, 0x7e) = 0
28mS install(338914): time() = 1537505414
28mS install(338914): stat("/etc/shadow", 0x7ffb72a0) OK
28mS install(338914): open("/var/ns/cache/shadow.byname", O_RDONLY, 0400) = 4
29mS install(338914): fstat(4, 0x7ffb67b0) OK
29mS install(338914): mmap(0, 65536, PROT_READ, MAP_SHARED, 4, 0) = 0x4010000
29mS install(338914): close(4) OK
29mS install(338914): time() = 1537505414
29mS install(338914): brk(0x1000f000) OK
29mS install(338914): stat("/etc/group", 0x7ffb7410) OK
29mS install(338914): open("/var/ns/cache/group.byname", O_RDONLY, 0400) = 4
29mS install(338914): fstat(4, 0x7ffb6920) OK
29mS install(338914): mmap(0, 65536, PROT_READ, MAP_SHARED, 4, 0) = 0x4020000
29mS install(338914): close(4) OK
29mS install(338914): time() = 1537505414
30mS install(338914): stat("/usr/local/lib", 0x7ffb7470) OK
30mS install(338914): lstat("/usr/local/lib/libgmp.so.11.2", 0x7ffb5a40) OK
30mS install(338914): open("libgmp.so.11.2", O_RDONLY, 017776655100) errno = 2 (No such file or directory)
30mS install(338914): write(2, "/usr/bin/install", 16) = 16
31mS install(338914): write(2, ": ", 2) = 2
32mS install(338914): write(2, "can't open ", 11) = 11
32mS install(338914): write(2, "libgmp.so.11.2", 14) = 14
32mS install(338914): syssgi(0x5c, 0x1, 0, 0x2f, 0x1000eb38, 0x1000eb53) = 0
32mS install(338914): stat("/usr/lib/locale/C/LC_MESSAGES/uxsyserr", 0x7ffb58b0) errno = 2 (No such file or directory)
32mS install(338914): stat("/usr/lib/locale/C/Xopen/LC_MESSAGES/uxsyserr", 0x7ffb58b0) errno = 2 (No such file or directory)
33mS install(338914): stat("/usr/lib/locale/C/LC_MESSAGES/uxsyserr.cat", 0x7ffb58b0) errno = 2 (No such file or directory)
33mS install(338914): write(2, ": No suc", 8) = 8
33mS install(338914): write(2, "h file or directory", 19) = 19
33mS install(338914): write(2, ".\n", 2) = 2
33mS install(338914): prctl(PR_LASTSHEXIT) = 1
33mS install(338914): exit(2)
System call summary:
Average Total
Name #Calls Time(ms) Time(ms)
-----------------------------------------
execve 1 10.96 10.96
stat 11 0.08 0.90
syssgi 5 0.16 0.80
open 6 0.12 0.74
write 7 0.07 0.48
mmap 4 0.06 0.24
elfmap 1 0.22 0.22
read 1 0.09 0.09
close 5 0.02 0.08
lstat 1 0.05 0.05
brk 2 0.02 0.04
fstat 3 0.01 0.03
sigreturn 1 0.02 0.02
sysinfo 1 0.02 0.02
getpagesize 2 0.01 0.01
time 3 0.00 0.01
sysconf 1 0.01 0.01
prctl 1 0.01 0.01
umask 1 0.01 0.01
getuid 2 0.00 0.01
exit 1 0.00 0.00
Hi gijoe77, here we go again...
Looks like the prepended .libs is ignored for some reason. If you look at the line:
libtool: install: /usr/bin/install -c .libs/libgmp.so.11.2 /usr/local/lib/libgmp.so.11.2
the libgmp.so.11.2 is stored under .libs but the par output suggests that no chdir syscall is done to .libs.
Well, I would say for some reason the IRIX install ignores all but the filename of its first argument thus looking for the file in the current directory. To check for this, try:
-bash-4.2# cp .libs/libgmp.so.11.2 .
-bash-4.2# /usr/bin/install -c .libs/libgmp.so.11.2 /usr/local/lib/libgmp.so.11.2
If this works (i.e. it doesn't yell about not finding the library), then install effectively ignores the directory for some reason and should be further debugged.
You could also check again with par which would then give output like:
30mS install(338914): open("libgmp.so.11.2", O_RDONLY, 017776655100) = 4
Regards,
Tru
|
|
TruHobbyist
Developer
Trade Count:
(0)
Posts: 195
Threads: 21
Joined: May 2018
|