添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

Ran /dev/build.sh and met a problem (debian/rules:55: recipe for target 'clean' faile)
pi@raspberrypi:/opt/dev $ sudo ./build.sh SDR1
** checking for a supported radio type
** - found
** checking for a compatible build host
** - WARNING : dev-tools is currently only tested on Ubuntu 16.04, YMMV. Please open an issue if you've used it successfully on another version of Ubuntu.
** adding additional repo tools
** - done

** checking build dependencies
** - done

** make a home for this build
mkdir -p BUILDS/2017-03-09--23-42-13
** libcoredumper - building Debian package and installing as dependency
cd libcoredumper
./build.sh
wget http://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/google-coredumper/coredumper-1.2.1.tar.gz
--2017-03-09 23:42:13-- http://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/google-coredumper/coredumper-1.2.1.tar.gz
正在解析主机 storage.googleapis.com (storage.googleapis.com)... 192.168.1.200
正在连接 storage.googleapis.com (storage.googleapis.com)|192.168.1.200|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:437668 (427K) [application/x-gzip]
正在保存至: “coredumper-1.2.1.tar.gz”

coredumper-1.2.1.tar.gz 100%[=========================================================>] 427.41K 1.87MB/s 用时 0.2s

2017-03-09 23:42:14 (1.87 MB/s) - 已保存 “coredumper-1.2.1.tar.gz” [437668/437668])

tar zxf coredumper-1.2.1.tar.gz
cd coredumper-1.2.1
mv packages/deb debian
chmod 644 debian/control
patch -p0
patching file src/elfcore.c
patching file src/linuxthreads.c
patching file src/linux_syscall_support_unittest.cc
dpkg-buildpackage -us -uc
dpkg-buildpackage: source package libcoredumper
dpkg-buildpackage: source version 1.2.1-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Google Inc. [email protected]
dpkg-buildpackage: host architecture armhf
dpkg-source --before-build coredumper-1.2.1
debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
** Add here commands to clean up after the build process.
/usr/bin/make distclean
make[1]: Entering directory '/opt/dev/libcoredumper/coredumper-1.2.1'
make[1]: *** No rule to make target 'distclean'。 停止。
make[1]: Leaving directory '/opt/dev/libcoredumper/coredumper-1.2.1'
debian/rules:55: recipe for target 'clean' failed
make: [clean] Error 2 (ignored)
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
dh_clean
dh_clean: Compatibility levels before 5 are no longer supported (level 4 requested)
debian/rules:55: recipe for target 'clean' failed
make: *** [clean] Error 25
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
ERROR: command failed!
** ERROR: command failed!

P.S. I use ** to replace # which are in the nofication.

As you see , I want to build a base station with Motorola C118 on my raspberrypi.
But I met a problem with running /dev/build.sh .
I try to edit /dev/libcoredumper/build.sh. Unfortunately, it didn't work.
By the way, the package (coredumper-1.2.1.tar.gz) caches at my temp server. Because I behind the GreatFireWall and can not link to Google. But it was surly from Google.

+1, I encountered same problem on ubuntu 16.10 - maybe this is the problem, I'm now trying with 12.04 LTS and will update post with results.
edit:
12.04 don't have some libs, 14.04 either - in #36 is tutorial that suggests that 16.04 works.

Thank you for sharing your experience.
When I met this problem, I was afraid that I was the only one who met this issue and no one could help me.
I tried to edit /dev/libcoredumper/build.sh with adding "./configure" but it didn't work.

By the way, do you mean missing the lib named "libzmq5-dev(Version 4.1)" ? I had the same, but I solved finally.
you can follow this page ( http://zeromq.org/distro:debian ). You also can download a deb package or source code from packages.ubuntu.com. Just search libzmq5.
I think it not only works on 16.04 but also 12.04or14.04, If the deb packages are suitable for your system version. You can use source code to complie too.

That's true, one of missing lib was one you mentioned, but it wasn't the only one as far as I remember.

On the second hand, link posted above has one undeniable feature: link for google lib is fixed in master branch and downloading it on your own isn't necessary when you omit step with switching branch.

@tom-2015 I have been trying to install it on a Raspberry PI 3 using Ubuntu Mate 16.04 and I get the same problem with linux_syscall_support.
Have you solved it?

I did get to a point where it stopped complaining about the coredumper problem.
I made a small project that creates a "fake" coredumper library. Just a library with empty functions that do
nothing but at least the compiler doens't complain anymore :). Ofcourse the coredumper will not work when the OpenBTS program crashes.

You can download this code here https://github.com/tom-2015/fakecoredumper Run the install.sh this will create a coredumper library and include file in /usr/lib and /usr/include.

After that you can compile Openbts with ./build.sh B200 openbts

Unfortunately for me on Raspbian Stretch the compiler version is newer and gives all kind of strange errors :( Maybe it works on Ubuntu 16.04?

@tom-2015 I Ran the install.sh file and got a warning saying that the 'google' directory already exists, so I removed it manually and ran the install.sh file successfully, however, after running ./build.sh B200 i still get the same error, do you suggest delete everything and install it again? or maybe I installed the fakecoredumper in a wrong way, Thank you

I forgot that you probably need to modify dev/libcoredumper/build.sh to skip the build process of the libcoredumper add exit 0; so it looks like this:

#!/bin/bash
exit 0;
VERSION=1.2.1
# - found
# checking for a compatible build host
# - WARNING : dev-tools is currently only tested on Ubuntu 16.04, YMMV. Please open an issue if you've used it successfully on another version of Ubuntu.
# adding additional repo tools
# - done
# checking build dependencies
# - done
# make a home for this build
mkdir -p BUILDS/2017-12-04--23-53-28
# libcoredumper - building Debian package and installing as dependency
cd libcoredumper
./build.sh
mv libcoredumper* ../BUILDS/2017-12-04--23-53-28
mv: cannot stat 'libcoredumper*': No such file or directory
# ERROR: command failed!