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

Build failure on ARM64 with Debian Jessie #1507

Open
Leo-Yan opened this issue Dec 29, 2017 · 1 comment
Open

Build failure on ARM64 with Debian Jessie #1507

Leo-Yan opened this issue Dec 29, 2017 · 1 comment

Comments

@Leo-Yan
Copy link

Leo-Yan commented Dec 29, 2017

Hi there,

I searched there have two similar tickets (#1434 and #1375) for building failure, but they are not exactly same with behavior I observed the build failure.

The kernel is the latest mainline Linux kernel (4.15-rc5) and the debian is for ARM64 releasing, GCC is 4.9.2.

Please note, I install all dependency libs with "apt-get" command but it misses luajit, so I manually download the code and build/install it from: http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz, this beta version has supported ARM64 yet.

I use below command to build bcc:

root@linaro-developer:~/bcc/build# cmake .. -DCMAKE_INSTALL_PREFIX=/usr
root@linaro-developer:~/bcc/build# make

So it always to wait for compiling the file src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/b_frontend_action.cc.o, the detailed log as below:

root@linaro-developer:~/bcc/build# cmake .. -DCMAKE_INSTALL_PREFIX=/usr
-- Latest recognized Git tag is v0.5.0
-- Git HEAD is 46994dd75e82f5d785af8a6ebd92f0e859526668
-- Revision is 0.5.0-46994dd7
-- Found LLVM: /usr/lib/llvm-3.7/include 3.7.0
-- Using static-libstdc++
-- Configuring done
-- Generating done
-- Build files have been written to: /root/bcc/build
root@linaro-developer:~/bcc/build# make
[  8%] Built target bcc-loader-static
[  9%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/b_frontend_action.cc.o

There have no any RCU stall or kernel panic, so this should not the same issue with #1375.

Could you give suggestion so I can move forward for enabling bcc, thanks in advance.

@vielmetti
Copy link

Hello @Leo-Yan - if my notes are correct, you will need to install the as of yet unreleased LLVM and clang 6.0.0 to build bcc, as the provided system llvm-3.7 is too old.

http://llvm.org/ is where I downloaded this from.

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

2 participants