~/FFS78/FreeFileSync/Source
$ uname -a
CYGWIN_NT-6.3 Kitsune 2.3.1(0.291/5/3) 2015-11-14 12:44 x86_64 Cygwin
~/FFS78/FreeFileSync/Source
$ gcc --version
gcc (GCC) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~/FFS78/FreeFileSync/Source
$ make
mkdir -p ../Obj/FFS_GCC_Make_Release/ffs/src/
g++ -std=c++14 -pipe -DWXINTL_NO_GETTEXT_MACRO -I../.. -I../../zenXml -include "zen/i18n.h" -include "zen/warn_static.h" -Wall -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -DZEN_LINUX -pthread `pkg-config --cflags gtk+-2.0` -c algorithm.cpp -o ../Obj/FFS_GCC_Make_Release/ffs/src/algorithm.o
In file included from <command-line>:0:0:
../../zen/i18n.h:25:0: warning: "_P" redefined
#define _P(s, p, n) zen::implementation::translate(ZEN_TRANS_CONCAT_SUB(L, s), ZEN_TRANS_CONCAT_SUB(L, p), n)
^
In file included from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/cctype:42:0,
from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/bits/localefwd.h:42,
from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/string:43,
from ../../zen/i18n.h:10,
from <command-line>:0:
/usr/include/ctype.h:37:0: note: this is the location of the previous definition
#define _P 020
^
In file included from ../../zen/i18n.h:13:0,
from <command-line>:0:
../../zen/string_tools.h: In function ‘int zen::impl::saferPrintf(char*, size_t, const char*, const Num&)’:
../../zen/string_tools.h:386:12: error: ‘snprintf’ is not a member of ‘std’
return std::snprintf(buffer, bufferSize, format, number); //C99
^
../../zen/string_tools.h:386:12: note: suggested alternative:
In file included from /usr/include/wchar.h:4:0,
from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/cwchar:44,
from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/bits/postypes.h:40,
from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/bits/char_traits.h:40,
from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/string:40,
from ../../zen/i18n.h:10,
from <command-line>:0:
/usr/include/stdio.h:271:5: note: ‘snprintf’
int _EXFUN(snprintf, (char *__restrict, size_t, const char *__restrict, ...)
^
In file included from ../../zen/perf.h:11:0,
from algorithm.cpp:10:
../../zen/tick_count.h: In function ‘zen::TickVal zen::getTicks()’:
../../zen/tick_count.h:131:25: error: ‘CLOCK_MONOTONIC_RAW’ was not declared in this scope
if (::clock_gettime(CLOCK_MONOTONIC_RAW, &now) != 0) //CLOCK_MONOTONIC measures time reliably across processors!
^
Makefile:98: recipe for target '../Obj/FFS_GCC_Make_Release/ffs/src/algorithm.o' failed
make: *** [../Obj/FFS_GCC_Make_Release/ffs/src/algorithm.o] Error 1
Cygwin build error
- Posts: 3
- Joined: 19 Oct 2002
As far as I can tell I have met all the dependencies. I have both libwx_gtk2u2.8-devel-2.8.12.1-5 and libwx_gtk2u3.0-devel-3.0.2.0-1 with wx-config pointing to the 3.0.
- Posts: 2
- Joined: 7 Feb 2016
Same error on mac-os-x 10.10 (with either /usr/bin/g++ (clang) or with /usr/local/bin/g++-5 provided by homebrew).
g++-5 -std=c++14 -pipe -DWXINTL_NO_GETTEXT_MACRO -I../.. -I../../zenXml -include "zen/i18n.h" -include "zen/warn_static.h" -Wall -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -DZEN_LINUX -pthread `pkg-config --cflags gtk+-2.0` -c algorithm.cpp -o ../Obj/FFS_GCC_Make_Release/ffs/src/algorithm.o
In file included from ../../zen/perf.h:11:0,
from algorithm.cpp:10:
../../zen/tick_count.h: In function 'zen::TickVal zen::getTicks()':
../../zen/tick_count.h:131:9: error: '::clock_gettime' has not been declared
if (::clock_gettime(CLOCK_MONOTONIC_RAW, &now) != 0) //CLOCK_MONOTONIC measures time reliably across processors!
^
../../zen/tick_count.h:131:25: error: 'CLOCK_MONOTONIC_RAW' was not declared in this scope
if (::clock_gettime(CLOCK_MONOTONIC_RAW, &now) != 0) //CLOCK_MONOTONIC measures time reliably across processors!
^
make: *** [../Obj/FFS_GCC_Make_Release/ffs/src/algorithm.o] Error 1
$ which g++
/usr/bin/g++
$ g++ --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.5
BuildVersion: 14F1021
$ /usr/local/bin/g++-5 --version
g++-5 (Homebrew gcc 5.2.0) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.