Hi Alan -- Sorry for this inconvenience -- this has been fixed for some time on the master branch at github and will be included in the October release, but is not something we had in place when 1.11 was released. If you apply the following patch (also attached), I believe it should work for you. Please let us know if this is not the case.
Thanks, -Brad diff --git a/runtime/include/sys_basic.h b/runtime/include/sys_basic.h index 23e5ebb..da9cef9 100644 --- a/runtime/include/sys_basic.h +++ b/runtime/include/sys_basic.h @@ -52,6 +52,12 @@ #define _POSIX_C_SOURCE 200112L #endif +#ifndef _DEFAULT_SOURCE +// Quiets warnings about _BSD_SOURCE being deprecated in glbic >= 2.20 +// This define enables everything _BSD_SOURCE does (and more) with glibc >= 2.19 +#define _DEFAULT_SOURCE +#endif + // // The following breaks #include of "glob.h" with the Cray CCE // compiler and also complicates things for the #inclusion of dirent.h ________________________________ From: Alan Souza [[email protected]] Sent: Tuesday, September 01, 2015 6:09 PM To: [email protected] Subject: [Chapel-bugs] building problems I am trying to build chapel version 1.11 on a fedora 22 system (using gcc 5.1.1 and clang 3.5.0). But the building process fails with the following message: "... ranlib ../lib/linux64.gnu.arch-native.loc-flat.comm-none.tasks-qthreads.tmr-generic.mem-cstdlib.atomics-intrinsics.gmp.hwloc.re2.wide-struct.fs-none/libchpl.a Updating TAGS... cp src/gen/linux64.gnu.arch-native.loc-flat.comm-none.tasks-qthreads.tmr-generic.mem-cstdlib.atomics-intrinsics.gmp.hwloc.re2.wide-struct.fs-none/main.o ../lib/linux64.gnu.arch-native.loc-flat.comm-none.tasks-qthreads.tmr-generic.mem-cstdlib.atomics-intrinsics.gmp.hwloc.re2.wide-struct.fs-none/main.o cd modules && make mkdir -p standard/gen/linux64-gnu cd standard/gen/linux64-gnu && ( /home/user/.usr/chapel/chapel-1.11.0/util/config/makeSysBasicTypes > SysCTypes.chpl || { rm -f SysCTypes.chpl && false ; } ) In file included from /usr/include/sys/types.h:25:0, from /home/user/.usr/chapel/chapel-1.11.0/runtime//include/sys_basic.h:75, from find_int_sizes_tmp.h:1: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^ Got wrong number of values from preprocessor at /home/user/.usr/chapel/chapel-1.11.0/util/config/makeSysBasicTypes line 104. Makefile:46: recipe for target 'standard/gen/linux64-gnu/SysCTypes.chpl' failed make[2]: *** [standard/gen/linux64-gnu/SysCTypes.chpl] Error 1 Makefile:66: recipe for target 'modules' failed make[1]: *** [modules] Error 2 Makefile:57: recipe for target 'comprt' failed make: *** [comprt] Error 2 " when using the gcc. For the clang compiler the error message is similar. I have also tried to compile with the option -Wno-cpp with no success. thanks
fedora.patch
Description: fedora.patch
------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________ Chapel-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-bugs
