Build fail with MacOSX10.14.sdk Compiling trace/record/record-client-base.cc

Heinz Junkes junkes at fhi-berlin.mpg.de
Tue Sep 10 10:06:24 UTC 2019


./waf -v configure --prefix=/Users/junkes/MVME2500/RTEMS/rtems-5 build install

Setting top to                           : /Users/junkes/MVME2500/RTEMS_DEV/rtems-tools
Setting out to                           : /Users/junkes/MVME2500/RTEMS_DEV/rtems-tools/build
Version                                  : 5.5d80d0b2e1de (5)
Checking for program 'python'            : /usr/local/opt/python at 2/bin/python2.7
Checking for python version >= 2.6.6     : 2.7.16
Checking for program 'python'            : /usr/local/opt/python at 2/bin/python2.7
Checking for program 'python2'           : /usr/local/bin/python2
Checking for program 'python3'           : /usr/local/bin/python3
Checking for 'clang' (C compiler)        : /usr/bin/clang
Checking for 'clang++' (C++ compiler)    : /usr/bin/clang++
Checking for header alloca.h             : yes
Checking for header fcntl.h              : yes
Checking for header process.h            : not found
Checking for header stdlib.h             : yes
Checking for header string.h             : yes
Checking for header strings.h            : yes
Checking for header sys/file.h           : yes
Checking for header sys/stat.h           : yes
Checking for header sys/time.h           : yes
Checking for header sys/types.h          : yes
Checking for header sys/wait.h           : yes
Checking for header unistd.h             : yes
Checking for header vfork.h              : not found
Checking for getrusage                   : yes
Checking for program 'm4'                : /usr/bin/m4
Checking for header sys/wait.h           : yes
Checking for kill                        : yes
Checking for 'clang' (C compiler)        : /usr/bin/clang
Checking for 'clang++' (C++ compiler)    : /usr/bin/clang++
Checking for 'clang' (C compiler)        : /usr/bin/clang
Checking for strnlen                     : yes
Checking for 'clang++' (C++ compiler)    : /usr/bin/clang++
Checking for fopen64                     : no
Checking for stat64                      : yes
Checking for 'clang' (C compiler)        : /usr/bin/clang
Checking for 'clang++' (C++ compiler)    : /usr/bin/clang++
Checking for library LLVM                : not found
Checking for header llvm/DebugInfo/Symbolize/Symbolize.h : not found
Checking for library ws2_32                              : not found
'configure' finished successfully (2.070s)
Waf: Entering directory `/Users/junkes/MVME2500/RTEMS_DEV/rtems-tools/build'

...

[211/254] Compiling tester/covoar/Target_riscv.cc
../tester/covoar/app_common.cc:79:8: warning: 'stat64' is deprecated: first deprecated in macOS 10.6 [-Wdeprecated-declarations]
   if (STAT( f2, &buf2 ) == -1)
       ^
../tester/covoar/app_common.cc:45:14: note: expanded from macro 'STAT'
#define STAT stat64
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/stat.h:402:9: note: 'stat64' has been explicitly marked deprecated here
int     stat64(const char *, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5, __MAC_10_6, __IPHONE_NA, __IPHONE_NA);
        ^
../tester/covoar/app_common.cc:82:7: warning: 'stat64' is deprecated: first deprecated in macOS 10.6 [-Wdeprecated-declarations]
  if (STAT( f1, &buf1 ) == -1)
      ^
../tester/covoar/app_common.cc:45:14: note: expanded from macro 'STAT'
#define STAT stat64
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/stat.h:402:9: note: 'stat64' has been explicitly marked deprecated here
int     stat64(const char *, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5, __MAC_10_6, __IPHONE_NA, __IPHONE_NA);
        ^
../tester/covoar/app_common.cc:95:7: warning: 'stat64' is deprecated: first deprecated in macOS 10.6 [-Wdeprecated-declarations]
  if (STAT( f1, &buf1 ) == -1)
      ^
../tester/covoar/app_common.cc:45:14: note: expanded from macro 'STAT'
#define STAT stat64
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/stat.h:402:9: note: 'stat64' has been explicitly marked deprecated here
int     stat64(const char *, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5, __MAC_10_6, __IPHONE_NA, __IPHONE_NA);
        ^
3 warnings generated.

…

[250/254] Compiling trace/record/record-client-base.cc
12:01:42 runner ['/usr/bin/clang++', '-std=c++11', '-pipe', '-g', '-O2', '-Wall', '-Wextra', '-pedantic', '-Itrace', '-I../trace', '-Itrace/record', '-I../trace/record', '-DRTEMS_VERSION="5"', '-DRTEMS_RELEASE="5.5d80d0b2e1de"', '../trace/record/record-client-base.cc', '-c', '-o/Users/junkes/MVME2500/RTEMS_DEV/rtems-tools/build/trace/record/record-client-base.cc.1.o']
../trace/record/record-client-base.cc:111:16: error: no matching function for call to 'min'
    size_t m = std::min(sizeof(buf), todo);
               ^~~~~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:2568:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('unsigned long' vs. 'unsigned long long')
min(const _Tp& __a, const _Tp& __b)
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:2578:1: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'unsigned long'
min(initializer_list<_Tp> __t, _Compare __comp)
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:2560:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:2586:1: note: candidate function template not viable: requires single argument '__t', but 2 arguments were provided
min(initializer_list<_Tp> __t)
^
1 error generated.

Waf: Leaving directory `/Users/junkes/MVME2500/RTEMS_DEV/rtems-tools/build'
Build failed
 -> task in 'rtems-record-lttng' failed with exit status 1:
	{task 4411128600: cxx record-client-base.cc -> record-client-base.cc.1.o}
['/usr/bin/clang++', '-std=c++11', '-pipe', '-g', '-O2', '-Wall', '-Wextra', '-pedantic', '-Itrace', '-I../trace', '-Itrace/record', '-I../trace/record', '-DRTEMS_VERSION="5"', '-DRTEMS_RELEASE="5.5d80d0b2e1de"', '../trace/record/record-client-base.cc', '-c', '-o/Users/junkes/MVME2500/RTEMS_DEV/rtems-tools/build/trace/record/record-client-base.cc.1.o’]




Viele Grüße
Heinz Junkes
--
Experience directly varies with equipment ruined.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5247 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20190910/637a6e96/attachment-0002.bin>


More information about the users mailing list