Gentoo Archives: gentoo-alt

From: Duft Markus <Markus.Duft@×××××××.at>
To: gentoo-alt@l.g.o
Subject: RE: [gentoo-alt] [prefix] gcc 4.2 library path
Date: Thu, 19 Jul 2007 09:46:16
Message-Id: 18597F2B47F1394A9B309945EC724112FEA7E0@servex01.wamas.com
1 Hi!
2
3 I may be missing something, but isn't the below output using cc instead
4 of gcc?
5
6 Cheers, Markus
7
8 Aaron Wilson <mailto:tallest@×××××.com> wrote:
9 > I'm not actually sure that this is specific to use of gomp. Could
10 > this be a problem with my gcc install in general?
11 >
12 > On Jul 19, 2007, at 2:03 AM, Fabian Groffen wrote:
13 >> Right, I think gcc-config doesn't copy that lib to the place gcc is
14 >> looking for it. I'm affraid the lib is installed in
15 >> /Users/wilson/Library/Gentoo/lib/libgomp.1.dylib ...
16 >> Can you verify that. I have to ponder a bit about this.
17 >
18 > "libgomp.1.dylib" is in
19 >
20 > /Users/wilson/Library/Gentoo/usr/lib/gcc/i686-apple-darwin8/4.2.0/
21 >
22 > and nowhere else. Do I have to tell gcc to look here specifically or
23 > should it know where it's libraries are? So running otool yields
24 >
25 > $ otool -L /Users/wilson/Library/Gentoo/lib/libgomp.1.dylib
26 > otool: can't open file: /Users/wilson/Library/Gentoo/lib/libgomp.
27 > 1.dylib (No such file or directory)
28 >
29 > $ otool -L /Users/wilson/Library/Gentoo/usr/lib/gcc/i686-apple-
30 > darwin8/4.2.0/libgomp.1.dylib
31 > /Users/wilson/Library/Gentoo/usr/lib/gcc/i686-apple-darwin8/4.2.0/
32 > libgomp.1.dylib:
33 > /Users/wilson/Library/Gentoo/usr/lib/libgomp.1.dylib
34 > (compatibility version 2.0.0, current version 2.0.0)
35 > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
36 > current version 88.3.9)
37 >
38 >> Can you tell me
39 >> what package this is, or show me the compilation log of this program.
40 >> It might be that some stupid things are being done there. The -lgomp
41 >> should just find the library, but somehow a wrong path is encoded.
42 >
43 > The package is a semi-definite programming library called CSDP. It
44 > doesn't use autotools, but here's the output of make
45 >
46 > $ make
47 > cd lib; make libsdp.a
48 > make[1]: Entering directory `/Users/wilson/Documents/Work/csdp/lib'
49 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
50 > DUSEOPENMP -fopenmp -I../include -c -o readprob.o readprob.c
51 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
52 > DUSEOPENMP -fopenmp -I../include -c -o sdp.o sdp.c
53 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
54 > DUSEOPENMP -fopenmp -I../include -c -o op_o.o op_o.c
55 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
56 > DUSEOPENMP -fopenmp -I../include -c -o psd_feas.o psd_feas.c
57 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
58 > DUSEOPENMP -fopenmp -I../include -c -o op_a.o op_a.c
59 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
60 > DUSEOPENMP -fopenmp -I../include -c -o op_at.o op_at.c
61 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
62 > DUSEOPENMP -fopenmp -I../include -c -o Fnorm.o Fnorm.c
63 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
64 > DUSEOPENMP -fopenmp -I../include -c -o calc_pobj.o calc_pobj.c
65 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
66 > DUSEOPENMP -fopenmp -I../include -c -o calc_dobj.o calc_dobj.c
67 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
68 > DUSEOPENMP -fopenmp -I../include -c -o trace_prod.o trace_prod.c
69 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
70 > DUSEOPENMP -fopenmp -I../include -c -o zero_mat.o zero_mat.c
71 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
72 > DUSEOPENMP -fopenmp -I../include -c -o mat_mult.o mat_mult.c
73 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
74 > DUSEOPENMP -fopenmp -I../include -c -o sym_mat.o sym_mat.c
75 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
76 > DUSEOPENMP -fopenmp -I../include -c -o copy_mat.o copy_mat.c
77 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
78 > DUSEOPENMP -fopenmp -I../include -c -o addscaledmat.o addscaledmat.c
79 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
80 > DUSEOPENMP -fopenmp -I../include -c -o user_exit.o user_exit.c
81 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
82 > DUSEOPENMP -fopenmp -I../include -c -o make_i.o make_i.c
83 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
84 > DUSEOPENMP -fopenmp -I../include -c -o allocmat.o allocmat.c
85 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
86 > DUSEOPENMP -fopenmp -I../include -c -o initsoln.o initsoln.c
87 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
88 > DUSEOPENMP -fopenmp -I../include -c -o initparams.o initparams.c
89 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
90 > DUSEOPENMP -fopenmp -I../include -c -o add_mat.o add_mat.c
91 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
92 > DUSEOPENMP -fopenmp -I../include -c -o writesol.o writesol.c
93 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
94 > DUSEOPENMP -fopenmp -I../include -c -o readsol.o readsol.c
95 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
96 > DUSEOPENMP -fopenmp -I../include -c -o easysdp.o easysdp.c
97 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
98 > DUSEOPENMP -fopenmp -I../include -c -o writeprob.o writeprob.c
99 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
100 > DUSEOPENMP -fopenmp -I../include -c -o solvesys.o solvesys.c
101 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
102 > DUSEOPENMP -fopenmp -I../include -c -o makefill.o makefill.c
103 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
104 > DUSEOPENMP -fopenmp -I../include -c -o mat_multsp.o mat_multsp.c
105 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
106 > DUSEOPENMP -fopenmp -I../include -c -o norms.o norms.c
107 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
108 > DUSEOPENMP -fopenmp -I../include -c -o linesearch.o linesearch.c
109 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
110 > DUSEOPENMP -fopenmp -I../include -c -o matvec.o matvec.c
111 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
112 > DUSEOPENMP -fopenmp -I../include -c -o chol.o chol.c
113 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
114 > DUSEOPENMP -fopenmp -I../include -c -o qreig.o qreig.c
115 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
116 > DUSEOPENMP -fopenmp -I../include -c -o tweakgap.o tweakgap.c
117 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
118 > DUSEOPENMP -fopenmp -I../include -c -o freeprob.o freeprob.c
119 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
120 > DUSEOPENMP -fopenmp -I../include -c -o packed.o packed.c
121 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEGETTIME -
122 > DUSEOPENMP -fopenmp -I../include -c -o sortentries.o sortentries.c
123 > ar cr libsdp.a readprob.o sdp.o op_o.o psd_feas.o op_a.o op_at.o
124 > Fnorm.o calc_pobj.o calc_dobj.o trace_prod.o zero_mat.o mat_mult.o
125 > sym_mat.o copy_mat.o addscaledmat.o user_exit.o make_i.o allocmat.o
126 > initsoln.o initparams.o add_mat.o writesol.o readsol.o easysdp.o
127 > writeprob.o solvesys.o makefill.o mat_multsp.o norms.o linesearch.o
128 > matvec.o chol.o qreig.o tweakgap.o freeprob.o packed.o sortentries.o
129 > make[1]: Leaving directory `/Users/wilson/Documents/Work/csdp/lib'
130 > cd solver; make csdp
131 > make[1]: Entering directory `/Users/wilson/Documents/Work/csdp/solver'
132 > cc -O3 -ansi -march=prescott -Wall -DNOSHORTS -DUSEGETTIME -
133 > DUSEOPENMP -fopenmp -I../include -c -o csdp.o csdp.c
134 > cc csdp.o -L../lib -lsdp -framework Accelerate -lgomp -lm -o csdp
135 > make[1]: Leaving directory `/Users/wilson/Documents/Work/csdp/solver'
136 > cd theta; make all
137 > make[1]: Entering directory `/Users/wilson/Documents/Work/csdp/theta'
138 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEOPENMP -fopenmp -
139 > I../include -c -o theta.o theta.c
140 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEOPENMP -fopenmp -
141 > I../include theta.o -L../lib -lsdp -framework Accelerate -lgomp -lm -
142 > o theta
143 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEOPENMP -fopenmp -
144 > I../include -c -o complement.o complement.c
145 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEOPENMP -fopenmp -
146 > I../include complement.o -L../lib -lsdp -framework Accelerate -lgomp
147 > -lm -o complement
148 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEOPENMP -fopenmp -
149 > I../include -c -o rand_graph.o rand_graph.c
150 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEOPENMP -fopenmp -
151 > I../include rand_graph.o -L../lib -lsdp -framework Accelerate -lgomp
152 > -lm -o rand_graph
153 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEOPENMP -fopenmp -
154 > I../include -c -o graphtoprob.o graphtoprob.c
155 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEOPENMP -fopenmp -
156 > I../include graphtoprob.o -L../lib -lsdp -framework Accelerate -
157 > lgomp -lm -o graphtoprob
158 > make[1]: Leaving directory `/Users/wilson/Documents/Work/csdp/theta'
159 > cd example; make all
160 > make[1]: Entering directory
161 > `/Users/wilson/Documents/Work/csdp/example' cc -O3 -march=prescott
162 > -ansi -Wall -DNOSHORTS -DUSEOPENMP -fopenmp - I../include -c -o
163 > example.o example.c
164 > cc -O3 -march=prescott -ansi -Wall -DNOSHORTS -DUSEOPENMP -fopenmp -
165 > I../include example.o -L../lib -lsdp -framework Accelerate -lgomp -
166 > lm -o example
167 > make[1]: Leaving directory `/Users/wilson/Documents/Work/csdp/example'
168
169
170 --
171
172
173 Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz
174 Sitz der Gesellschaft: Friesach bei Graz
175 UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K
176 Firmenbuchgericht: Landesgericht fur Zivilrechtssachen Graz
177
178
179 --
180 gentoo-alt@g.o mailing list

Replies

Subject Author
Re: [gentoo-alt] [prefix] gcc 4.2 library path Fabian Groffen <grobian@g.o>