pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lang/compilers support for MacOS



I am trying to build several compiler packages (clang, llvm, libLLVM, gcc5, gcc6) on MacOS (10.11.6, Xcode 8.1 (8B62)) from pkgsrc-2016Q4 and am running into issues.  Are any of these packages known to work on MacOS?

One problem I ran into was apparent lack of mode support in the native libtool (see https://gist.github.com/jperkin/8dbdc72540d76583c3f4).  Applying that patch helped, but did not solve all the problems.

Here are the issues I ran into (after the patch):

lang/llvm (a clang dependency): Compiling failed with the following error:

[  4%] Linking CXX static library ../libLLVMSupport.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
*** Error code 1

lang/libLLVM: Compiling failed with the following error:

[  6%] Linking CXX static library ../libLLVMSupport.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
*** Error code 1

lang/gcc48: Compiles fine.

lang/gcc49: Compiles fine.

lang/gcc5: Compiling failed with the following error:

../../gcc-5.4.0/gcc/graphite-dependences.c:231:8: error: 'isl_stat' does not name a type
 static isl_stat
        ^
../../gcc-5.4.0/gcc/graphite-dependences.c:267:8: error: 'isl_stat' does not name a type
 static isl_stat
        ^
../../gcc-5.4.0/gcc/graphite-dependences.c: In function 'isl_union_map* extend_schedule(isl_union_map*)':
../../gcc-5.4.0/gcc/graphite-dependences.c:281:3: error: 'isl_stat' was not declared in this scope
   isl_stat res;
   ^
../../gcc-5.4.0/gcc/graphite-dependences.c:284:3: error: 'res' was not declared in this scope
   res = isl_union_map_foreach_map (x, max_number_of_out_dimensions, (void *) &max);
   ^
../../gcc-5.4.0/gcc/graphite-dependences.c:284:39: error: 'max_number_of_out_dimensions' was not declared in this scope
   res = isl_union_map_foreach_map (x, max_number_of_out_dimensions, (void *) &max);
                                       ^
In file included from ../../gcc-5.4.0/gcc/graphite-dependences.c:33:0:
../../gcc-5.4.0/gcc/graphite-dependences.c:285:22: error: 'isl_stat_ok' was not declared in this scope
   gcc_assert (res == isl_stat_ok);
                      ^
../../gcc-5.4.0/gcc/system.h:710:14: note: in definition of macro 'gcc_assert'
    ((void)(!(EXPR) ? fancy_abort (__FILE__, __LINE__, __FUNCTION__), 0 : 0))
              ^
../../gcc-5.4.0/gcc/graphite-dependences.c:289:39: error: 'extend_schedule_1' was not declared in this scope
   res = isl_union_map_foreach_map (x, extend_schedule_1, (void *) &str);
                                       ^
../../gcc-5.4.0/gcc/graphite-dependences.c: At global scope:
../../gcc-5.4.0/gcc/graphite-dependences.c:249:1: warning: 'isl_map* extend_map(isl_map*, int)' defined but not used [-Wunused-function]
 extend_map (__isl_take isl_map *map, int max)
 ^
gnumake[3]: *** [graphite-dependences.o] Error 1

lang/gcc6: Compiling in stage 2 failed with the following error:

Undefined symbols for architecture x86_64:
  "_isl_options_set_schedule_fuse", referenced from:
      apply_poly_transforms(scop*)     in libbackend.a(graphite-optimize-isl.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
gnumake[3]: *** [cc1] Error 1

Any help on this is welcome.  Thanks a lot.

Cheers,
Brook




Home | Main Index | Thread Index | Old Index