building plasma on win64

Open forum for general discussions relating to PLASMA.

building plasma on win64

Postby mhk2013 » Wed Oct 23, 2013 11:39 am

I am on windows64 and trying to build plasma with cygwin
I try for now to use the fastest option setup.py --downall
but during build it fails finding duplicate pthread related types (shouldnt it be using win threads anyways?)
Any help is appreciated,

make[1]: Entering directory '/cygdrive/k/plasma-installer_2.5.2/build/plasma_2.5.2/quark'
cc -O2 -D_WIN64 -DADD_ -I/cygdrive/k/plasma-installer_2.5.2/build/plasma_2.5.2/quark/../include -I/cygdrive/k/plasma-installer_2.5.2/build/plasma_2.5.2/quark/../quark -I/cygdrive/k/plasma-installer_2.5.2/install/include -c quarkos.c -o quarkos.o
In file included from quarkos.c:56:0:
quarkwinthread.h:31:3: error: conflicting types for ‘pthread_t’
} pthread_t;
^
In file included from /usr/include/sys/types.h:473:0,
from /usr/include/stdio.h:47,
from quarkos.c:53:
/usr/include/cygwin/types.h:178:45: note: previous declaration of ‘pthread_t’ was here
typedef struct __pthread_t {char __dummy;} *pthread_t;
^
In file included from quarkos.c:56:0:
quarkwinthread.h:33:16: error: conflicting types for ‘pthread_mutex_t’
typedef HANDLE pthread_mutex_t;
^
In file included from /usr/include/sys/types.h:473:0,
from /usr/include/stdio.h:47,
from quarkos.c:53:
/usr/include/cygwin/types.h:179:51: note: previous declaration of ‘pthread_mutex_t’ was here
typedef struct __pthread_mutex_t {char __dummy;} *pthread_mutex_t;
^
In file included from quarkos.c:56:0:
quarkwinthread.h:34:13: error: conflicting types for ‘pthread_mutexattr_t’
typedef int pthread_mutexattr_t;
^
In file included from /usr/include/sys/types.h:473:0,
from /usr/include/stdio.h:47,
from quarkos.c:53:
/usr/include/cygwin/types.h:183:55: note: previous declaration of ‘pthread_mutexattr_t’ was here
typedef struct __pthread_mutexattr_t {char __dummy;} *pthread_mutexattr_t;
^
In file included from quarkos.c:56:0:
quarkwinthread.h:35:13: error: conflicting types for ‘pthread_attr_t’
typedef int pthread_attr_t;
^
In file included from /usr/include/sys/types.h:473:0,
from /usr/include/stdio.h:47,
from quarkos.c:53:
/usr/include/cygwin/types.h:182:50: note: previous declaration of ‘pthread_attr_t’ was here
typedef struct __pthread_attr_t {char __dummy;} *pthread_attr_t;
^
In file included from quarkos.c:56:0:
quarkwinthread.h:36:13: error: conflicting types for ‘pthread_condattr_t’
typedef int pthread_condattr_t;
^
In file included from /usr/include/sys/types.h:473:0,
from /usr/include/stdio.h:47,
from quarkos.c:53:
/usr/include/cygwin/types.h:184:54: note: previous declaration of ‘pthread_condattr_t’ was here
typedef struct __pthread_condattr_t {char __dummy;} *pthread_condattr_t;
^
In file included from quarkos.c:56:0:
quarkwinthread.h:43:3: error: conflicting types for ‘pthread_cond_t’
} pthread_cond_t;
^
In file included from /usr/include/sys/types.h:473:0,
from /usr/include/stdio.h:47,
from quarkos.c:53:
/usr/include/cygwin/types.h:185:50: note: previous declaration of ‘pthread_cond_t’ was here
typedef struct __pthread_cond_t {char __dummy;} *pthread_cond_t;
^
Makefile:52: recipe for target 'quarkos.o' failed
make[1]: *** [quarkos.o] Error 1
make[1]: Leaving directory '/cygdrive/k/plasma-installer_2.5.2/build/plasma_2.5.2/quark'
Makefile:24: recipe for target 'libquark' failed
make: *** [libquark] Error 2
mhk2013
 
Posts: 1
Joined: Wed Oct 23, 2013 8:38 am

Re: building plasma on win64

Postby luszczek » Wed Oct 23, 2013 12:05 pm

This looks like you are using Cygwin and the installer is detecting Windows
and tries to use Windows threads.

If you want to continue to use Cygwin make sure you do have POSIX threads installed.
And disable Windows build in the installer. The
Code: Select all
-D_WIN64
flag for the compiler
should be removed.

If you choose to build natively on Windows, you should switch to CMAKE.
luszczek
 
Posts: 15
Joined: Tue Jul 14, 2009 2:10 pm


Return to User discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron