Jump to content

[ o.k. ] Runtime [ 835 min ] Time for upgrade?


Recommended Posts

Posted

Sending compression to background is a good idea, but I would prefer to refactor this first. In addition I think you can't nice bash functions, you need to nice either zip/7za process or do some magic with "declare -f"

 

Ok, I also made a little mistake regarding armbian.txt (would've been missing). Anyway, it should work (now) as intended: http://pastebin.com/nVgBPj1V

 

 

 

diff --git a/debootstrap-ng.sh b/debootstrap-ng.sh

index 256e273..cf67ac5 100644

--- a/debootstrap-ng.sh

+++ b/debootstrap-ng.sh

@@ -456,20 +456,35 @@ create_image()

        # stage: write u-boot

        write_uboot $LOOP

 

-       cp $CACHEDIR/sdcard/etc/armbian.txt $CACHEDIR/

-

        # unmount /boot first, rootfs second, image file last

        sync

        [[ $BOOTSIZE != 0 ]] && umount -l $CACHEDIR/mount/boot

        [[ $ROOTFS_TYPE != nfs ]] && umount -l $CACHEDIR/mount

        losetup -d $LOOP

 

-       mv $CACHEDIR/tmprootfs.raw $CACHEDIR/${version}.raw

-       cd $CACHEDIR/

+       if [ ${BUILD_ALL} = TRUE ]; then

+               TEMP_DIR="$(mktemp -d $CACHEDIR/${version}.XXXXXX)"

+               cp $CACHEDIR/sdcard/etc/armbian.txt "${TEMP_DIR}/"

+               mv "$CACHEDIR/tmprootfs.raw" "${TEMP_DIR}/${version}.raw"

+               cd "${TEMP_DIR}/"

+               sign_and_compress &

+       else

+               cp $CACHEDIR/sdcard/etc/armbian.txt $CACHEDIR/

+               mv $CACHEDIR/tmprootfs.raw $CACHEDIR/${version}.raw

+               cd $CACHEDIR/

+               sign_and_compress

+       fi

+} #############################################################################

 

+# sign_and_compress

+#

+# signs and compresses the image

+#

+sign_and_compress()

+{

        # stage: compressing or copying image file

        if [[ $COMPRESS_OUTPUTIMAGE != yes ]]; then

-               mv -f $CACHEDIR/${version}.raw $DEST/images/${version}.raw

+               mv -f ${version}.raw $DEST/images/${version}.raw

                display_alert "Done building" "$DEST/images/${version}.raw" "info"

        else

                display_alert "Signing and compressing" "Please wait!" "info"

@@ -482,14 +497,22 @@ create_image()

                fi

                if [[ $SEVENZIP == yes ]]; then

                        local filename=$DEST/images/${version}.7z

-                       7za a -t7z -bd -m0=lzma2 -mx=3 -mfb=64 -md=32m -ms=on $filename ${version}.raw armbian.txt *.asc sha256sum >/dev/null 2>&1

+                       if [ ${BUILD_ALL} = TRUE ]; then

+                               nice -n 19 7za a -t7z -bd -m0=lzma2 -mx=3 -mfb=64 -md=32m -ms=on $filename ${version}.raw armbian.txt *.asc sha256sum >/dev/null 2>&1

+                       else

+                               7za a -t7z -bd -m0=lzma2 -mx=3 -mfb=64 -md=32m -ms=on $filename ${version}.raw armbian.txt *.asc sha256sum >/dev/null 2>&1

+                       fi

                else

                        local filename=$DEST/images/${version}.zip

                        zip -FSq $filename ${version}.raw armbian.txt *.asc sha256sum

                fi

                rm -f ${version}.raw *.asc armbian.txt sha256sum

-               local filesize=$(ls -l --b=M $filename | cut -d " " -f5)

-               display_alert "Done building" "$filename [$filesize]" "info"

+               if [ ${BUILD_ALL} = TRUE ]; then

+                       cd .. && rmdir "${TEMP_DIR}"

+               else

+                       local filesize=$(ls -l --b=M $filename | cut -d " " -f5)

+                       display_alert "Done building" "$filename [$filesize]" "info"

+               fi

        fi

 } #############################################################################

 

 

Posted

1. Clean build of Cubietruck desktop Jessie default with EXTERNAL="yes" and EXTERNAL_NEW="compile" . OK

2. The same once again:
------------------------------------------------------

[ o.k. ] Using user configuration override [ userpatches/lib.config ]                                                                      
[ o.k. ] Starting Armbian build script [ @host ]
[ o.k. ] Downloading sources 
[ o.k. ] Checking git sources [ u-boot v2016.09 ]
[ .... ] Up to date 
[ o.k. ] Checking git sources [ linux-sunxi sunxi-3.4 ]
[ .... ] Up to date 
[ o.k. ] Checking git sources [ sunxi-display-changer master ]
[ .... ] Up to date 
[ o.k. ] Checking git sources [ sunxi-tools master ]
[ .... ] Up to date 
[ o.k. ] Creating board support package [ cubietruck default ]
[ .... ] Fingerprinting 
[ o.k. ] Building package [ linux-jessie-root-cubietruck ]
[ o.k. ] Starting package building process [ jessie armhf ]
[ o.k. ] Packages are up to date [ libDRI2 jessie armhf ]
[ o.k. ] Packages are up to date [ libvdpau jessie armhf ]
[ o.k. ] Packages are up to date [ libUMP jessie armhf ]
[ o.k. ] Packages are up to date [ libcedrus jessie armhf ]
[ o.k. ] Packages are up to date [ xf86-video-fbturbo jessie armhf ]
[ o.k. ] Packages are up to date [ libass jessie armhf ]
[ o.k. ] Packages are up to date [ FFmpeg jessie armhf ]
[ o.k. ] Packages are up to date [ fswebcam-gc2035 jessie armhf ]
[ o.k. ] Packages are up to date [ guvcview jessie armhf ]
[ o.k. ] Packages are up to date [ hostapd jessie armhf ]
[ o.k. ] Packages are up to date [ hostapd-realtek jessie armhf ]
[ o.k. ] Packages are up to date [ libglshim jessie armhf ]
[ o.k. ] Packages are up to date [ libmali-sunxi-r3p0 jessie armhf ]
[ o.k. ] Packages are up to date [ libvdpau-sunxi jessie armhf ]
[ o.k. ] Packages are up to date [ mpv jessie armhf ]
[ o.k. ] Packages are up to date [ sunxi-tools jessie armhf ]
[ o.k. ] Packages are up to date [ swconfig jessie armhf ]
[ o.k. ] Starting package building process [ jessie arm64 ]
[ .... ] Skipping building libDRI2 for [ jessie arm64 ]
[ .... ] Skipping building libvdpau for [ jessie arm64 ]
[ .... ] Skipping building libUMP for [ jessie arm64 ]
[ .... ] Skipping building libcedrus for [ jessie arm64 ]
[ .... ] Skipping building xf86-video-fbturbo for [ jessie arm64 ]
[ .... ] Skipping building libass for [ jessie arm64 ]
[ .... ] Skipping building FFmpeg for [ jessie arm64 ]
[ .... ] Skipping building fswebcam-gc2035 for [ jessie arm64 ]
[ .... ] Skipping building guvcview for [ jessie arm64 ]
[ o.k. ] Packages are up to date [ hostapd jessie arm64 ]
[ o.k. ] Packages are up to date [ hostapd-realtek jessie arm64 ]
[ .... ] Skipping building libglshim for [ jessie arm64 ]
[ .... ] Skipping building libmali-sunxi-r3p0 for [ jessie arm64 ]
[ .... ] Skipping building libvdpau-sunxi for [ jessie arm64 ]
[ .... ] Skipping building mpv for [ jessie arm64 ]
[ o.k. ] Packages are up to date [ sunxi-tools jessie arm64 ]
[ .... ] Skipping building swconfig for [ jessie arm64 ]
[ o.k. ] Starting package building process [ xenial armhf ]
[ .... ] Skipping building libDRI2 for [ xenial armhf ]
[ o.k. ] Building packages [ libvdpau xenial armhf ]
[ o.k. ] Checking git sources [ extra/libvdpau master ]
[ .... ] Up to date 

,,, this ends up in error.

Posted

Did you delete all existing packages before building (I mean from $DEST/debs/extra)? If you didn't, then this error is due to build dependencies missing in chroot, this should fix itself if you start with no prebuilt packages.

Posted

I deleted all deb files. I can repeat to be  I am 100% sure ... it's working only 80 minutes here :)

Posted

Do I need to remove buildpkg and cache subdirs too?

No. Then what is the exact output and error message?

 

 

 

I tried to delete libvdpau debs for xenial target:

➜  armbian  % _ ./compile.sh EXTERNAL_NEW=compile CLEAN_LEVEL="" KERNEL_ONLY=yes BOARD=orangepipc BRANCH=default
[ o.k. ] Command line: setting EXTERNAL_NEW to [ compile ]
[ o.k. ] Command line: setting CLEAN_LEVEL to [ (empty) ]
[ o.k. ] Command line: setting KERNEL_ONLY to [ yes ]
[ o.k. ] Command line: setting BOARD to [ orangepipc ]
[ o.k. ] Command line: setting BRANCH to [ default ]
[ o.k. ] Preparing [ host ]
[ o.k. ] Build host OS release [ xenial ]
[ o.k. ] Using user configuration override [ userpatches/lib.config ]
[ o.k. ] Starting Armbian build script [ @host ]
[ o.k. ] Downloading sources
[ o.k. ] Checking git sources [ u-boot v2016.09 ]
[ .... ] Up to date
[ o.k. ] Checking git sources [ linux-sun8i h3 ]
[ .... ] Up to date
[ o.k. ] Checking git sources [ sunxi-display-changer master ]
[ .... ] Up to date
[ o.k. ] Checking git sources [ sunxi-tools master ]
[ .... ] Up to date
[ o.k. ] Starting package building process [ jessie armhf ]
[ o.k. ] Packages are up to date [ libDRI2 jessie armhf ]
[ o.k. ] Packages are up to date [ libvdpau jessie armhf ]
[ o.k. ] Packages are up to date [ libUMP jessie armhf ]
[ o.k. ] Packages are up to date [ libcedrus jessie armhf ]
[ o.k. ] Packages are up to date [ xf86-video-fbturbo jessie armhf ]
[ o.k. ] Packages are up to date [ libass jessie armhf ]
[ o.k. ] Packages are up to date [ FFmpeg jessie armhf ]
[ o.k. ] Packages are up to date [ fswebcam-gc2035 jessie armhf ]
[ o.k. ] Packages are up to date [ guvcview jessie armhf ]
[ o.k. ] Packages are up to date [ hostapd jessie armhf ]
[ o.k. ] Packages are up to date [ hostapd-realtek jessie armhf ]
[ o.k. ] Packages are up to date [ libglshim jessie armhf ]
[ o.k. ] Packages are up to date [ libmali-sunxi-r3p0 jessie armhf ]
[ o.k. ] Packages are up to date [ libvdpau-sunxi jessie armhf ]
[ o.k. ] Packages are up to date [ mpv jessie armhf ]
[ o.k. ] Packages are up to date [ sunxi-tools jessie armhf ]
[ o.k. ] Packages are up to date [ swconfig jessie armhf ]
[ o.k. ] Starting package building process [ jessie arm64 ]
[ .... ] Skipping building libDRI2 for [ jessie arm64 ]
[ .... ] Skipping building libvdpau for [ jessie arm64 ]
[ .... ] Skipping building libUMP for [ jessie arm64 ]
[ .... ] Skipping building libcedrus for [ jessie arm64 ]
[ .... ] Skipping building xf86-video-fbturbo for [ jessie arm64 ]
[ .... ] Skipping building libass for [ jessie arm64 ]
[ .... ] Skipping building FFmpeg for [ jessie arm64 ]
[ .... ] Skipping building fswebcam-gc2035 for [ jessie arm64 ]
[ .... ] Skipping building guvcview for [ jessie arm64 ]
[ o.k. ] Packages are up to date [ hostapd jessie arm64 ]
[ o.k. ] Packages are up to date [ hostapd-realtek jessie arm64 ]
[ .... ] Skipping building libglshim for [ jessie arm64 ]
[ .... ] Skipping building libmali-sunxi-r3p0 for [ jessie arm64 ]
[ .... ] Skipping building libvdpau-sunxi for [ jessie arm64 ]
[ .... ] Skipping building mpv for [ jessie arm64 ]
[ o.k. ] Packages are up to date [ sunxi-tools jessie arm64 ]
[ .... ] Skipping building swconfig for [ jessie arm64 ]
[ o.k. ] Starting package building process [ xenial armhf ]
[ .... ] Skipping building libDRI2 for [ xenial armhf ]
[ o.k. ] Building packages [ libvdpau xenial armhf ]
[ o.k. ] Checking git sources [ extra/libvdpau master ]
[ .... ] Up to date
Failed to create directory /home/zador/armbian/output/buildpkg/xenial-armhf-v3/sys/fs/selinux: Read-only file system
Failed to create directory /home/zador/armbian/output/buildpkg/xenial-armhf-v3/sys/fs/selinux: Read-only file system
[ .... ] Installing build dependencies
[ .... ] Copying sources
[ .... ] Building package
dpkg-buildpackage: source package libvdpau
dpkg-buildpackage: source version 1.1.1-3ubuntu1~armbian5.17+1
dpkg-buildpackage: source distribution UNRELEASED
dpkg-buildpackage: source changed by Igor Pecovnik <igor.pecovnik@****l.com>
dpkg-buildpackage: host architecture armhf
dpkg-buildpackage: warning: debian/rules is not executable; fixing that
 dpkg-source --before-build libvdpau
dpkg-source: info: applying link-with-libx11.patch
dpkg-source: info: applying simplify-dlopen-path-length-error-handling.patch
dpkg-source: info: applying vdpau-module-searchpath.patch
dpkg-source: info: applying doxygen-no-timestamps.patch
dpkg-source: info: applying default-driver-sunxi.patch
 debian/rules clean
dh clean --with autoreconf
   dh_testdir
   dh_auto_clean
   dh_autoreconf_clean
   dh_clean
 debian/rules build
dh build --with autoreconf
   dh_testdir
   dh_update_autotools_config
   debian/rules override_dh_autoreconf
make[1]: Entering directory '/root/build/libvdpau'
dh_autoreconf --as-needed
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:9: installing './compile'
configure.ac:19: installing './config.guess'
configure.ac:19: installing './config.sub'
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
src/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
patching file ./ltmain.sh
make[1]: Leaving directory '/root/build/libvdpau'
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/root/build/libvdpau'
dh_testdir
LDFLAGS="-Wl,--as-needed $(dpkg-buildflags --get LDFLAGS)" ./configure \
        --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib/arm-linux-gnueabihf \
        --disable-documentation --enable-dri2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for __secure_getenv... no
checking for secure_getenv... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm - interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for X11... yes
checking for dri2proto... yes
checking for XEXT... yes
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for library containing pthread_once... -lpthread
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating trace/Makefile
config.status: creating vdpau.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make[1]: Leaving directory '/root/build/libvdpau'
   dh_auto_build
        make -j1
make[1]: Entering directory '/root/build/libvdpau'
/usr/bin/make  all-recursive
make[2]: Entering directory '/root/build/libvdpau'
Making all in doc
make[3]: Entering directory '/root/build/libvdpau/doc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/build/libvdpau/doc'
Making all in src
make[3]: Entering directory '/root/build/libvdpau/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DVDPAU_MODULEDIR="\"/usr/lib/arm-linux-gnueabihf/vdpau\"" -DVDPAU_SYSCONFDIR="\"/etc\""    -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT vdpau_wrapper.lo -MD -MP -MF .deps/vdpau_wrapper.Tpo -c -o vdpau_wrapper.lo vdpau_wrapper.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DVDPAU_MODULEDIR=\"/usr/lib/arm-linux-gnueabihf/vdpau\" -DVDPAU_SYSCONFDIR=\"/etc\" -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT vdpau_wrapper.lo -MD -MP -MF .deps/vdpau_wrapper.Tpo -c vdpau_wrapper.c  -fPIC -DPIC -o .libs/vdpau_wrapper.o
mv -f .deps/vdpau_wrapper.Tpo .deps/vdpau_wrapper.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DVDPAU_MODULEDIR="\"/usr/lib/arm-linux-gnueabihf/vdpau\"" -DVDPAU_SYSCONFDIR="\"/etc\""    -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT mesa_dri2.lo -MD -MP -MF .deps/mesa_dri2.Tpo -c -o mesa_dri2.lo mesa_dri2.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DVDPAU_MODULEDIR=\"/usr/lib/arm-linux-gnueabihf/vdpau\" -DVDPAU_SYSCONFDIR=\"/etc\" -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT mesa_dri2.lo -MD -MP -MF .deps/mesa_dri2.Tpo -c mesa_dri2.c  -fPIC -DPIC -o .libs/mesa_dri2.o
mv -f .deps/mesa_dri2.Tpo .deps/mesa_dri2.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -I../include -DVDPAU_MODULEDIR="\"/usr/lib/arm-linux-gnueabihf/vdpau\"" -DVDPAU_SYSCONFDIR="\"/etc\""    -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -version-info 1:0:0 -no-undefined -Wl,--as-needed -Wl,-Bsymbolic-functions -Wl,-z,relro -o libvdpau.la -rpath /usr/lib/arm-linux-gnueabihf vdpau_wrapper.lo mesa_dri2.lo -ldl -lpthread -lXext -lX11 -lpthread
libtool: link: gcc -shared  -fPIC -DPIC  .libs/vdpau_wrapper.o .libs/mesa_dri2.o   -Wl,--as-needed -ldl -lXext -lX11 -lpthread  -g -O2 -fstack-protector-strong -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro   -Wl,-soname -Wl,libvdpau.so.1 -o .libs/libvdpau.so.1.0.0
libtool: link: (cd ".libs" && rm -f "libvdpau.so.1" && ln -s "libvdpau.so.1.0.0" "libvdpau.so.1")
libtool: link: (cd ".libs" && rm -f "libvdpau.so" && ln -s "libvdpau.so.1.0.0" "libvdpau.so")
libtool: link: ( cd ".libs" && rm -f "libvdpau.la" && ln -s "../libvdpau.la" "libvdpau.la" )
make[3]: Leaving directory '/root/build/libvdpau/src'
Making all in test
make[3]: Entering directory '/root/build/libvdpau/test'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/build/libvdpau/test'
Making all in trace
make[3]: Entering directory '/root/build/libvdpau/trace'
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT vdpau_trace.lo -MD -MP -MF .deps/vdpau_trace.Tpo -c -o vdpau_trace.lo vdpau_trace.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT vdpau_trace.lo -MD -MP -MF .deps/vdpau_trace.Tpo -c vdpau_trace.cpp  -fPIC -DPIC -o .libs/vdpau_trace.o
mv -f .deps/vdpau_trace.Tpo .deps/vdpau_trace.Plo
/bin/bash ../libtool  --tag=CXX   --mode=link g++ -I../include  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -version-info 1:0:0 -module -no-undefined -Wl,--as-needed -Wl,-Bsymbolic-functions -Wl,-z,relro -o libvdpau_trace.la -rpath /usr/lib/arm-linux-gnueabihf/vdpau vdpau_trace.lo -ldl -lpthread
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/5/crtbeginS.o  .libs/vdpau_trace.o   -Wl,--as-needed -ldl -lpthread -L/usr/lib/gcc/arm-linux-gnueabihf/5 -L/usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/5/../../../../lib -L/lib/arm-linux-gnueabihf -L/lib/../lib -L/usr/lib/arm-linux-gnueabihf -L/usr/lib/../lib -L/usr/lib/gcc/arm-linux-gnueabihf/5/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/arm-linux-gnueabihf/5/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/crtn.o  -g -O2 -fstack-protector-strong -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro   -Wl,-soname -Wl,libvdpau_trace.so.1 -o .libs/libvdpau_trace.so.1.0.0
libtool: link: (cd ".libs" && rm -f "libvdpau_trace.so.1" && ln -s "libvdpau_trace.so.1.0.0" "libvdpau_trace.so.1")
libtool: link: (cd ".libs" && rm -f "libvdpau_trace.so" && ln -s "libvdpau_trace.so.1.0.0" "libvdpau_trace.so")
libtool: link: ( cd ".libs" && rm -f "libvdpau_trace.la" && ln -s "../libvdpau_trace.la" "libvdpau_trace.la" )
make[3]: Leaving directory '/root/build/libvdpau/trace'
make[3]: Entering directory '/root/build/libvdpau'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/build/libvdpau'
make[2]: Leaving directory '/root/build/libvdpau'
make[1]: Leaving directory '/root/build/libvdpau'
   dh_auto_test
 debian/rules binary
dh binary-indep --with autoreconf
dh binary-arch --with autoreconf
   dh_auto_test -a
   dh_testroot -a
   dh_prep -a
   dh_auto_install -a
        make -j1 install DESTDIR=/root/build/libvdpau/debian/tmp AM_UPDATE_INFO_DIR=no
make[1]: Entering directory '/root/build/libvdpau'
Making install in doc
make[2]: Entering directory '/root/build/libvdpau/doc'
make[3]: Entering directory '/root/build/libvdpau/doc'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/build/libvdpau/doc'
make[2]: Leaving directory '/root/build/libvdpau/doc'
Making install in src
make[2]: Entering directory '/root/build/libvdpau/src'
make[3]: Entering directory '/root/build/libvdpau/src'
 /bin/mkdir -p '/root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libvdpau.la '/root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf'
libtool: install: /usr/bin/install -c .libs/libvdpau.so.1.0.0 /root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf/libvdpau.so.1.0.0
libtool: install: (cd /root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf && { ln -s -f libvdpau.so.1.0.0 libvdpau.so.1 || { rm -f libvdpau.so.1 && ln -s libvdpau.so.1.0.0 libvdpau.so.1; }; })
libtool: install: (cd /root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf && { ln -s -f libvdpau.so.1.0.0 libvdpau.so || { rm -f libvdpau.so && ln -s libvdpau.so.1.0.0 libvdpau.so; }; })
libtool: install: /usr/bin/install -c .libs/libvdpau.lai /root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf/libvdpau.la
libtool: warning: remember to run 'libtool --finish /usr/lib/arm-linux-gnueabihf'
 /bin/mkdir -p '/root/build/libvdpau/debian/tmp/etc'
 /usr/bin/install -c -m 644 vdpau_wrapper.cfg '/root/build/libvdpau/debian/tmp/etc'
 /bin/mkdir -p '/root/build/libvdpau/debian/tmp/usr/include/vdpau'
 /usr/bin/install -c -m 644 ../include/vdpau/vdpau.h ../include/vdpau/vdpau_x11.h '/root/build/libvdpau/debian/tmp/usr/include/vdpau'
make[3]: Leaving directory '/root/build/libvdpau/src'
make[2]: Leaving directory '/root/build/libvdpau/src'
Making install in test
make[2]: Entering directory '/root/build/libvdpau/test'
make[3]: Entering directory '/root/build/libvdpau/test'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/root/build/libvdpau/test'
make[2]: Leaving directory '/root/build/libvdpau/test'
Making install in trace
make[2]: Entering directory '/root/build/libvdpau/trace'
make[3]: Entering directory '/root/build/libvdpau/trace'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/root/build/libvdpau/debian/tmp/usr/include/vdpau'
 /usr/bin/install -c -m 644 ../include/vdpau/vdpau.h ../include/vdpau/vdpau_x11.h '/root/build/libvdpau/debian/tmp/usr/include/vdpau'
 /bin/mkdir -p '/root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf/vdpau'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libvdpau_trace.la '/root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf/vdpau'
libtool: install: /usr/bin/install -c .libs/libvdpau_trace.so.1.0.0 /root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf/vdpau/libvdpau_trace.so.1.0.0
libtool: install: (cd /root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf/vdpau && { ln -s -f libvdpau_trace.so.1.0.0 libvdpau_trace.so.1 || { rm -f libvdpau_trace.so.1 && ln -s libvdpau_trace.so.1.0.0 libvdpau_trace.so.1; }; })
libtool: install: (cd /root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf/vdpau && { ln -s -f libvdpau_trace.so.1.0.0 libvdpau_trace.so || { rm -f libvdpau_trace.so && ln -s libvdpau_trace.so.1.0.0 libvdpau_trace.so; }; })
libtool: install: /usr/bin/install -c .libs/libvdpau_trace.lai /root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf/vdpau/libvdpau_trace.la
libtool: warning: remember to run 'libtool --finish /usr/lib/arm-linux-gnueabihf/vdpau'
make[3]: Leaving directory '/root/build/libvdpau/trace'
make[2]: Leaving directory '/root/build/libvdpau/trace'
make[2]: Entering directory '/root/build/libvdpau'
make[3]: Entering directory '/root/build/libvdpau'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf/pkgconfig'
 /usr/bin/install -c -m 644 vdpau.pc '/root/build/libvdpau/debian/tmp/usr/lib/arm-linux-gnueabihf/pkgconfig'
make[3]: Leaving directory '/root/build/libvdpau'
make[2]: Leaving directory '/root/build/libvdpau'
make[1]: Leaving directory '/root/build/libvdpau'
   dh_install -a
Unsupported ioctl: cmd=0x40049409
Unsupported ioctl: cmd=0x40049409
Unsupported ioctl: cmd=0x40049409
Unsupported ioctl: cmd=0x40049409
Unsupported ioctl: cmd=0x40049409
Unsupported ioctl: cmd=0x40049409
   dh_installdocs -a
   dh_installchangelogs -a
   debian/rules override_dh_bugfiles
make[1]: Entering directory '/root/build/libvdpau'
dh_bugfiles -A
make[1]: Leaving directory '/root/build/libvdpau'
   dh_perl -a
   dh_link -a
   dh_strip_nondeterminism -a
   dh_compress -a
   dh_fixperms -a
   dh_strip -a
   debian/rules override_dh_makeshlibs
make[1]: Entering directory '/root/build/libvdpau'
dh_makeshlibs -Xvdpau/libvdpau_trace.so.1
make[1]: Leaving directory '/root/build/libvdpau'
   dh_shlibdeps -a
   dh_installdeb -a
   dh_gencontrol -a
   dh_md5sums -a
   dh_builddeb -a
dpkg-deb: building package 'libvdpau-dev' in '../libvdpau-dev_1.1.1-3ubuntu1~armbian5.17+1_armhf.deb'.
dpkg-deb: building package 'libvdpau1' in '../libvdpau1_1.1.1-3ubuntu1~armbian5.17+1_armhf.deb'.
 dpkg-genchanges -b >../libvdpau_1.1.1-3ubuntu1~armbian5.17+1_armhf.changes
dpkg-genchanges: warning: the current version (1.1.1-3ubuntu1~armbian5.17+1) is earlier than the previous one (1.1.1-3ubuntu1)
dpkg-genchanges: binary-only upload (no source code included)
 dpkg-source --after-build libvdpau
dpkg-source: info: unapplying default-driver-sunxi.patch
dpkg-source: info: unapplying doxygen-no-timestamps.patch
dpkg-source: info: unapplying vdpau-module-searchpath.patch
dpkg-source: info: unapplying simplify-dlopen-path-length-error-handling.patch
dpkg-source: info: unapplying link-with-libx11.patch
dpkg-buildpackage: binary-only upload (no source included)
[ .... ] Installing packages
(Reading database ... 61449 files and directories currently installed.)
Preparing to unpack libvdpau1_1.1.1-3ubuntu1~armbian5.17+1_armhf.deb ...
Unpacking libvdpau1:armhf (1.1.1-3ubuntu1~armbian5.17+1) over (1.1.1-3ubuntu1~armbian5.17+1) ...
Setting up libvdpau1:armhf (1.1.1-3ubuntu1~armbian5.17+1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
(Reading database ... 61449 files and directories currently installed.)
Preparing to unpack libvdpau-dev_1.1.1-3ubuntu1~armbian5.17+1_armhf.deb ...
Unpacking libvdpau-dev:armhf (1.1.1-3ubuntu1~armbian5.17+1) over (1.1.1-3ubuntu1~armbian5.17+1) ...
Setting up libvdpau-dev:armhf (1.1.1-3ubuntu1~armbian5.17+1) ...
[ o.k. ] Done building [ libvdpau xenial armhf ]
libvdpau-dev_1.1.1-3ubuntu1~armbian5.17+1_armhf.deb
libvdpau1_1.1.1-3ubuntu1~armbian5.17+1_armhf.deb
[ o.k. ] Packages are up to date [ libUMP xenial armhf ]
[ o.k. ] Packages are up to date [ libcedrus xenial armhf ]
[ o.k. ] Packages are up to date [ xf86-video-fbturbo xenial armhf ]
[ .... ] Skipping building libass for [ xenial armhf ]
[ o.k. ] Packages are up to date [ FFmpeg xenial armhf ]
[ o.k. ] Packages are up to date [ fswebcam-gc2035 xenial armhf ]
[ o.k. ] Packages are up to date [ guvcview xenial armhf ]
[ .... ] Skipping building hostapd for [ xenial armhf ]
[ .... ] Skipping building hostapd-realtek for [ xenial armhf ]
[ o.k. ] Packages are up to date [ libglshim xenial armhf ]
[ o.k. ] Packages are up to date [ libmali-sunxi-r3p0 xenial armhf ]
[ o.k. ] Packages are up to date [ libvdpau-sunxi xenial armhf ]
[ o.k. ] Packages are up to date [ mpv xenial armhf ]
[ .... ] Skipping building sunxi-tools for [ xenial armhf ]
[ .... ] Skipping building swconfig for [ xenial armhf ]
[ o.k. ] Starting package building process [ xenial arm64 ]
[ .... ] Skipping building libDRI2 for [ xenial arm64 ]
[ .... ] Skipping building libvdpau for [ xenial arm64 ]
[ .... ] Skipping building libUMP for [ xenial arm64 ]
[ .... ] Skipping building libcedrus for [ xenial arm64 ]
[ .... ] Skipping building xf86-video-fbturbo for [ xenial arm64 ]
[ .... ] Skipping building libass for [ xenial arm64 ]
[ .... ] Skipping building FFmpeg for [ xenial arm64 ]
[ .... ] Skipping building fswebcam-gc2035 for [ xenial arm64 ]
[ .... ] Skipping building guvcview for [ xenial arm64 ]
[ .... ] Skipping building hostapd for [ xenial arm64 ]
[ .... ] Skipping building hostapd-realtek for [ xenial arm64 ]
[ .... ] Skipping building libglshim for [ xenial arm64 ]
[ .... ] Skipping building libmali-sunxi-r3p0 for [ xenial arm64 ]
[ .... ] Skipping building libvdpau-sunxi for [ xenial arm64 ]
[ .... ] Skipping building mpv for [ xenial arm64 ]
[ .... ] Skipping building sunxi-tools for [ xenial arm64 ]
[ .... ] Skipping building swconfig for [ xenial arm64 ]
[ o.k. ] Kernel building done [ @host ]
[ o.k. ] Target directory [ /home/zador/armbian/output/debs/ ]
[ o.k. ] File name [ linux-image-sun8i_5.17_armhf.deb ]
[ o.k. ] Runtime [ 5 min ]
sudo ./compile.sh EXTERNAL_NEW=compile CLEAN_LEVEL="" KERNEL_ONLY=yes    291.50s user 51.18s system 103% cpu 5:32.47 total
âžœ  armbian  % 

 

 

Posted (edited)

logs:

 

 

 



[ o.k. ] Building packages [ libvdpau xenial armhf ]
[ o.k. ] Checking git sources [ extra/libvdpau master ]
[ .... ] Up to date 
Failed to create directory /armbian/output/buildpkg/xenial-armhf-v3/sys/fs/selinux: Read-only file system
Failed to create directory /armbian/output/buildpkg/xenial-armhf-v3/sys/fs/selinux: Read-only file system
[ .... ] Installing build dependencies 
[ .... ] Copying sources 
[ .... ] Building package 
dpkg-buildpackage: source package libvdpau
dpkg-buildpackage: source version 1.1.1-3ubuntu1~armbian5.17+1
dpkg-buildpackage: source distribution UNRELEASED
dpkg-buildpackage: source changed by Igor Pecovnik <igor.pecovnik@****l.com>
dpkg-buildpackage: host architecture armhf
dpkg-buildpackage: warning: debian/rules is not executable; fixing that
 dpkg-source --before-build libvdpau
dpkg-source: info: applying link-with-libx11.patch
dpkg-source: info: applying simplify-dlopen-path-length-error-handling.patch
dpkg-source: info: applying vdpau-module-searchpath.patch
dpkg-source: info: applying doxygen-no-timestamps.patch
dpkg-source: info: applying default-driver-sunxi.patch
 debian/rules clean
dh clean --with autoreconf
   dh_testdir
   dh_auto_clean
   dh_autoreconf_clean
   dh_clean
 debian/rules build
dh build --with autoreconf
   dh_testdir
   dh_update_autotools_config
   debian/rules override_dh_autoreconf
make[1]: Entering directory '/root/build/libvdpau'
dh_autoreconf --as-needed
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:9: installing './compile'
configure.ac:19: installing './config.guess'
configure.ac:19: installing './config.sub'
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
src/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
patching file ./ltmain.sh
make[1]: Leaving directory '/root/build/libvdpau'
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/root/build/libvdpau'
dh_testdir
LDFLAGS="-Wl,--as-needed $(dpkg-buildflags --get LDFLAGS)" ./configure \
        --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib/arm-linux-gnueabihf \
        --disable-documentation --enable-dri2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for __secure_getenv... no
checking for secure_getenv... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for X11... yes
checking for dri2proto... yes
checking for XEXT... yes
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for library containing pthread_once... -lpthread
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating trace/Makefile
config.status: creating vdpau.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make[1]: Leaving directory '/root/build/libvdpau'
   dh_auto_build
        make -j1
make[1]: Entering directory '/root/build/libvdpau'
/usr/bin/make  all-recursive
make[2]: Entering directory '/root/build/libvdpau'
Making all in doc
make[3]: Entering directory '/root/build/libvdpau/doc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/build/libvdpau/doc'
Making all in src
make[3]: Entering directory '/root/build/libvdpau/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DVDPAU_MODULEDIR="\"/usr/lib/arm-linux-gnueabihf/vdpau\"" -DVDPAU_SYSCONFDIR="\"/etc\""    -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT vdpau_wrapper.lo -MD -MP -MF .deps/vdpau_wrapper.Tpo -c -o vdpau_wrapper.lo vdpau_wrapper.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DVDPAU_MODULEDIR=\"/usr/lib/arm-linux-gnueabihf/vdpau\" -DVDPAU_SYSCONFDIR=\"/etc\" -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT vdpau_wrapper.lo -MD -MP -MF .deps/vdpau_wrapper.Tpo -c vdpau_wrapper.c  -fPIC -DPIC -o .libs/vdpau_wrapper.o
distccd[17569] (dcc_remap_compiler) ERROR: stringmap_load(/root/armbian/output/buildpkg/distcc-wrappers/xenial-armhf/cmdlist, 1) failed: Permission denied
mv -f .deps/vdpau_wrapper.Tpo .deps/vdpau_wrapper.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DVDPAU_MODULEDIR="\"/usr/lib/arm-linux-gnueabihf/vdpau\"" -DVDPAU_SYSCONFDIR="\"/etc\""    -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT mesa_dri2.lo -MD -MP -MF .deps/mesa_dri2.Tpo -c -o mesa_dri2.lo mesa_dri2.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -DVDPAU_MODULEDIR=\"/usr/lib/arm-linux-gnueabihf/vdpau\" -DVDPAU_SYSCONFDIR=\"/etc\" -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT mesa_dri2.lo -MD -MP -MF .deps/mesa_dri2.Tpo -c mesa_dri2.c  -fPIC -DPIC -o .libs/mesa_dri2.o
distccd[17677] (dcc_remap_compiler) ERROR: stringmap_load(/root/armbian/output/buildpkg/distcc-wrappers/xenial-armhf/cmdlist, 1) failed: Permission denied
mv -f .deps/mesa_dri2.Tpo .deps/mesa_dri2.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc -I../include -DVDPAU_MODULEDIR="\"/usr/lib/arm-linux-gnueabihf/vdpau\"" -DVDPAU_SYSCONFDIR="\"/etc\""    -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -version-info 1:0:0 -no-undefined -Wl,--as-needed -Wl,-Bsymbolic-functions -Wl,-z,relro -o libvdpau.la -rpath /usr/lib/arm-linux-gnueabihf vdpau_wrapper.lo mesa_dri2.lo -ldl -lpthread -lXext -lX11 -lpthread 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/vdpau_wrapper.o .libs/mesa_dri2.o   -Wl,--as-needed -ldl -lXext -lX11 -lpthread  -g -O2 -fstack-protector-strong -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro   -Wl,-soname -Wl,libvdpau.so.1 -o .libs/libvdpau.so.1.0.0
.libs/vdpau_wrapper.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
distcc[9105] ERROR: compile (null) on localhost failed
Makefile:453: recipe for target 'libvdpau.la' failed
make[3]: *** [libvdpau.la] Error 1
make[3]: Leaving directory '/root/build/libvdpau/src'
Makefile:469: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/root/build/libvdpau'
Makefile:378: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/build/libvdpau'
dh_auto_build: make -j1 returned exit code 2
debian/rules:12: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
[ error ] Failed building [ libvdpau xenial armhf ]

 

 

Edited by goldfish_paris
spoiler
Posted
./compile.sh EXTERNAL_NEW=compile CLEAN_LEVEL="" KERNEL_ONLY=yes BOARD=orangepipc BRANCH=default

=

Posted

zador.blood.stain has 1000 posts here :)

 

(tuning) probably already written here

 

ordering the mass compilation (not by board) but by SoC to reduce kernel compilation

 

then ccache (pick as you need):

- move ccache folder to ramdisk

- tune to add one level in ccache b-tree (2=>3)

- compress lightly the ccache results (there is an overhead)

- or ccache hardlinks (so there is no files moved from ccache to the kernel tree) not compatible with ramdisk or compression

 

maybe deleting ccache folder when ccache is bloated of hashes (there is a tweak: limit the number of files / ccache directory size / change the ratio of ccache replacement)

OR creating a ccache folder per SoC (and removing the full directory from ccache hash) so less likely to overbloat the ccache tree

(note: ccache per SoC could be an alternative of ordering compilation per SoC)

 

just the goldfish_paris passing by :)

https://github.com/igorpecovnik/lib/pull/466

Posted

ordering the mass compilation (not by board) but by SoC to reduce kernel compilation

Build all kernels first (also keeps ccache in "warm" state), then build all images with kernels already built and packaged. Problem solved.

 

- move ccache folder to ramdisk

ccache on SSD and in disk cache after few compilations is fast enough to not bother

 

- tune to add one level in ccache b-tree (2=>3)

- compress lightly the ccache results (there is an overhead)

- or ccache hardlinks (so there is no files moved from ccache to the kernel tree) not compatible with ramdisk or compression

