Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX 10.13 build failed #2

Closed
truatpasteurdotfr opened this issue Jan 29, 2018 · 5 comments
Closed

OSX 10.13 build failed #2

truatpasteurdotfr opened this issue Jan 29, 2018 · 5 comments
Assignees
Labels
build-infra Build infrastructure bugs/PRs macOS Related to macOS needs testing Needs further testing before merging

Comments

@truatpasteurdotfr
Copy link

Operating Systems

macmini:~ tru$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.2
BuildVersion: 17C205

Barrier Version

git version: 33b8174
barrier: 1.9.0-snapshot.b1-33b81742

Steps to reproduce bug

#!/bin/sh
export Qt5_DIR=/usr/local//Cellar/qt/5.10.0_1
cd "$(dirname $0)" || exit 1
rm -rf build
mkdir build || exit 1
cd build || exit 1
cmake -D CMAKE_BUILD_TYPE=Debug \
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk \
      -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \
      -DCMAKE_OSX_ARCHITECTURES=x86_64 ..  || exit 1
make -j 4 || exit 1
echo "Build completed successfully"

Other info

  • When did the problem start to occur? run the script
  • Is there a way to work around it? Not yet
  • Does this bug prevent you from using Barrier entirely? Yes

errors:

[ 78%] Linking CXX executable ../../bin/barrier
Undefined symbols for architecture x86_64:
  "_AXIsProcessTrusted", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_AXIsProcessTrustedWithOptions", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_CFDictionaryCreate", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_CFRelease", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_GetCurrentProcess", referenced from:
      MainWindow::setVisible(bool) in MainWindow.cpp.o
  "_TransformProcessType", referenced from:
      MainWindow::setVisible(bool) in MainWindow.cpp.o
  "_kAXTrustedCheckOptionPrompt", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_kCFBooleanTrue", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/barrier] Error 1
make[1]: *** [src/gui/CMakeFiles/barrier.dir/all] Error 2
make: *** [all] Error 2
macmini:build tru$ 

@walker0643 walker0643 added macOS Related to macOS build-infra Build infrastructure bugs/PRs labels Feb 8, 2018
@walker0643 walker0643 self-assigned this Feb 13, 2018
@walker0643
Copy link
Member

Fixed in f07070f. Please test.

@walker0643 walker0643 added the needs testing Needs further testing before merging label Feb 13, 2018
@truatpasteurdotfr
Copy link
Author

ld: warning: object file (/usr/local/opt/openssl/lib/libcrypto.a(p12_asn.o)) was built for newer OSX version (10.13) than being linked (10.9)

but it builds fine :D

[ 99%] Building CXX object src/gui/CMakeFiles/barrier.dir/barrier_autogen/mocs_compilation.cpp.o
[100%] Building CXX object src/gui/CMakeFiles/barrier.dir/barrier_autogen/PNK5WDWK6L/qrc_Barrier.cpp.o
[100%] Linking CXX executable ../../bin/barrier
[100%] Built target barrier
Build completed successfully
macmini:barrier tru$ 

@truatpasteurdotfr
Copy link
Author

truatpasteurdotfr commented Feb 19, 2018

trying to push a 10.13 target yields:

[100%] Linking CXX executable ../../bin/barrier
[100%] Built target barrier
Build completed successfully

with this warning:

/Users/tru/barrier/src/lib/platform/OSXDragSimulator.m:38:18: warning: 'NSBorderlessWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
                                                styleMask: NSBorderlessWindowMask
                                                           ^~~~~~~~~~~~~~~~~~~~~~
                                                           NSWindowStyleMaskBorderless
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:954:32: note: 'NSBorderlessWindowMask' has
      been explicitly marked deprecated here
static const NSWindowStyleMask NSBorderlessWindowMask NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSWindowStyleMaskBorderless", 10.0, 10.12) = NSWindowStyleMaskBorderless;
                               ^
1 warning generated.
[ 62%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXDragView.m.o
/Users/tru/barrier/src/lib/platform/OSXDragView.m:72:8: warning: 'dragPromisedFilesOfTypes:fromRect:source:slideBack:event:' is deprecated: first deprecated in macOS 10.13 - Use
      -beginDraggingSessionWithItems:event:source: with an NSFilePromiseProvider instead [-Wdeprecated-declarations]
        [self dragPromisedFilesOfTypes:[NSArray arrayWithObject:m_dragFileExt]
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:582:1: note: 
      'dragPromisedFilesOfTypes:fromRect:source:slideBack:event:' has been explicitly marked deprecated here
- (BOOL)dragPromisedFilesOfTypes:(NSArray<NSString *> *)typeArray fromRect:(NSRect)rect source:(id)sourceObject slideBack:(BOOL)flag event:(NSEvent *)event NS_DEPRECATED_MAC(10_0, 10_13, "Use -beginD...
^
1 warning generated.
[ 62%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXMediaKeySimulator.m.o
/Users/tru/barrier/src/lib/platform/OSXMediaKeySimulator.m:74:49: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
        NSEvent* downRef = [NSEvent otherEventWithType:NSSystemDefined
                                                       ^~~~~~~~~~~~~~~
                                                       NSEventTypeSystemDefined
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been
      explicitly marked deprecated here
static const NSEventType NSSystemDefined        NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined;
                         ^
/Users/tru/barrier/src/lib/platform/OSXMediaKeySimulator.m:81:47: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
        NSEvent* upRef = [NSEvent otherEventWithType:NSSystemDefined
                                                     ^~~~~~~~~~~~~~~
                                                     NSEventTypeSystemDefined
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been
      explicitly marked deprecated here
static const NSEventType NSSystemDefined        NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined;
                         ^
2 warnings generated.
[ 63%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXMediaKeySupport.m.o
/Users/tru/barrier/src/lib/platform/OSXMediaKeySupport.m:136:49: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
        NSEvent* downRef = [NSEvent otherEventWithType:NSSystemDefined
                                                       ^~~~~~~~~~~~~~~
                                                       NSEventTypeSystemDefined
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been
      explicitly marked deprecated here
static const NSEventType NSSystemDefined        NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined;
                         ^
/Users/tru/barrier/src/lib/platform/OSXMediaKeySupport.m:143:47: warning: 'NSSystemDefined' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
        NSEvent* upRef = [NSEvent otherEventWithType:NSSystemDefined
                                                     ^~~~~~~~~~~~~~~
                                                     NSEventTypeSystemDefined
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:78:26: note: 'NSSystemDefined' has been
      explicitly marked deprecated here
static const NSEventType NSSystemDefined        NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventTypeSystemDefined", 10.0, 10.12) = NSEventTypeSystemDefined;
                         ^
2 warnings generated.
[ 63%] Building C object src/lib/platform/CMakeFiles/platform.dir/OSXPasteboardPeeker.m.o
/Users/tru/barrier/src/lib/platform/OSXPasteboardPeeker.m:24:21: warning: 'NSDragPboard' is deprecated: first deprecated in macOS 10.13 [-Wdeprecated-declarations]
        NSString* pbName = NSDragPboard;
                           ^~~~~~~~~~~~
                           NSPasteboardNameDrag
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:347:32: note: 'NSDragPboard' has been
      explicitly marked deprecated here
APPKIT_EXTERN NSPasteboardName NSDragPboard NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSPasteboardNameDrag", 10.0, 10.13);
                               ^
1 warning generated.

@walker0643
Copy link
Member

Unfortunately the previous two post of yours, tru, are highlighting known issues with the build. They both stem from needing to support more releases than just the latest OSX (currently 10.13). As it stands right now the source tree will create builds that are compatible with 10.9 through 10.13 even though the builds are rather noisy with respect to warnings.

Before we close this issue would you mind confirming that the program itself runs well on your OSX test box(es)? Thanks!

@walker0643
Copy link
Member

Got confirmation from tru via IRC. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-infra Build infrastructure bugs/PRs macOS Related to macOS needs testing Needs further testing before merging
Projects
None yet
Development

No branches or pull requests

2 participants