This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
libgomp & solaris
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Thu, 19 Jan 2006 22:45:39 +0100
- Subject: libgomp & solaris
Hello,
Andrew P. wanted me to report the issues I encountered with libgomp and
solaris on head.
In team.c solaris fails due to the fact that alloca is defined in
alloca.h iso stdlib.h, config/posix/proc.c fails in a similar manner due
to the fact that getloadavg is defined in sys/loadavg.h
The next issue is the -pthread in the config stuff. Solaris does not
like it :)
-pthreads instead.
If I find the time I'll come up with a proper patch.
But for now just the report.
Regards,
Andreas
[vw_andreas_main]
tobleran@skeena:/export/data/devel-test/gcc-svn/trunk/libgomp> svn diff
team.c config/posix/proc.c
Index: team.c
===================================================================
--- team.c (revision 109942)
+++ team.c (working copy)
@@ -31,6 +31,7 @@
#include "libgomp.h"
#include <stdlib.h>
#include <string.h>
+#include <alloca.h>
/* This array manages threads spawned from the top level, which will
Index: config/posix/proc.c
===================================================================
--- config/posix/proc.c (revision 109942)
+++ config/posix/proc.c (working copy)
@@ -34,6 +34,7 @@
#include "libgomp.h"
#include <unistd.h>
#include <stdlib.h>
+#include <sys/loadavg.h>
/* At startup, determine the default number of threads. It would seem