Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [prefix] gcc 4.2 library path
Date: Thu, 19 Jul 2007 08:12:41
Message-Id: 20070719081215.GD14808@gentoo.org
In Reply to: Re: [gentoo-alt] [prefix] gcc 4.2 library path by Fabian Groffen
1 Can you also run
2 otool -L /Users/wilson/Library/Gentoo/lib/libgomp.1.dylib
3 please?
4
5 On 19-07-2007 10:10:34 +0200, Fabian Groffen wrote:
6 > On 19-07-2007 10:03:53 +0200, Fabian Groffen wrote:
7 > > On 19-07-2007 00:59:44 -0600, Aaron Wilson wrote:
8 > > > I'm trying to compile some C code that uses OpenMP. I've compiled gcc-4.2.0
9 > > > with the openmp USE flag
10 > > > in OS X 10.4.10. I've selected it with gcc-config (and re-sourced
11 > > > ~/Library/Gentoo/etc/profile)
12 > > >
13 > > >> $ gcc-config -l
14 > > >> [1] i686-apple-darwin8-4.0.1
15 > > >> [2] i686-apple-darwin8-4.2.0 *
16 > > >
17 > > > But when I try to run code compiled with
18 > > >
19 > > > CFLAGS=-O3 -ansi -march=prescott -Wall -DNOSHORTS -DUSEGETTIME -DUSEOPENMP
20 > > > -fopenmp -I../include
21 > > > LDFLAGS=-L../lib -lsdp -framework Accelerate -lgomp -lm
22 > > >
23 > > > I get an error about not being able to load the library
24 > > >
25 > > >> $ make
26 > > >> ...
27 > > >> $ cd test; make
28 > > >> ../solver/csdp theta1.dat-s >theta1.out
29 > > >> dyld: Library not loaded:
30 > > >> /Users/wilson/Library/Gentoo/usr/lib/libgomp.1.dylib
31 > > >> Referenced from: /Users/wilson/Documents/Work/csdp/test/../solver/csdp
32 > > >> Reason: image not found
33 > > >> make: *** [theta1.out] Error 133
34 >
35 > On a second thought, a wrong install_name is encoded in the binary
36 > /Users/wilson/Documents/Work/csdp/test/../solver/csdp. Can you tell me
37 > what package this is, or show me the compilation log of this program.
38 > It might be that some stupid things are being done there. The -lgomp
39 > should just find the library, but somehow a wrong path is encoded.
40 >
41 > --
42 > Fabian Groffen
43 > Gentoo on a different level
44 > --
45 > gentoo-alt@g.o mailing list
46 >
47
48 --
49 Fabian Groffen
50 Gentoo on a different level
51 --
52 gentoo-alt@g.o mailing list