openMP support

Michael Dzamba mouse9911 at gmail.com
Tue Jan 13 22:51:21 PST 2009


Hi Everyone,
This is my first time posting here, not sure how this really works. 
I am having trouble compiling and 
application I wrote that uses openMP under OSX. 
I have installed GCC 4.3.2 and tried to compile with 
this, but during linking i get an error,

gcc-mp-4.3  -fopenmp -lm -w -DNDEBUG ../bin/simpleStack.o 
../bin/nodeArray.o ../bin/reader.o 
../bin/nodeMarker.o ../bin/suffixTreePrinter.o ../bin/suffixTree.o 
../bin/readAndScore.o ../bin/score.o 
../bin/weeder_score.o ../bin/common.o ../bin/display.o ../bin/sad.o 
../bin/generalTable.o 
../bin/bitString.o ../bin/suffixTreeSA.o -o ../bin/suffixTreeSA
Undefined symbols:
  "___emutls_get_address", referenced from:
      _sc_mem2mem in readAndScore.o
      _sc_mem2mem.omp_fn.0 in readAndScore.o
      _sc_mem2mem.omp_fn.0 in readAndScore.o
      _score_freqWild in score.o
      _score_freqWild in score.o
      _score_freqWild in score.o
      _score_freqWild in score.o
      _score_freqWild in score.o
      _score_freqWild in score.o
      _score_freqWild in score.o
      _score_freqWild in score.o
      _weeder_freqWild in weeder_score.o
      _weeder_freqWild in weeder_score.o
      _weeder_freqWild in weeder_score.o
      _weeder_freqWild in weeder_score.o
      _weeder_freqWild in weeder_score.o
      _weeder_freqWild in weeder_score.o
      _weeder_freqWild in weeder_score.o
      _weeder_freqWild in weeder_score.o
      _weeder_freqWild in weeder_score.o
      _common_compressScoreData in common.o
      _common_compressScoreData in common.o
      _common_compressScoreData in common.o
      _common_compressScoreData in common.o
      _common_findStart in common.o
      _common_addToPrintQ in common.o
      _common_addToPrintQ in common.o
      _common_addToPrintQ in common.o
      _main.omp_fn.0 in suffixTreeSA.o
      _main.omp_fn.0 in suffixTreeSA.o
      _main.omp_fn.0 in suffixTreeSA.o
      _main.omp_fn.0 in suffixTreeSA.o
  "___emutls_register_common", referenced from:
      global constructors keyed to 65535_0_readAndScore.c in readAndScore.o
      global constructors keyed to 65535_0_score.c in score.o
      global constructors keyed to 65535_0_weeder_score.c in weeder_score.o
      global constructors keyed to 65535_0_common.c in common.o
      global constructors keyed to 65535_0_sad.c in sad.o
      global constructors keyed to 65535_0_suffixTreeSA.c in suffixTreeSA.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

I have read this post here http://gcc.gnu.org/ml/gcc/2008-12/msg00145.html ,
 and it seems to be 
similar, does anyone know how I can overcome this problem?

Thanks!



More information about the macports-users mailing list