1 |
Michael Haubenwallner wrote: |
2 |
|
3 |
>Do you know 'truss' ? |
4 |
>It is to trace system (libc?) calls for any (running) program: |
5 |
>$ truss -p <pid> |
6 |
> |
7 |
>According to lslpp, it is part of 'bos.sysmgt.serv_aid' AIX package: |
8 |
>$ lslpp -w /usr/bin/truss |
9 |
> File Fileset Type |
10 |
>---------------------------------------------------------------------------- |
11 |
> /usr/bin/truss bos.sysmgt.serv_aid File |
12 |
> |
13 |
> |
14 |
> |
15 |
> |
16 |
>> By the way, is '-mPPC' a correct flag? |
17 |
>> |
18 |
>> |
19 |
> |
20 |
>Basically yes, although some gcc (3.3.6) here uses '-mppc': |
21 |
> |
22 |
>$ truss -a -f -t execve gcc -c xx.c |
23 |
>200400: execve("/usr/local/bin/gcc", 0x2FF224A4, 0x2FF224B4) argc: 3 |
24 |
>200400: argv: gcc -c xx.c |
25 |
>169120: execve("/usr/local/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.6/cc1", 0x2000AC98, 0x200068C8) argc: 13 |
26 |
>169120: argv: /usr/local/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.6/cc1 -quiet |
27 |
>169120: -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=6 xx.c -quiet |
28 |
>169120: -dumpbase xx.c -auxbase xx -o /tmp//cckikAyc.s |
29 |
>169122: execve("/usr/ccs/bin/as", 0x2000AC98, 0x200068C8) argc: 6 |
30 |
>169122: argv: /usr/ccs/bin/as -u -mppc -o xx.o /tmp//cckikAyc.s |
31 |
> |
32 |
> |
33 |
I don't know if this is a valid test, but I decided to try it. This is |
34 |
the parent command for the 'as' process. |
35 |
|
36 |
greg:/usr/local/prefix-launcher$ truss -a -f -t execve gcc -pthread |
37 |
-fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prot |
38 |
otypes -I. |
39 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/./Include |
40 |
-Ibuild/temp.aix-5.2-2.5/libffi/include -Ibuild/temp |
41 |
..aix-5.2-2.5/libffi |
42 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src |
43 |
-I/usr/local/prefix-launch |
44 |
er-1pre.greg/powerpc-ibm-aix5.2.0.0/include -I. -IInclude |
45 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Include -I/usr/ |
46 |
local/prefix-launcher/buildroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0/Include |
47 |
-I/usr/local/prefix-launcher/buildroot/python/ibm_slo |
48 |
w.powerpc-ibm-aix5.2.0.0 -c -I. |
49 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/./Include |
50 |
-Ibuild/temp.aix-5.2-2.5/libffi |
51 |
/include -Ibuild/temp.aix-5.2-2.5/libffi |
52 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src |
53 |
-I/us |
54 |
r/local/prefix-launcher-1pre.greg/powerpc-ibm-aix5.2.0.0/include -I. |
55 |
-IInclude -I/usr/local/prefix-launcher/buildroot/python/Python- |
56 |
2.5.2/Include |
57 |
-I/usr/local/prefix-launcher/buildroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0/Include |
58 |
-I/usr/local/prefix-launcher/bui |
59 |
ldroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0 -c |
60 |
/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src |
61 |
/powerpc/aix.S -o |
62 |
build/temp.aix-5.2-2.5/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src/powerpc/ |
63 |
aix.o |
64 |
217158: execve("/bin/gcc", 0x2FF22854, 0x2FF228E8) argc: 36 |
65 |
217158: argv: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 |
66 |
-Wall |
67 |
217158: -Wstrict-prototypes -I. |
68 |
217158: |
69 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/./Include |
70 |
217158: -Ibuild/temp.aix-5.2-2.5/libffi/include |
71 |
217158: -Ibuild/temp.aix-5.2-2.5/libffi |
72 |
217158: |
73 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src |
74 |
217158: |
75 |
-I/usr/local/prefix-launcher-1pre.greg/powerpc-ibm-aix5.2.0.0/include |
76 |
217158: -I. -IInclude |
77 |
217158: -I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Include |
78 |
217158: |
79 |
-I/usr/local/prefix-launcher/buildroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0/Include |
80 |
217158: |
81 |
-I/usr/local/prefix-launcher/buildroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0 |
82 |
217158: -c -I. |
83 |
217158: |
84 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/./Include |
85 |
217158: -Ibuild/temp.aix-5.2-2.5/libffi/include |
86 |
217158: -Ibuild/temp.aix-5.2-2.5/libffi |
87 |
217158: |
88 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src |
89 |
217158: |
90 |
-I/usr/local/prefix-launcher-1pre.greg/powerpc-ibm-aix5.2.0.0/include |
91 |
217158: -I. -IInclude |
92 |
217158: -I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Include |
93 |
217158: |
94 |
-I/usr/local/prefix-launcher/buildroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0/Include |
95 |
217158: |
96 |
-I/usr/local/prefix-launcher/buildroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0 |
97 |
217158: -c |
98 |
217158: |
99 |
/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src/powerpc/aix.S |
100 |
217158: -o |
101 |
217158: |
102 |
build/temp.aix-5.2-2.5/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src/powerpc/aix.o |
103 |
344210: |
104 |
execve("/opt/freeware/libexec/gcc/powerpc-ibm-aix5.2.0.0/4.2.3/cc1", |
105 |
0x2000C288, 0x2000AC68) argc: 39 |
106 |
344210: argv: /opt/freeware/libexec/gcc/powerpc-ibm-aix5.2.0.0/4.2.3/cc1 -E |
107 |
344210: -lang-asm -quiet -I. |
108 |
344210: |
109 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/./Include |
110 |
344210: -Ibuild/temp.aix-5.2-2.5/libffi/include |
111 |
344210: -Ibuild/temp.aix-5.2-2.5/libffi |
112 |
344210: |
113 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src |
114 |
344210: |
115 |
-I/usr/local/prefix-launcher-1pre.greg/powerpc-ibm-aix5.2.0.0/include |
116 |
344210: -I. -IInclude |
117 |
344210: -I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Include |
118 |
344210: |
119 |
-I/usr/local/prefix-launcher/buildroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0/Include |
120 |
344210: |
121 |
-I/usr/local/prefix-launcher/buildroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0 |
122 |
344210: -I. |
123 |
344210: |
124 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/./Include |
125 |
344210: -Ibuild/temp.aix-5.2-2.5/libffi/include |
126 |
344210: -Ibuild/temp.aix-5.2-2.5/libffi |
127 |
344210: |
128 |
-I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src |
129 |
344210: |
130 |
-I/usr/local/prefix-launcher-1pre.greg/powerpc-ibm-aix5.2.0.0/include |
131 |
344210: -I. -IInclude |
132 |
344210: -I/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Include |
133 |
344210: |
134 |
-I/usr/local/prefix-launcher/buildroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0/Include |
135 |
344210: |
136 |
-I/usr/local/prefix-launcher/buildroot/python/ibm_slow.powerpc-ibm-aix5.2.0.0 |
137 |
344210: -imultilib pthread -D_THREAD_SAFE -DNDEBUG |
138 |
344210: |
139 |
/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src/powerpc/aix.S |
140 |
344210: -Wall -Wstrict-prototypes -fno-strict-aliasing -fwrapv |
141 |
344210: -fworking-directory -O3 -o /tmp//cc4GTEs4.s |
142 |
/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src/powerpc/aix.S:83:23: |
143 |
error: fficonfig.h: No such |
144 |
file or directory |
145 |
/usr/local/prefix-launcher/buildroot/python/Python-2.5.2/Modules/_ctypes/libffi/src/powerpc/aix.S:84:17: |
146 |
error: ffi.h: No such file |
147 |
or directory |
148 |
-- |
149 |
|
150 |
|
151 |
|
152 |
Greg Trigg |
153 |
|
154 |
Jacksonville, AR |
155 |
|
156 |
|
157 |
|
158 |
-- |
159 |
gentoo-alt@l.g.o mailing list |