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

Replies

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