Date: Thu, 20 Feb 2003 20:52:46 -0600 (CST) From: Josh Tolbert <hemi@puresimplicity.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/48511: math/atlas does not build with multithreaded support enabled Message-ID: <200302210252.h1L2qk3Y082595@just.puresimplicity.net>
next in thread | raw e-mail | index | archive | help
>Number: 48511 >Category: ports >Synopsis: math/atlas does not build with multithreaded support enabled >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 20 19:00:26 PST 2003 >Closed-Date: >Last-Modified: >Originator: Josh Tolbert >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD newram.home.lan 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Dec 22 23:00:39 CST 2002 hemi@newram.home.lan:/usr/obj/usr/src/sys/NEWRAM i386 >Description: math/atlas will not build with multithreaded support enabled without changing the flag used to link against POSIX threads from -lpthread to -pthread. This issue shows up on SMP machines cause Atlas doesn't ask to build with multithreading support on single-CPU machines. The problem will occur under both 4.x and 5.x. >How-To-Repeat: On an i386 SMP machine: cd /usr/ports/math/atlas make answer yes when asked to enable multithreaded support. Wait for build to error out with unknown linker flag -lpthread. >Fix: cd /usr/ports/math/atlas make patch Apply the following patch to math/atlas/work/ATLAS/config.c --- config.c Thu Feb 20 20:11:53 2003 +++ config.c.new Thu Feb 20 20:12:08 2003 @@ -1091,7 +1091,7 @@ void GetSyslib(enum OSTYPE OS, enum MACHTYPE mach, char *targ, char *LIBS) { - if (THREADS) strcpy(LIBS, "-lpthread -lm"); + if (THREADS) strcpy(LIBS, "-pthread -lm"); else strcpy(LIBS, "-lm"); switch(OS) make Build should finish without errors, after which you can "make install". >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302210252.h1L2qk3Y082595>