Skip to content

build issues #2

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

Closed
jwinarske opened this issue Jan 3, 2019 · 1 comment
Closed

build issues #2

jwinarske opened this issue Jan 3, 2019 · 1 comment

Comments

@jwinarske
Copy link

I'm building with Clang 8.0/compiler-rt/libcxxabi/libcxx/libunwind. I ran into these issues, which are easy fixes. Not sure if my changes are compatible with your build, but happy to generate a PR if they are.

My build scripts for the stack are here (it's missing my llvm trunk CMake changes, and one has to populate their own sysroot): flutter_embedded

Issues

/home/joel/git/flutter_embedded/build/rpi_embedder-prefix/src/rpi_embedder/flutter/flutter_application.cc:68:9: error: 'render_delegate_' in capture list does not name a variable
      [&render_delegate_](void *userdata, const char *name) -> void * {
        ^
/home/joel/git/flutter_embedded/build/rpi_embedder-prefix/src/rpi_embedder/flutter/flutter_application.cc:179:5: error: no member named 'sleep' in the global namespace
  ::sleep(INT_MAX);
  ~~^

/home/joel/git/flutter_embedded/build/rpi_embedder-prefix/src/rpi_embedder/flutter/pi_display.cc:226:7: error: use of undeclared identifier 'name'
  if (name == nullptr) {
      ^
/home/joel/git/flutter_embedded/build/rpi_embedder-prefix/src/rpi_embedder/flutter/pi_display.cc:230:42: error: use of undeclared identifier 'name'
  if (auto address = dlsym(RTLD_DEFAULT, name)) {

Build Config (post fixes)

[ 20%] Building CXX object CMakeFiles/flutter.dir/flutter/flutter_application.cc.o /home/joel/git/flutter_embedded/sdk/toolchain/bin/clang++ --sysroot=/home/joel/git/flutter_embedded/sdk/sysroot -DHAVE_LIBBCM_HOST -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DPIC -DSTANDALONE -DTARGET_POSIX -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_EXTERNAL_OMX -DUSE_VCHIQ_ARM -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LINUX -D_REENTRANT -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include/interface/vcos/pthreads -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include/interface/vmcs_host/linux -I/home/joel/git/flutter_embedded/build/engine-prefix/src/engine/src/out/linux_debug_arm --target=arm-linux-gnueabihf -stdlib=libc++ -I/home/joel/git/flutter_embedded/sdk/toolchain/include -std=c++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -U_FORTIFY_SOURCE -Wall -g -ftree-vectorize -pipe -Os -DNDEBUG -fPIC -o CMakeFiles/flutter.dir/flutter/flutter_application.cc.o -c /home/joel/git/flutter_embedded/build/rpi_embedder-prefix/src/rpi_embedder/flutter/flutter_application.cc [ 40%] Building CXX object CMakeFiles/flutter.dir/flutter/main.cc.o /home/joel/git/flutter_embedded/sdk/toolchain/bin/clang++ --sysroot=/home/joel/git/flutter_embedded/sdk/sysroot -DHAVE_LIBBCM_HOST -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DPIC -DSTANDALONE -DTARGET_POSIX -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_EXTERNAL_OMX -DUSE_VCHIQ_ARM -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LINUX -D_REENTRANT -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include/interface/vcos/pthreads -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include/interface/vmcs_host/linux -I/home/joel/git/flutter_embedded/build/engine-prefix/src/engine/src/out/linux_debug_arm --target=arm-linux-gnueabihf -stdlib=libc++ -I/home/joel/git/flutter_embedded/sdk/toolchain/include -std=c++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -U_FORTIFY_SOURCE -Wall -g -ftree-vectorize -pipe -Os -DNDEBUG -fPIC -o CMakeFiles/flutter.dir/flutter/main.cc.o -c /home/joel/git/flutter_embedded/build/rpi_embedder-prefix/src/rpi_embedder/flutter/main.cc [ 60%] Building CXX object CMakeFiles/flutter.dir/flutter/pi_display.cc.o /home/joel/git/flutter_embedded/sdk/toolchain/bin/clang++ --sysroot=/home/joel/git/flutter_embedded/sdk/sysroot -DHAVE_LIBBCM_HOST -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DPIC -DSTANDALONE -DTARGET_POSIX -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_EXTERNAL_OMX -DUSE_VCHIQ_ARM -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LINUX -D_REENTRANT -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include/interface/vcos/pthreads -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include/interface/vmcs_host/linux -I/home/joel/git/flutter_embedded/build/engine-prefix/src/engine/src/out/linux_debug_arm --target=arm-linux-gnueabihf -stdlib=libc++ -I/home/joel/git/flutter_embedded/sdk/toolchain/include -std=c++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -U_FORTIFY_SOURCE -Wall -g -ftree-vectorize -pipe -Os -DNDEBUG -fPIC -o CMakeFiles/flutter.dir/flutter/pi_display.cc.o -c /home/joel/git/flutter_embedded/build/rpi_embedder-prefix/src/rpi_embedder/flutter/pi_display.cc [ 80%] Building CXX object CMakeFiles/flutter.dir/flutter/utils.cc.o /home/joel/git/flutter_embedded/sdk/toolchain/bin/clang++ --sysroot=/home/joel/git/flutter_embedded/sdk/sysroot -DHAVE_LIBBCM_HOST -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DPIC -DSTANDALONE -DTARGET_POSIX -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_EXTERNAL_OMX -DUSE_VCHIQ_ARM -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LINUX -D_REENTRANT -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include/interface/vcos/pthreads -I/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/include/interface/vmcs_host/linux -I/home/joel/git/flutter_embedded/build/engine-prefix/src/engine/src/out/linux_debug_arm --target=arm-linux-gnueabihf -stdlib=libc++ -I/home/joel/git/flutter_embedded/sdk/toolchain/include -std=c++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -U_FORTIFY_SOURCE -Wall -g -ftree-vectorize -pipe -Os -DNDEBUG -fPIC -o CMakeFiles/flutter.dir/flutter/utils.cc.o -c /home/joel/git/flutter_embedded/build/rpi_embedder-prefix/src/rpi_embedder/flutter/utils.cc [100%] Linking CXX executable flutter /opt/cmake-3.13.1-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/flutter.dir/link.txt --verbose=1 /home/joel/git/flutter_embedded/sdk/toolchain/bin/clang++ --sysroot=/home/joel/git/flutter_embedded/sdk/sysroot --target=arm-linux-gnueabihf -stdlib=libc++ -I/home/joel/git/flutter_embedded/sdk/toolchain/include -std=c++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -U_FORTIFY_SOURCE -Wall -g -ftree-vectorize -pipe -Os -DNDEBUG -L/home/joel/git/flutter_embedded/sdk/toolchain/lib --rtlib=compiler-rt -fuse-ld=gold -v CMakeFiles/flutter.dir/flutter/flutter_application.cc.o CMakeFiles/flutter.dir/flutter/main.cc.o CMakeFiles/flutter.dir/flutter/pi_display.cc.o CMakeFiles/flutter.dir/flutter/utils.cc.o -o flutter -L/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/lib -L/home/joel/git/flutter_embedded/build/engine-prefix/src/engine/src/out/linux_debug_arm -Wl,-rpath,/opt/vc/lib:/home/joel/git/flutter_embedded/build/engine-prefix/src/engine/src/out/linux_debug_arm: -lbrcmGLESv2 -lbrcmEGL -lbcm_host -lflutter_engine -lpthread -ldl clang version 8.0.0 (trunk 350157) Target: arm-unknown-linux-gnueabihf Thread model: posix InstalledDir: /home/joel/git/flutter_embedded/sdk/toolchain/bin Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/4.6 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/4.6.4 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/4.7 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/4.7.3 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/4.8 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/4.8.5 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/4.9 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/4.9.3 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/5 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/5.4.1 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6 Found candidate GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0 Selected GCC installation: /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0 Candidate multilib: .;@m32 Selected multilib: .;@m32 "/home/joel/git/flutter_embedded/sdk/toolchain/bin/arm-linux-gnueabihf-ld.gold" --sysroot=/home/joel/git/flutter_embedded/sdk/sysroot -EL -z relro -X --hash-style=gnu --eh-frame-hdr -m armelf_linux_eabi -dynamic-linker /lib/ld-linux-armhf.so.3 -o flutter /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0/../../../arm-linux-gnueabihf/crt1.o /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0/../../../arm-linux-gnueabihf/crti.o /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0/crtbegin.o -L/home/joel/git/flutter_embedded/sdk/toolchain/lib -L/home/joel/git/flutter_embedded/sdk/sysroot/opt/vc/lib -L/home/joel/git/flutter_embedded/build/engine-prefix/src/engine/src/out/linux_debug_arm -L/home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0 -L/home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0/../../../arm-linux-gnueabihf -L/home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0/../../../../lib -L/home/joel/git/flutter_embedded/sdk/sysroot/lib/arm-linux-gnueabihf -L/home/joel/git/flutter_embedded/sdk/sysroot/lib/../lib -L/home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/arm-linux-gnueabihf -L/home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/../lib -L/home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/arm-linux-gnueabihf/../../lib -L/home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0/../../.. -L/home/joel/git/flutter_embedded/sdk/sysroot/lib -L/home/joel/git/flutter_embedded/sdk/sysroot/usr/lib CMakeFiles/flutter.dir/flutter/flutter_application.cc.o CMakeFiles/flutter.dir/flutter/main.cc.o CMakeFiles/flutter.dir/flutter/pi_display.cc.o CMakeFiles/flutter.dir/flutter/utils.cc.o -rpath /opt/vc/lib:/home/joel/git/flutter_embedded/build/engine-prefix/src/engine/src/out/linux_debug_arm: -lbrcmGLESv2 -lbrcmEGL -lbcm_host -lflutter_engine -lpthread -ldl -lc++ -lm /home/joel/git/flutter_embedded/sdk/toolchain/lib/clang/8.0.0/lib/linux/libclang_rt.builtins-armhf.a -lc /home/joel/git/flutter_embedded/sdk/toolchain/lib/clang/8.0.0/lib/linux/libclang_rt.builtins-armhf.a /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0/crtend.o /home/joel/git/flutter_embedded/sdk/sysroot/usr/lib/gcc/arm-linux-gnueabihf/6.3.0/../../../arm-linux-gnueabihf/crtn.o

@jwinarske
Copy link
Author

Pull Request

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

1 participant