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

run build_lib.sh but got errors #48

Open
GeorgeXc opened this issue Nov 17, 2016 · 2 comments
Open

run build_lib.sh but got errors #48

GeorgeXc opened this issue Nov 17, 2016 · 2 comments

Comments

@GeorgeXc
Copy link

./build_libs.sh
GOARCH: amd64
GOOS: darwin
OPTION:
-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'Debug' as none was specified.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found Protobuf: /usr/local/lib/libprotobuf.dylib (found suitable version "3.0.0", minimum required is "3")
-- Found Perl: /usr/bin/perl (found version "5.18.2")
-- The ASM compiler identification is Clang
-- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/baoyangc/code/goprojs/src/github.com/devsisters/goquic/libquic/build/debug
/Users/baoyangc/code/goprojs/src/github.com/devsisters/goquic
ninja: Entering directory `libquic/build/debug'
[224/750] Linking CXX static library protobuf/libprotobuf.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: protobuf/libprotobuf.a(atomicops_internals_x86_gcc.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: protobuf/libprotobuf.a(atomicops_internals_x86_msvc.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: protobuf/libprotobuf.a(atomicops_internals_x86_gcc.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: protobuf/libprotobuf.a(atomicops_internals_x86_msvc.cc.o) has no symbols
[351/750] Linking C static library boringssl/crypto/libcrypto.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(poly1305.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(poly1305_arm.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(generic.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(deterministic.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(windows.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(cpu-aarch64-linux.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(cpu-arm.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(cpu-arm-linux.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(refcount_c11.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(thread_none.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(thread_win.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(poly1305.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(poly1305_arm.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(generic.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(deterministic.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(windows.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(cpu-aarch64-linux.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(cpu-arm.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(cpu-arm-linux.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(refcount_c11.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(thread_none.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: boringssl/crypto/libcrypto.a(thread_win.c.o) has no symbols
[607/750] Building CXX object CMakeFiles/quic.dir/src/base/sys_info_mac.mm.o
FAILED: CMakeFiles/quic.dir/src/base/sys_info_mac.mm.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DUSE_OPENSSL -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I../../src -I../../src/third_party/modp_b64 -I../../boringssl/include -I../../src/third_party/protobuf/src -I/src -Wall -fpic -std=gnu++11 -g -MD -MT CMakeFiles/quic.dir/src/base/sys_info_mac.mm.o -MF CMakeFiles/quic.dir/src/base/sys_info_mac.mm.o.d -o CMakeFiles/quic.dir/src/base/sys_info_mac.mm.o -c /Users/baoyangc/code/goprojs/src/github.com/devsisters/goquic/libquic/src/base/sys_info_mac.mm
In file included from /Users/baoyangc/code/goprojs/src/github.com/devsisters/goquic/libquic/src/base/sys_info_mac.mm:20:
../../src/base/mac/sdk_forward_declarations.h:249:11: error: unknown property attribute 'class'
@Property(class) BOOL allowsAutomaticWindowTabbing;
^
1 error generated.
[612/750] Building CXX object CMakeFil.../threading/thread_id_name_manager.cc.o
ninja: build stopped: subcommand failed.

@zmzss0213
Copy link

I have a similar error. Did you fix it?

@austinkottke
Copy link

Got around this error by changing the build tool to CommandLineTools

sudo xcode-select --switch /Library/Developer/CommandLineTools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants