moinakg / pcompress

A Parallelized Data Deduplication and Compression utility
http://moinakg.github.com/pcompress/
GNU Lesser General Public License v3.0
277 stars 34 forks source link

undefined reference to `GOMP_parallel' #32

Open szepeviktor opened 9 years ago

szepeviktor commented 9 years ago
g++ -pthread -fopenmp  -fopenmp -fPIC -o buildtmp/pcompress main.o -ldl -L./buildtmp -Wl,-R/usr/lib/x86_64-linux-gnu,--enable-new-dtags -lbz2 -L./buildtmp -Wl,-R/usr/lib/x86_64-linux-gnu,--enable-new-dtags -lz -lm -L./bsc -lbsc -L./buildtmp -Wl,-R/usr/lib/x86_64-linux-gnu,--enable-new-dtags -lcrypto -lrt -Larchive/libarchive/.libs -larchive  -Wl,-R/usr/lib,--enable-new-dtags -Wl,-R/usr/lib64,--enable-new-dtags -L/usr/src/wavpack-4.70.0/src/.libs -lwavpack -L. -lpcompress
./libpcompress.so: undefined reference to `GOMP_parallel'
collect2: error: ld returned 1 exit status
make: *** [buildtmp/pcompress] Error 1

But I see -fopenmp included twice.

szepeviktor commented 9 years ago

gcc, g++ 4.7

moinakg commented 9 years ago

Which platform? Is this on Debian?

szepeviktor commented 9 years ago

Yes. Wheezy amd64.

szepeviktor commented 9 years ago

Not on jessie (stable 3 days ago).