Building MODEP debs for x86

Hi there,

Cannot find any info about “libhylia”.

What I have done:

git clone https://github.com/BlokasLabs/modep-debs.git --recursive

cd modep-debs
./install-apt-build-dependencies.sh


cd modep-mod-host
./build-deb.sh

Output:
dpkg-buildpackage -us -uc -ui -b
dpkg-buildpackage: info: source package modep-mod-host
dpkg-buildpackage: info: source version 1.8.0-2
dpkg-buildpackage: info: source distribution buster
dpkg-buildpackage: info: source changed by Giedrius Trainavičius hello@blokas.io
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture i386
dpkg-checkbuilddeps: error: Unmet build dependencies: libhylia
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed

Any help appreciated.

2 Likes

It’s this: https://github.com/BlokasLabs/modep-debs/tree/master/libhylia

Looks like you have to build this manually first and install on the device you’re using to build.

1 Like

Thanks for pointing. It has been successfully built mannualy:

...
W: libhylia: pkg-config-unavailable-for-cross-compilation usr/lib/pkgconfig/hylia.pc
W: libhylia: pkg-config-references-unknown-shared-library usr/lib/pkgconfig/hylia.pc -lstdc++ (line 9)
Finished running lintian.

But that doesn’t help to build the host:

sudo ./build-deb.sh 
 dpkg-buildpackage -us -uc -ui -b
dpkg-buildpackage: info: source package modep-mod-host
dpkg-buildpackage: info: source version 1.8.0-2
dpkg-buildpackage: info: source distribution buster
dpkg-buildpackage: info: source changed by Giedrius Trainavičius <hello@blokas.io>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture i386
dpkg-checkbuilddeps: error: Unmet build dependencies: libhylia
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed

Try running all of the build scripts on Raspberry Pi itself, that’s how we built it.

I have no an RPI, just wanted to try out Modep because I had the good experience using Guitarix.

Also tried to build it using -d flag to override:

cc1: some warnings being treated as errors
make[1]: *** [Makefile:97: src/effects.o] Error 1
make[1]: Leaving directory '/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0'
dh_auto_build: make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:9: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b -d failed

Probably the real error is somewhere above what you pasted.

Here is everything after sudo ./build-deb.sh:

Summary
dpkg-buildpackage -us -uc -ui -b -d
dpkg-buildpackage: info: source package modep-mod-host
dpkg-buildpackage: info: source version 1.8.0-2
dpkg-buildpackage: info: source distribution buster
dpkg-buildpackage: info: source changed by Giedrius Trainavičius <hello@blokas.io>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture i386
 debian/rules clean
dh clean  
   dh_auto_clean
        make -j4 clean
make[1]: Entering directory '/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0'
make[1]: Leaving directory '/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0'
   dh_clean
 debian/rules build
dh build  
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
        make -j4 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0'
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/mod-monitor.o src/monitor/monitor-client.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/socket.o src/socket.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/uridmap.o src/uridmap.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/mod-host.o src/mod-host.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/protocol.o src/protocol.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/effects.o src/effects.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/filter.o src/filter.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/completer.o src/completer.c
src/effects.c: In function ‘JackThreadInit’:
src/effects.c:1918:17: error: implicit declaration of function ‘__builtin_ia32_stmxcsr’; did you mean ‘__builtin_ia32_rdtsc’? [-Werror=implicit-function-declaration]
         mxcsr = __builtin_ia32_stmxcsr();
                 ^~~~~~~~~~~~~~~~~~~~~~
                 __builtin_ia32_rdtsc
src/effects.c:1919:9: error: implicit declaration of function ‘__builtin_ia32_ldmxcsr’; did you mean ‘__builtin_ia32_rdtsc’? [-Werror=implicit-function-declaration]
         __builtin_ia32_ldmxcsr(mxcsr | 0x8040);
         ^~~~~~~~~~~~~~~~~~~~~~
         __builtin_ia32_rdtsc
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/lv2_evbuf.o src/lv2_evbuf.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/monitor.o src/monitor.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/worker.o src/worker.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/symap.o src/symap.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/utils.o src/utils.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/sha1/sha1.o src/sha1/sha1.c
cc -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0  -DHAVE_FFTW335 -DHAVE_NEW_LILV -DHAVE_JACK2 -g -O2 -fdebug-prefix-map=/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -Wall -Wextra -c -std=gnu99 -fPIC -D_GNU_SOURCE -pthread -Wno-deprecated-declarations -Werror=implicit-function-declaration -Werror=return-type -fvisibility=hidden -o src/rtmempool/rtmempool.o src/rtmempool/rtmempool.c
cc src/mod-monitor.o -Wl,-z,relro -Wl,--no-undefined -s -ljack -llilv-0 -ldl -lsratom-0 -lsord-0 -lserd-0 -lreadline -lpthread -lrt -lm -lfftw3 -lfftw3f -lfftw3_threads -lfftw3f_threads -shared -o mod-monitor.so
cc1: some warnings being treated as errors
make[1]: *** [Makefile:97: src/effects.o] Error 1
make[1]: Leaving directory '/home/slavikator/modep-debs/modep-mod-host/modep-mod-host-1.8.0'
dh_auto_build: make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:9: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b -d failed

This is a warning treated as an error in x86 specific code. You either have to fix the code or add -Wno-error flag to compile options or remove -Werror if it’s specified somewhere. On another look, it actually could be missing some #include <…> header which contains declarations of these functions at the top of the source file.

But I won’t take the fun away from you to solve every issue you hit when compiling for x86. :slight_smile: You should be able to find information and a solution on nearly every kind of error on the internet. Please only ask here about issues that are specific to MODEP that you can’t absolutely find solutions for on the internet first.

Btw, I’ll also move this discussion to a dedicated topic.

Thx for help. I stop at this point as I see that it will be to much time consuming.

In case if someone else interested, I have tried the same steps on both amd64 and i386 deb systems. Error was the same.

It could be not that bad too. :slight_smile: A good opportunity to learn more about the software building process.

@slavikator
have you managed to move forward with this?
I’m stuck at the same point
and even adding the -d flag doesn’t really help much
here the error I get

Feature record: CXX_FEATURE:0cxx_variadic_templates

dh_auto_configure: cd obj-x86_64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run “-GUnix Makefiles” -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DCMAKE_INSTALL_PREFIX=/usr/modep/lv2 -DBUILD_GUI=OFF -DBUILD_SSE=OFF … returned exit code 1
make[1]: *** [debian/rules:12: override_dh_auto_configure] Error 2
make[1]: Leaving directory ‘/root/modep-debs/modep-lv2-artyfx/modep-lv2-artyfx-1.3.0’
make: *** [debian/rules:9: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b -d failed

if anyone can point us to the right direction would be much appreciated

Hi,
have you managed to solve this?
As I’d like to use MODEP on a x86 PC for my project, but right now there’s no easy way to do it.
And sadly, I don’t have time and knowledge to go with building the image by myself.
Thanks! :slight_smile: