Hi,
I'm trying to build custom libyang deb packages (with custom options) using the following steps:
$ mkdir build
$ cd build
$ cmake ..
$ make build-deb
But this is not working and I'm getting an error that doesn't indicate clearly what's going wrong:
root@debian:/mnt/renato/git/northbound/lang-c/libyang# mkdir build
root@debian:/mnt/renato/git/northbound/lang-c/libyang# cd build
root@debian:/mnt/renato/git/northbound/lang-c/libyang/build# cmake ..
-- The C compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found FLEX: /usr/bin/flex (found version "2.6.1")
-- Found BISON: /usr/bin/bison (found version "3.0.4")
-- Looking for vdprintf
-- Looking for vdprintf - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PCRE: /usr/lib/x86_64-linux-gnu/libpcre.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13")
-- Found CMocka: /usr/lib/x86_64-linux-gnu/libcmocka.so (Required is at least version "1.0.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/renato/git/northbound/lang-c/libyang/build
root@debian:/mnt/renato/git/northbound/lang-c/libyang/build# make build-deb
Scanning dependencies of target build-deb
dpkg-buildpackage -rfakeroot -us -uc -i -b
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: info: source package libyang
dpkg-buildpackage: info: source version 0.16.28
dpkg-buildpackage: info: source distribution stable
dpkg-buildpackage: info: source changed by Michal Vasko <mvasko@cesnet.cz>
dpkg-source -i --before-build build
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
make -j1 clean
make[1]: Entering directory '/mnt/renato/git/northbound/lang-c/libyang/build'
make[2]: Entering directory '/mnt/renato/git/northbound/lang-c/libyang/build'
make[3]: Entering directory '/mnt/renato/git/northbound/lang-c/libyang/build'
[snip]
make[3]: Leaving directory '/mnt/renato/git/northbound/lang-c/libyang/build'
make[2]: Leaving directory '/mnt/renato/git/northbound/lang-c/libyang/build'
make[1]: Leaving directory '/mnt/renato/git/northbound/lang-c/libyang/build'
dh_clean
rm -f debian/debhelper-build-stamp
rm -f debian/libyang.substvars
rm -f debian/libyang.*.debhelper
rm -rf debian/libyang/
rm -f debian/libyang-dev.substvars
rm -f debian/libyang-dev.*.debhelper
rm -rf debian/libyang-dev/
rm -f debian/libyang-dbg.substvars
rm -f debian/libyang-dbg.*.debhelper
rm -rf debian/libyang-dbg/
rm -f debian/libyang-cpp.substvars
rm -f debian/libyang-cpp.*.debhelper
rm -rf debian/libyang-cpp/
rm -f debian/libyang-cpp-dev.substvars
rm -f debian/libyang-cpp-dev.*.debhelper
rm -rf debian/libyang-cpp-dev/
rm -f debian/libyang-cpp-dbg.substvars
rm -f debian/libyang-cpp-dbg.*.debhelper
rm -rf debian/libyang-cpp-dbg/
rm -f debian/python3-yang.substvars
rm -f debian/python3-yang.*.debhelper
rm -rf debian/python3-yang/
rm -f debian/python3-yang-dbg.substvars
rm -f debian/python3-yang-dbg.*.debhelper
rm -rf debian/python3-yang-dbg/
rm -rf debian/.debhelper/
rm -f debian/*.debhelper.log
rm -f debian/files
find . \( \( \
\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS \) -prune -o -type f -a \
\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
-o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
-o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
-o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
\) -exec rm -f {} + \) -o \
\( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \)
rm -f *-stamp
debian/rules build
dh build
dh_testdir
dh_update_autotools_config
debian/rules override_dh_auto_configure
make[1]: Entering directory '/mnt/renato/git/northbound/lang-c/libyang/build'
mkdir my_build
cd my_build && cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String="Package" -DGEN_LANGUAGE_BINDINGS=ON ..
-- The CXX compiler identification is GNU 6.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found SWIG: /usr/bin/swig3.0 (found suitable version "3.0.10", minimum required is "3.0.0")
-- Python version 3 was selected
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (found suitable version "3.5.3", minimum required is "3")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.3", minimum required is "3")
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/renato/git/northbound/lang-c/libyang/build
make[1]: Leaving directory '/mnt/renato/git/northbound/lang-c/libyang/build'
debian/rules override_dh_auto_build
make[1]: Entering directory '/mnt/renato/git/northbound/lang-c/libyang/build'
cd my_build && make
make[2]: Entering directory '/mnt/renato/git/northbound/lang-c/libyang/build/my_build'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory '/mnt/renato/git/northbound/lang-c/libyang/build/my_build'
debian/rules:28: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/mnt/renato/git/northbound/lang-c/libyang/build'
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1116:
dpkg-buildpackage -rfakeroot -us -uc -i -b failed
mv: cannot stat '../*.deb': No such file or directory
Built target build-deb
Checking the my_build directory I can see it's empty, which seems to be what's causing the errors.
I'm using libyang 0.16.28 and my OS is Debian 9.3.
Any help would be appreciated!
Hi,
I'm trying to build custom libyang deb packages (with custom options) using the following steps:
But this is not working and I'm getting an error that doesn't indicate clearly what's going wrong:
Checking the
my_builddirectory I can see it's empty, which seems to be what's causing the errors.I'm using libyang 0.16.28 and my OS is Debian 9.3.
Any help would be appreciated!