Cannot complile mythtv-30 on Debian 10

For discussion of topics specific to MythTV on linux
Post Reply
vossman77
Newcomer
Posts: 3
Joined: Thu Feb 27, 2020 4:41 pm
American Samoa

Cannot complile mythtv-30 on Debian 10

Post by vossman77 »

I've been using MythTV since about 2004. For at least the past 10 years, I've been compiling from source code, because I like to get the latest fixes when then come. Mostly due to squashing bugs myself and custom compile options.

Anyway, I just upgraded from Debian 9 to Debian 10, and I cannot get the compilation to finish.

Code: Select all

cd /home/username/mythtv-30/mythtv/libs/libmyth

g++ -c -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c++11 -DNDEBUG -fomit-frame-pointer -fPIC \
-DQT_DISABLE_DEPRECATED_BEFORE=0x050300 -msse -pthread -g -Wall -Wextra -Wpointer-arith -D__STDC_CONSTANT_MACROS \
-D__STDC_LIMIT_MACROS -fvisibility-inlines-hidden -Wdouble-promotion -Wduplicated-cond -Wlogical-op \
-Wmissing-declarations -Wnull-dereference -Woverloaded-virtual -funit-at-a-time -faligned-new \
-Wzero-as-null-pointer-constant -Wsuggest-override -fvisibility=hidden -std=gnu++11 -D_REENTRANT \
-fPIC -DMMX -D_GNU_SOURCE -DMYTH_API -DUSING_PULSE -DUSING_PULSEOUTPUT \
-Dlinux -DUSING_ALSA -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_SCRIPT_LIB \
-DQT_DBUS_LIB -DQT_CORE_LIB -I. -isystem /usr/include/libxml2 \
-isystem /usr/include/X11 -I../../external/libmythsoundtouch \
-I../libmythfreesurround -I../libmythbase -I../.. -I.. -I. -I../libmythupnp \
-I../libmythui -I../.. -I../../external/FFmpeg \
-I../libmythservicecontracts -isystem /usr/include/x86_64-linux-gnu/qt5 \
-isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets \
-isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork \
-isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtSql \
-isystem /usr/include/x86_64-linux-gnu/qt5/QtScript -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus \
-isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Imoc -isystem /usr/include/libdrm \
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o obj/audiooutpututil.o audio/audiooutpututil.cpp
gives the output:

Code: Select all

audio/audiooutpututil.cpp: Assembler messages:
audio/audiooutpututil.cpp:47: Error: operand type mismatch for `push'
audio/audiooutpututil.cpp:52: Error: operand type mismatch for `pop'
I know the file audiooutpututil.cpp has not changed in over 7 years, why the problem now?

Code: Select all

cat /etc/debian_version 
10.3
MikeB2013
Senior
Posts: 519
Joined: Mon Jul 25, 2016 4:16 pm
Great Britain

Re: Cannot complile mythtv-30 on Debian 10

Post by MikeB2013 »

mythtv fixes/30 compiles fine for me on Debian 10.3 using default ./configure

I used mythtv/ansible to setup build depends.

I suspect your source tree maybe out of date, file https://github.com/MythTV/mythtv/commit ... ututil.cpp was last changed Nov 10, 2018.

Mike
vossman77
Newcomer
Posts: 3
Joined: Thu Feb 27, 2020 4:41 pm
American Samoa

Re: Cannot complile mythtv-30 on Debian 10

Post by vossman77 »

I am using fixes/30, I also download the TGZ source from mythtvwebsite/download

I guess I misspoke on the last update, because I also checked my file with

Code: Select all

git log -- audiooutpututil.cpp
and it was updated Oct 2018.

Just for kicks, did my configure with default options, I usually disable things I do not use

Code: Select all

make clean
make distclean
./configure
make
and got a new error

Code: Select all

fatal error: lzo/lzo1x.h: No such file or directory
 #include "lzo/lzo1x.h"
 
so, installed

Code: Select all

sudo apt install liblzo2-dev
and that moved forward. I also tried ansible, thanks for the tip.

Then I had an HDHomeRun error, so I configured again with it disabled (don't own one). I use Happauge [Conexant CX23887/8]

and that worked.

============================================================

So, I went back with my custom configure settings. And that compile... failed!

Not sure if it was just the LZO lib or ansible installed something else, but it works now.
vossman77
Newcomer
Posts: 3
Joined: Thu Feb 27, 2020 4:41 pm
American Samoa

Re: Cannot complile mythtv-30 on Debian 10

Post by vossman77 »

I figured it out, when I use the flag '--disable-i686' it fails

I decided to switch to the freshly branch fixes-31, to see if I can use nvdec for some 4k video
Post Reply