results may depend on number of files in cache, filesystem, "warm"/"cold" state and type of storage (HDD/SSD). Should be tuned individually.

 

maybe deleting ccache folder when ccache is bloated of hashes (there is a tweak: limit the number of files / ccache directory size / change the ratio of ccache replacement)

OR creating a ccache folder per SoC (and removing the full directory from ccache hash) so less likely to overbloat the ccache tree

(note: ccache per SoC could be an alternative of ordering compilation per SoC)

:blink:

Posted
creating a ccache folder per SoC (and removing the full directory from ccache hash) so less likely to overbloat the ccache tree

(note: ccache per SoC could be an alternative of ordering compilation per SoC)

 

:blink:

 

b-tree concept is great but overload a b-tree and the performance will degrade (if not, increase the depth of the btree may help).

ccache per SoC is an alternative to avoid bloating the ccache btree. It is probably durable over several "full" creation of images for all the boards.

 

Well, the config is simple, it is only a matter of changing/exporting CCACHE_DIR

with CCACHE_DIR=$DEST/ccache/per_$BRANCH_$LINUXFAMILY

Posted

After deleting

/output/buildpkg

... and recompiling problem looks to be gone. Doing more tests ...

Posted

Did we forgot to include this into patch? 

CONFIG_MMC_SUNXI_SLOT_EXTRA=2
U-Boot SPL 2016.09-armbian (Sep 14 2016 - 07:34:12)
DRAM: 1024 MiB
Trying to boot from MMC2
MMC Device 1 not found
spl: could not find mmc device. error: -19
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

BTW: shall we rename .RAW to .ISO ?

Posted

Did we forgot to include this into patch? 

CONFIG_MMC_SUNXI_SLOT_EXTRA=2

Yes, I forgot to patch config files for Plus and Plus 2. Others should work fine.

 

 

BTW: shall we rename .RAW to .ISO ?

Definitely not to .iso (too confusing), but to .img, since this is the default extension expected by Win32diskimager and Rufus.

Posted

Repository is updated to latest version (jumped to 5.20) so it's possible to test upgrades.

Posted

Repository is updated to latest version (jumped to 5.20) so it's possible to test upgrades.

Do I understand this correct?

The 5.20 reflects the patch level of the kernel, not necessarily anything about the "Armbian distribution".

Such as when download images will have NM instead of wicd.

Or maybe you meant:  the kernel that will be in "Armbian distribution release 5.20" is now available.

 

I just did the upgrade:

The following packages will be upgraded:
  linux-firmware-image-sun8i linux-headers-sun8i linux-image-sun8i linux-jessie-root-orangepiplus2e linux-u-boot-orangepiplus2e-default

and the apt-get dist-upgrade says nothing to do.

 

This is:

 cat /etc/armbian-release
# PLEASE DO NOT EDIT THIS FILE
BOARD=orangepiplus2e
BOARD_NAME="Orange Pi+ 2E"
VERSION=5.20
LINUXFAMILY=sun8i
BRANCH=default
ARCH=arm

Boot and login seem faster, but was already nice on the 2E installed to th eeMMC.

Thank you.

Larry

 

Posted

5.20 is the version for new Armbian packages and prebuilt images.

You can still upgrade u-boot and kernel with apt-get, but to get new desktop features you'll have to either install packages and apply the tweaks from our build system manually, or start with new prebuilt image.

Posted

Thanks zador. When I asked the question the kernel was in the repo, but none of the images were updated on the download page so I jumped to the wrong conclusion.

 

Just being impatient. haha

Posted

OK. This would help pack kernel faster but if not possible, not that critical since this is not done that many times.

 

So no much other alternatives except adjusting "build-all" to work simultaneously.

Posted

how often do you want to perform builds for all boards?

 

Tapatalk thinks its important to tell you im using tapatalk from a phone.

Posted

I am running daily: all packages recompilation / testing repository update and build few images for one week now. It's working fine, but is still considered experimental. 

Posted

Now we are running this daily rebuild for some time and if everything goes fine, I don't mind that building is not optimized. When it breaks, like today, build time becomes important but anyway I simply want to make use of available hardware at full degree ;)

 

Ideas for better CPU utilization:

 

- kernel compilation is optimized, while packaging is not. I would need to do more tests if running more kernel compilation in parallel gives any significant benefit.

- 57 packages are building more or less on single core

- build all, BSP = 376 * single core :)

 

There are some ideas in the thread - but which way seems less complicated to implement?

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines