Accéder au contenu.
Menu Sympa

starpu-devel - [Starpu-devel] build starpu+simgrid mac os x 10.9

Objet : Developers list for StarPU

Archives de la liste

[Starpu-devel] build starpu+simgrid mac os x 10.9


Chronologique Discussions 
  • From: Florent Pruvost <florent.pruvost@inria.fr>
  • To: starpu-devel@lists.gforge.inria.fr
  • Subject: [Starpu-devel] build starpu+simgrid mac os x 10.9
  • Date: Wed, 21 Oct 2015 14:26:23 +0200
  • 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,

I got some errors when trying to build starpu with simgrid (3.11.1) on MAC OS X (10.9).

version starpu-1.1:

Making all in src
  CCLD     libstarpu-1.1.la
Undefined symbols for architecture x86_64:
  "_starpu_main", referenced from:
      _do_starpu_main in libstarpu_1.1_la-simgrid.o
      __starpu_simgrid_init in libstarpu_1.1_la-simgrid.o
      _main in libstarpu_1.1_la-simgrid.o
     (maybe you meant: _do_starpu_main)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

starpu-1.2 et starpu-trunk:

Making all in src
  CC       libstarpu_1.3_la-thread.lo
common/thread.c:485:5: error: redefinition of 'starpu_pthread_barrier_init'
 int starpu_pthread_barrier_init(starpu_pthread_barrier_t *restrict barrier, const starpu_pthread_barrierattr_t *restrict attr, unsigned count)
     ^
common/thread.c:330:5: note: previous definition of 'starpu_pthread_barrier_init' was here
 int starpu_pthread_barrier_init(starpu_pthread_barrier_t *restrict barrier, const starpu_pthread_barrierattr_t *restrict attr STARPU_ATTRIBUTE_UNUSED, unsigned count)
     ^
common/thread.c: In function 'starpu_pthread_barrier_init':
common/thread.c:487:46: error: request for member 'mutex' in something not a structure or union
  int ret = starpu_pthread_mutex_init(&barrier->mutex, NULL);
                                              ^
common/thread.c:489:42: error: request for member 'cond' in something not a structure or union
   ret = starpu_pthread_cond_init(&barrier->cond, NULL);
                                          ^
common/thread.c:491:42: error: request for member 'cond_destroy' in something not a structure or union
   ret = starpu_pthread_cond_init(&barrier->cond_destroy, NULL);
                                          ^
common/thread.c:492:9: error: request for member 'count' in something not a structure or union
  barrier->count = count;
         ^
common/thread.c:493:9: error: request for member 'done' in something not a structure or union
  barrier->done = 0;
         ^
common/thread.c:494:9: error: request for member 'busy' in something not a structure or union
  barrier->busy = 0;
         ^
common/thread.c: At top level:
common/thread.c:498:5: error: redefinition of 'starpu_pthread_barrier_destroy'
 int starpu_pthread_barrier_destroy(starpu_pthread_barrier_t *barrier)
     ^
common/thread.c:336:5: note: previous definition of 'starpu_pthread_barrier_destroy' was here
 int starpu_pthread_barrier_destroy(starpu_pthread_barrier_t *barrier)
     ^
common/thread.c: In function 'starpu_pthread_barrier_destroy':
common/thread.c:500:36: error: request for member 'mutex' in something not a structure or union
  starpu_pthread_mutex_lock(&barrier->mutex);
                                    ^
common/thread.c:501:16: error: request for member 'busy' in something not a structure or union
  while (barrier->busy) {
                ^
common/thread.c:502:36: error: request for member 'cond_destroy' in something not a structure or union
   starpu_pthread_cond_wait(&barrier->cond_destroy, &barrier->mutex);
                                    ^
common/thread.c:502:60: error: request for member 'mutex' in something not a structure or union
   starpu_pthread_cond_wait(&barrier->cond_destroy, &barrier->mutex);
                                                            ^
common/thread.c:504:38: error: request for member 'mutex' in something not a structure or union
  starpu_pthread_mutex_unlock(&barrier->mutex);
                                      ^
common/thread.c:505:49: error: request for member 'mutex' in something not a structure or union
  int ret = starpu_pthread_mutex_destroy(&barrier->mutex);
                                                 ^
common/thread.c:507:45: error: request for member 'cond' in something not a structure or union
   ret = starpu_pthread_cond_destroy(&barrier->cond);
                                             ^
common/thread.c:509:45: error: request for member 'cond_destroy' in something not a structure or union
   ret = starpu_pthread_cond_destroy(&barrier->cond_destroy);
                                             ^
common/thread.c: At top level:
common/thread.c:513:5: error: redefinition of 'starpu_pthread_barrier_wait'
 int starpu_pthread_barrier_wait(starpu_pthread_barrier_t *barrier)
     ^
common/thread.c:343:5: note: previous definition of 'starpu_pthread_barrier_wait' was here
 int starpu_pthread_barrier_wait(starpu_pthread_barrier_t *barrier)
     ^
common/thread.c: In function 'starpu_pthread_barrier_wait':
common/thread.c:518:36: error: request for member 'mutex' in something not a structure or union
  starpu_pthread_mutex_lock(&barrier->mutex);
                                    ^
common/thread.c:519:9: error: request for member 'done' in something not a structure or union
  barrier->done++;
         ^
common/thread.c:520:13: error: request for member 'done' in something not a structure or union
  if (barrier->done == barrier->count)
             ^
common/thread.c:520:30: error: request for member 'count' in something not a structure or union
  if (barrier->done == barrier->count)
                              ^
common/thread.c:522:10: error: request for member 'done' in something not a structure or union
   barrier->done = 0;
          ^
common/thread.c:523:41: error: request for member 'cond' in something not a structure or union
   starpu_pthread_cond_broadcast(&barrier->cond);
                                         ^
common/thread.c:528:10: error: request for member 'busy' in something not a structure or union
   barrier->busy++;
          ^
common/thread.c:529:36: error: request for member 'cond' in something not a structure or union
   starpu_pthread_cond_wait(&barrier->cond, &barrier->mutex);
                                    ^
common/thread.c:529:52: error: request for member 'mutex' in something not a structure or union
   starpu_pthread_cond_wait(&barrier->cond, &barrier->mutex);
                                                    ^
common/thread.c:530:10: error: request for member 'busy' in something not a structure or union
   barrier->busy--;
          ^
common/thread.c:531:41: error: request for member 'cond_destroy' in something not a structure or union
   starpu_pthread_cond_broadcast(&barrier->cond_destroy);
                                         ^
common/thread.c:534:38: error: request for member 'mutex' in something not a structure or union
  starpu_pthread_mutex_unlock(&barrier->mutex);
                                      ^
common/thread.c: In function 'starpu_pthread_exit':
common/thread.c:77:1: warning: 'noreturn' function does return
 }
 ^

Thanks for your help,
Florent

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by StarPU configure 1.2.0rc4, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/builds/spack/opt/spack/macosx_10.9_x86_64/gcc-5.1.0/starpu-svn-1.2-simu-fxt-opjsrunwp3uxr4vvkmlzkifj7slcwhvw --disable-build-examples --with-fxt=/builds/spack/opt/spack/macosx_10.9_x86_64/gcc-5.1.0/fxt-0.3.1-kvat6aui4ytgaypjgf3wtgb3ocnrt3hy --enable-paje-codelet-details --enable-simgrid --without-mpicc --disable-cuda --disable-opencl

## --------- ##
## Platform. ##
## --------- ##

hostname = ciosx
uname -m = x86_64
uname -r = 13.4.0
uname -s = Darwin
uname -v = Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
	 Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 2.00 gigabytes
Default processor set: 99 tasks, 348 threads, 2 processors
Load average: 2.23, Mach factor: 0.19
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown




Archives gérées par MHonArc 2.6.19+.

Haut de le page