Replies: 2 comments
-
把boringssl中的test部分编译中直接去掉,仍然会有报错: [ 21%] Generating err_data.c 这种不知道如何解决 |
Beta Was this translation helpful? Give feedback.
-
需要联网,才能get那个链接,当前已解决 |
Beta Was this translation helpful? Give feedback.
-
What happened?
when building ios on mac, will happen errors:
[ 18%] Built target xquic
[ 18%] Built target fipsmodule
[ 18%] Linking CXX static library ../../outputs/libboringssl_gtest.a
[ 18%] Built target boringssl_gtest
make: *** [all] Error 2
mac2014deiMac:xquic root#
Steps To Reproduce
编译环境:
mac版本:
macOs Catalina 10.15.7
xcode版本:
xcode 12.4
cmake --version
cmake version 3.23.0
make --version
GNU Make 3.81
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
go version
go version go1.18 darwin/amd64
运行命令:
./xqc_build.sh ios ./build_ios ./build_ios_a ./third_party/boringssl
xquic和boringssl版本:
当前最新版本,或者 1.11号之前的版本
运行脚本后出现错误:
mac2014deiMac:xquic root# ./xqc_build.sh ios ./build_ios ./build_ios_a ./third_party/boringssl
directory already exists
directory already exists
compiling xquic on armv7 arch
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- [DEFAULTS] Enabling ARC support by default. ENABLE_ARC not provided!
-- [DEFAULTS] Hiding symbols visibility by default. ENABLE_VISIBILITY not provided!
-- [DEFAULTS] Using NON-strict compiler checks by default. ENABLE_STRICT_TRY_COMPILE not provided!
-- Configuring iphoneos build for platform: OS, architecture(s): armv7
-- Using SDK: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk
-- Using C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Using CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Using libtool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Using install name tool: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool
-- Autoconf target triple: armv7-apple-ios10.0
-- Using minimum deployment version: 10.0 (SDK version: 14.4)
-- Merging integrated CMake 3.14+ iOS,tvOS,watchOS,macOS toolchain(s) with this toolchain!
-- CMake version: 3.23.0
-- Using a data_ptr size of: 4
-- Bitcode: Disabled
-- ARC: Enabled
-- Hiding symbols: Enabled
-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Perl: /usr/bin/perl (found version "5.18.4")
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mac2014/Desktop/share/ios/xquic/build_ios
[ 1%] Generating crypto_test_data.cc
[ 1%] Built target global_target
[ 1%] Building CXX object third_party/boringssl/CMakeFiles/boringssl_gtest.dir/third_party/googletest/src/gtest-all.cc.o
[ 1%] Built target xquic_global
[ 1%] Generating vpaes-armv7.S
[ 1%] Building C object CMakeFiles/xquic.dir/src/http3/xqc_var_buf.c.o
[ 1%] Generating aesv8-armx.S
[ 2%] Building C object CMakeFiles/xquic.dir/src/http3/xqc_h3_conn.c.o
[ 2%] Generating armv4-mont.S
go: golang.org/x/[email protected]: Get "https://proxy.golang.org/golang.org/x/crypto/@v/v0.0.0-20210513164829-c07d793c2f9a.mod": x509: “proxy.golang.org” certificate is not standards compliant
go: golang.org/x/[email protected]: Get "https://proxy.golang.org/golang.org/x/crypto/@v/v0.0.0-20210513164829-c07d793c2f9a.mod": x509: “proxy.golang.org” certificate is not standards compliant
make[2]: *** [third_party/boringssl/crypto_test_data.cc] Error 1
make[2]: *** Deleting file `third_party/boringssl/crypto_test_data.cc'
make[1]: *** [third_party/boringssl/CMakeFiles/crypto_test_data.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 2%] Building C object CMakeFiles/xquic.dir/src/http3/xqc_h3_stream.c.o
[ 2%] Generating bsaes-armv7.S
[ 3%] Generating ghash-armv4.S
[ 3%] Building C object CMakeFiles/xquic.dir/src/http3/xqc_h3_request.c.o
[ 3%] Generating ghashv8-armx.S
[ 3%] Generating sha1-armv4-large.S
[ 3%] Generating sha256-armv4.S
[ 4%] Generating sha512-armv4.S
[ 4%] Building C object CMakeFiles/xquic.dir/src/http3/frame/xqc_h3_frame.c.o
[ 4%] Building C object CMakeFiles/xquic.dir/src/http3/xqc_h3_header.c.o
Scanning dependencies of target fipsmodule
[ 4%] Building C object third_party/boringssl/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.o
[ 4%] Building C object third_party/boringssl/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/fips_shared_support.c.o
[ 5%] Building C object CMakeFiles/xquic.dir/src/http3/xqc_h3_ctx.c.o
[ 5%] Building ASM object third_party/boringssl/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesv8-armx.S.o
[ 5%] Building C object CMakeFiles/xquic.dir/src/http3/xqc_h3_defs.c.o
[ 6%] Building ASM object third_party/boringssl/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/armv4-mont.S.o
[ 6%] Building C object CMakeFiles/xquic.dir/src/http3/qpack/xqc_qpack.c.o
[ 6%] Building C object CMakeFiles/xquic.dir/src/http3/qpack/xqc_prefixed_int.c.o
[ 6%] Building ASM object third_party/boringssl/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bsaes-armv7.S.o
[ 6%] Building C object CMakeFiles/xquic.dir/src/http3/qpack/xqc_prefixed_str.c.o
[ 7%] Building C object CMakeFiles/xquic.dir/src/http3/qpack/xqc_decoder.c.o
[ 7%] Building ASM object third_party/boringssl/crypto/fipsmodule/CMakeFiles/fipsmodule.di
。。。。
[ 17%] Building C object CMakeFiles/xquic.dir/src/congestion_control/xqc_window_filter.c.o
[ 17%] Building C object CMakeFiles/xquic.dir/src/congestion_control/xqc_sample.c.o
[ 17%] Building C object CMakeFiles/xquic.dir/src/congestion_control/xqc_new_reno.c.o
[ 18%] Linking C static library outputs/libxquic.a
[ 18%] Built target xquic
[ 18%] Linking CXX static library ../../outputs/libboringssl_gtest.a
[ 18%] Built target fipsmodule
[ 18%] Built target boringssl_gtest
make: *** [all] Error 2
mac2014deiMac:xquic root#
CMakeError.log中显示:
Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
xquic.sh脚本中也已根据之前的讨论确认修改过:
if [ x"$platform" == xios ] ; then
if [ x"$IOS_CMAKE_TOOLCHAIN" == x ] ; then
echo "IOS_CMAKE_TOOLCHAIN MUST be defined"
exit 0
fi
generate_plat_spec() {
plat_spec=
if [ x"$platform" == xios ] ; then
plat_spec="-DARCHS=$1"
if [ x"$1" == xarmv7 ] ; then
plat_spec="$plat_spec -DPLATFORM=OS"
elif [ x"$1" == xarm64 ] ; then
plat_spec="$plat_spec -DPLATFORM=OS64"
elif [ x"$1" == xx86_64 ] ; then
plat_spec="$plat_spec -DPLATFORM=SIMULATOR64"
elif [ x"$1" == xi386 ] ; then
plat_spec="$plat_spec -DPLATFORM=SIMULATOR"
fi
else
plat_spec="-DANDROID_ABI=$1"
fi
echo $plat_spec
}
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions