robotology / yarp-devices-ros2

Plugins, devices and network wrappers for Yarp-ROS2 interoperation
http://www.yarp.it
10 stars 8 forks source link

macOS CI failure #28

Closed traversaro closed 1 year ago

traversaro commented 2 years ago
2021-11-18T02:23:20.7246370Z [150/997] Building CXX object src/libYARP_os/src/CMakeFiles/YARP_os.dir/yarp/os/impl/macos/MacOSAPI.mm.o
2021-11-18T02:23:20.7348730Z FAILED: src/libYARP_os/src/CMakeFiles/YARP_os.dir/yarp/os/impl/macos/MacOSAPI.mm.o 
2021-11-18T02:23:20.7459240Z /usr/local/miniconda/envs/test/bin/x86_64-apple-darwin13.4.0-clang++ -DBUILDING_YARP -DYARP_HAS_ACE -DYARP_HAS_Libedit -DYARP_os_EXPORTS -D__ACE_INLINE__ -I/Users/runner/work/yarp-ros2/yarp-ros2/yarp/src/libYARP_os/src -I/Users/runner/work/yarp-ros2/yarp-ros2/yarp/src/libYARP_conf/src -I/Users/runner/work/yarp-ros2/yarp-ros2/yarp/build/src/libYARP_conf/src -isystem /Users/runner/work/yarp-ros2/yarp-ros2/yarp/extern/hmac/hmac -Wall -Wextra -Wsign-compare -Wpointer-arith -Winit-self -Wnon-virtual-dtor -Wcast-align -Wunused -Wvla -Wmissing-include-dirs -Wreorder -Wsizeof-pointer-memaccess -Woverloaded-virtual -Wtautological-undefined-compare -Wmismatched-new-delete -Wparentheses-equality -Wundef -Wredundant-decls -Wunknown-pragmas -Wunused-result -Wc++2a-compat -Wheader-guard -Wignored-attributes -Wnewline-eof -Wdangling-else -Wgcc-compat -Wmicrosoft-exists -Wstatic-inline-explicit-instantiation -Wmisleading-indentation -Wtautological-compare -Winconsistent-missing-override -Wsuggest-override -Wnull-conversion  -Wno-unused-parameter  -Wdeprecated-declarations -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem /usr/local/miniconda/envs/test/include -O3 -DNDEBUG -isysroot /Applications/Xcode_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++17 -MD -MT src/libYARP_os/src/CMakeFiles/YARP_os.dir/yarp/os/impl/macos/MacOSAPI.mm.o -MF src/libYARP_os/src/CMakeFiles/YARP_os.dir/yarp/os/impl/macos/MacOSAPI.mm.o.d -o src/libYARP_os/src/CMakeFiles/YARP_os.dir/yarp/os/impl/macos/MacOSAPI.mm.o -c /Users/runner/work/yarp-ros2/yarp-ros2/yarp/src/libYARP_os/src/yarp/os/impl/macos/MacOSAPI.mm
2021-11-18T02:23:20.7551650Z In file included from /Users/runner/work/yarp-ros2/yarp-ros2/yarp/src/libYARP_os/src/yarp/os/impl/macos/MacOSAPI.mm:8:
2021-11-18T02:23:20.7654020Z In file included from /Applications/Xcode_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
2021-11-18T02:23:20.7754430Z /Applications/Xcode_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString
2021-11-18T02:23:20.7858190Z - (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
2021-11-18T02:23:20.7957380Z                                                          ~~~~~~~~~~~~~~                                                                       ^                  ~
2021-11-18T02:23:20.8060510Z /Applications/Xcode_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:103:48: note: expanded from macro 'NS_FORMAT_ARGUMENT'
2021-11-18T02:23:20.8161680Z         #define NS_FORMAT_ARGUMENT(A) __attribute__ ((format_arg(A)))
2021-11-18T02:23:20.8262710Z                                                       ^          ~
2021-11-18T02:23:20.8364460Z In file included from /Users/runner/work/yarp-ros2/yarp-ros2/yarp/src/libYARP_os/src/yarp/os/impl/macos/MacOSAPI.mm:8:
2021-11-18T02:23:20.8464830Z In file included from /Applications/Xcode_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:130:
2021-11-18T02:23:20.8565850Z /Applications/Xcode_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:500:168: error: expected ')'
2021-11-18T02:23:20.8669190Z - (void)readDataOfMinLength:(NSUInteger)minBytes maxLength:(NSUInteger)maxBytes timeout:(NSTimeInterval)timeout completionHandler:(void (^) (NSData * _Nullable_result data, BOOL atEOF, NSError * _Nullable error))completionHandler;
2021-11-18T02:23:20.8770640Z                                                                                                                                                                        ^
2021-11-18T02:23:20.8873180Z /Applications/Xcode_13.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:500:141: note: to match this '('
2021-11-18T02:23:20.8973840Z - (void)readDataOfMinLength:(NSUInteger)minBytes maxLength:(NSUInteger)maxBytes timeout:(NSTimeInterval)timeout completionHandler:(void (^) (NSData * _Nullable_result data, BOOL atEOF, NSError * _Nullable error))completionHandler;
2021-11-18T02:23:20.9072620Z                                                                                                                                             ^
2021-11-18T02:23:20.9173630Z 2 errors generated.
2021-11-18T02:23:20.9274850Z [151/997] Building CXX object src/libYARP_os/src/CMakeFiles/YARP_os.dir/yarp/os/impl/UdpCarrier.cpp.o
2021-11-18T02:23:22.0020110Z [152/997] Building CXX object src/libYARP_os/src/CMakeFiles/YARP_os.dir/yarp/os/impl/PortCore.cpp.o
2021-11-18T02:23:24.8331680Z [153/997] Building CXX object src/libYARP_sig/src/CMakeFiles/YARP_sig.dir/yarp/sig/Image.cpp.o
2021-11-18T02:23:28.0589750Z [154/997] Building CXX object src/libYARP_sig/src/CMakeFiles/YARP_sig.dir/yarp/sig/Image.copyPixels.cpp.o
2021-11-18T02:23:28.0646100Z ninja: build stopped: subcommand failed.
2021-11-18T02:23:28.0751700Z ##[error]Process completed with exit code 1.
traversaro commented 2 years ago

Could be a regression related to XCode 13.1, see https://github.com/actions/virtual-environments/issues/4355 . Not sure why it is not detected/experienced by other CIs.

randaz81 commented 2 years ago

@traversaro maybe this is fixed now?

randaz81 commented 1 year ago

Closing. Please reopen if needed.

traversaro commented 1 year ago

@traversaro maybe this is fixed now?

Sorry, I missed this comment. Yes, we can close!