Skip to content

[protobuf]ubuntu-android build failure #8218

@smzahraee

Description

@smzahraee

Host Environment

  • OS: [Ubuntu 18.04]
  • Compiler: NDK

To Reproduce
Steps to reproduce the behavior:
./vcpkg install protobuf

Failure logs
error: undefined reference to '__android_log_write'

with this command:
/opt/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi21 --gcc-toolchain=/opt/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/opt/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -frtti -fexceptions -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,--gc-sections CMakeFiles/protoc.dir/home/mohsen/vcpkg/buildtrees/protobuf/src/v3.9.1-c12428cdd0/src/google/protobuf/compiler/main.cc.o -o protoc-3.9.1.0 libprotocd.a libprotobufd.a -latomic -lm

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions