Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] Build issues On Windows8.1

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] Build issues On Windows8.1


Chronologique Discussions 
  • From: Sreeprakash S <sreeprakash.s@creativegenius.co.in>
  • To: Samuel Thibault <samuel.thibault@ens-lyon.org>, Sreeprakash S <sreeprakash.s@creativegenius.co.in>, starpu-devel@lists.gforge.inria.fr
  • Subject: Re: [Starpu-devel] Build issues On Windows8.1
  • Date: Wed, 18 Feb 2015 19:18:01 +0530
  • List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel/>
  • List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>

Hi Samuel,

Tried  replacing <unistd.h> instead of <time.h> and <sys/stat.h>. It gave errors in barrier.c

  CC       libstarpu_1.1_la-barrier.lo
In file included from ../../include/starpu_thread_util.h:21:0,
                 from ../../include/starpu.h:45,
                 from ../../src/common/utils.h:21,
                 from ../../src/common/barrier.c:18:
../../include/starpu_util.h:292:8: error: redefinition of 'struct timespec'
 struct timespec {
        ^
In file included from c:\mingw\include\unistd.h:95:0,
                 from d:/Works/Mine/OpenCL/StarPU_1_1_3_Changes_By_Samuel/build/
../include/pthread_win32/pthread.h:36,
                 from ../../include/starpu_thread.h:26,
                 from ../../src/common/barrier.h:20,
                 from ../../src/common/barrier.c:17:
c:\mingw\include\parts\time.h:65:8: note: originally defined here
 struct timespec
        ^
In file included from C:/Cuda/include/device_types.h:53:0,
                 from C:/Cuda/include/builtin_types.h:56,
                 from C:/Cuda/include/cuda_runtime.h:67,
                 from ../../include/starpu_data_interfaces.h:29,
                 from ../../include/starpu.h:48,
                 from ../../src/common/utils.h:21,
                 from ../../src/common/barrier.c:18:
C:/Cuda/include/host_defines.h:79:0: warning: "__cdecl" redefined [enabled by de
fault]
 #define __cdecl
 ^
../../src/common/barrier.c:1:0: note: this is the location of the previous defin
ition
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
 ^
In file included from C:/Cuda/include/builtin_types.h:60:0,
                 from C:/Cuda/include/cuda_runtime.h:67,
                 from ../../include/starpu_data_interfaces.h:29,
                 from ../../include/starpu.h:48,
                 from ../../src/common/utils.h:21,
                 from ../../src/common/barrier.c:18:
C:/Cuda/include/vector_types.h:73:0: warning: ignoring #pragma warning  [-Wunkno
wn-pragmas]
 #pragma warning(push)
 ^
C:/Cuda/include/vector_types.h:74:0: warning: ignoring #pragma warning  [-Wunkno
wn-pragmas]
 #pragma warning(disable: 4201 4408)
 ^
C:/Cuda/include/vector_types.h:350:0: warning: ignoring #pragma warning  [-Wunkn
own-pragmas]
 #pragma warning(pop)
 ^
make[2]: *** [libstarpu_1.1_la-barrier.lo] Error 1

I tried another approach. Wherever unistd.h was included in StarPu just put a macro redirection so that the re-declaration would not happen. Basically, replaced
#include <unistd.h>
with
#define timespec temp_timespec
#include <unistd.h>
#undef timespec

Had to do this in about 20-30 odd files in StarPU and got it compiled. However, am facing some linker issues related to cuda libraries. Still looking into it.

Regards,
Sreeprakash


On Wed, Feb 18, 2015 at 6:01 PM, Samuel Thibault <samuel.thibault@ens-lyon.org> wrote:
Sreeprakash S, le Wed 18 Feb 2015 16:32:11 +0530, a écrit :
>   I have uploaded the entire MinGw/include files as a zip file. Please check
> the link below for the files
> [1]https://drive.google.com/file/d/0B-KGfzbKGpN-ZHU0al9oVG5ER2s/view?usp=
> sharing

Thanks!

It seems only unistd.h includes parts/time.h, could you thus try to
include <unistd.h> instead of <time.h> and <sys/stat.h>?

Samuel





Archives gérées par MHonArc 2.6.19+.

Haut de le page