Am 3.2.2012 um 15:33 schrieb Dominique Dhumieres: > ld: library not found for -lgomp <---- > look here!
My conclusion of this thread is that Fink plays foul. There might have been problems in some past with some old and finished packages. Therefore /sw/var/lib/fink/path-prefix-g++-4.0/g++ and /sw/var/lib/fink/path-prefix-g++-4.0/c++ were created and Fink creates a PATH setting for its build job that has /sw/var/lib/fink/path-prefix-g++-4.0 before the system's PATH components. So Fink's c++ and g++ shell script are found before the sym-links in /usr/bin. Both shell scripts substitute c++/g++ with g++-4.0. In Mac OS X 10.6 (and maybe 10.7 as well?) a different mechanism is introduced to make sure that either 32-bit or 64-bit binaries are used. They seem to preserve the system's preference for GCC 4.0 or 4.2 or whatever. In Mac OS X 10.5 adding "CC=gcc-4.2 CXX=g++-4.2" to the configure options makes sure that the proper compilers are used during the configure step. But then for the make step the argument "CCLD=g++" is given. This resets for the link steps g++-4.2 to g++-4.0 – so libgomp cannot be found because GCC 4.0 has no idea of and no support for OpenMP. I need to check whether this make argument is needed at all when configure has already "CC=gcc-4.2 CXX=g++-4.2" and the Makefile knows which compilers are to be used... For Tiger, Mac OS X 10.4 this plays no role. It has only GCC 4.0 and therefore no OpenMP support. Presumingly neither configure nor make need any extra arguments. -- Greetings Pete America believes in education: the average professor earns more money in a year than a professional athlete earns in a whole week. – Evan Esar ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users