Opened 19 years ago

Closed 18 years ago

#306 closed defect (fixed)

Compile failure on SVN 7203

Reported by: Brian Huffman <huffman@…> Owned by: Isaac Richards
Priority: major Milestone: unknown
Component: mythmusic Version:
Severity: medium Keywords:
Cc: Ticket locked: no

Description

All,

I'm trying to compile mythtv and mythplugins (with debug) to sort out another issue that I'm having....and I ended up with a compile issue on mythplugins (mythmusic specifically). Can someone suggest what I might do to troubleshoot this? I'm on Fedora Core 4 (gcc4).

Coindidentally, the other issue is that mythmusic is segfaulting whenever I try to read a CD (either just play or to rip). But I had planned to send a backtrace for that once I can get everything compiled w/ debug on. :-)

Thanks, Brian

gcc -c -pipe -march=pentium4 -march=pentium4 -Wall -W -g -D_REENTRANT -DPIC -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr\" -DMMX -Di386 -DUSING_DBOX2 -D_FILE_OFFSET_BITS=64 -DMMX -Di386 -DUSING_DBOX2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/include -I/usr/kde/3.3/include -I/usr/include -I/MythTV/MythTV_Build/rpmbuild/BUILD/mythtv-0.19.0.cvs7203/linuxtv-dvb-1.1.1cvs20050228/linux/include

-I/usr/X11R6/include -I/usr/include -I/MythTV/MythTV_Build/rpmbuild/BUILD/mythtv-0.19.0.cvs7203/linuxtv-dvb-1.1.1cvs20050228/linux/include

-I/usr/X11R6/include -I/usr/include/mythtv -I/usr/include/speech_tools -I/usr/include/cdda -I/usr/lib/qt-3.3/include -I/usr/X11R6/include -o zoom_filter_xmmx.o goom/zoom_filter_xmmx.c {standard input}: Assembler messages: {standard input}:129: Error: suffix or operands invalid for `movq' {standard input}:130: Error: suffix or operands invalid for `movq' make[2]: * [zoom_filter_xmmx.o] Error 1 make[2]: Leaving directory `/MythTV/MythTV_Build/rpmbuild/BUILD/mythplugins-0.19.0.cvs7203/mythmusic/mythmusic'

make[1]: * [sub-mythmusic] Error 2 make[1]: Leaving directory `/MythTV/MythTV_Build/rpmbuild/BUILD/mythplugins-0.19.0.cvs7203/mythmusic' make: * [sub-mythmusic] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.72162 (%build)

Change History (4)

comment:1 Changed 19 years ago by anonymous

It looks like you may be encountering a different error, but since it's a compile error on mythmusic I don't know there's much sense opening a new ticket. I have this error with rev 7217:

make[2]: Entering directory `/root/tmp/mythsvn/mythplugins/mythmusic/mythmusic'
gcc -c -pipe -march=athlon-xp -O3 -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DMMX -Di386 -DHAVE_DVDNAV -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/kde/3.3/include -I/usr/include -I/usr/include/cdda -I/usr/qt/3/include -I/usr/include -o resample.o resample.c
resample.c:37: Error: error: parse error before "uint32_t"
resample.c:37: warning: no semicolon at end of struct or union
resample.c:38: warning: type defaults to `int' in declaration of `frac'
resample.c:38: warning: data definition has no type or storage class
resample.c:44: Error: error: parse error before '}' token
resample.c:44: warning: type defaults to `int' in declaration of `ReSampleChannelContext'
resample.c:44: warning: data definition has no type or storage class
resample.c:47: Error: error: parse error before "ReSampleChannelContext"
resample.c:47: warning: no semicolon at end of struct or union
resample.c:51: Error: error: parse error before '}' token
resample.c:59: Error: error: parse error before '*' token
resample.c: In function `init_mono_resample':
resample.c:62: Error: error: `s' undeclared (first use in this function)
resample.c:62: Error: error: (Each undeclared identifier is reported only once
resample.c:62: Error: error: for each function it appears in.)
resample.c: At top level:
resample.c:74: Error: error: parse error before '*' token
resample.c: In function `fractional_resample':
resample.c:80: Error: error: `s' undeclared (first use in this function)
resample.c:84: Error: error: `input' undeclared (first use in this function)
resample.c:85: Error: error: `nb_samples' undeclared (first use in this function)
resample.c:86: Error: error: `output' undeclared (first use in this function)
resample.c: At top level:
resample.c:107: Error: error: parse error before '*' token
resample.c: In function `integer_downsample':
resample.c:112: Error: error: `input' undeclared (first use in this function)
resample.c:113: Error: error: `nb_samples' undeclared (first use in this function)
resample.c:114: Error: error: `output' undeclared (first use in this function)
resample.c:116: Error: error: `s' undeclared (first use in this function)
resample.c: At top level:
resample.c:206: Error: error: parse error before '*' token
resample.c: In function `mono_resample':
resample.c:211: Error: error: `nb_samples' undeclared (first use in this function)
resample.c:214: Error: error: `s' undeclared (first use in this function)
resample.c:216: Error: error: `input' undeclared (first use in this function)
resample.c:223: Error: error: `output' undeclared (first use in this function)
resample.c: In function `audio_resample_init':
resample.c:240: Error: error: invalid application of `sizeof' to incomplete type `resample.c'
resample.c:241: Error: error: invalid application of `sizeof' to incomplete type `resample.c'
resample.c:245: Error: error: dereferencing pointer to incomplete type
resample.c:247: Error: error: dereferencing pointer to incomplete type
resample.c:248: Error: error: dereferencing pointer to incomplete type
resample.c:250: Error: error: dereferencing pointer to incomplete type
resample.c:250: Error: error: dereferencing pointer to incomplete type
resample.c:251: Error: error: dereferencing pointer to incomplete type
resample.c:251: Error: error: dereferencing pointer to incomplete type
resample.c:252: Error: error: dereferencing pointer to incomplete type
resample.c:252: Error: error: dereferencing pointer to incomplete type
resample.c:254: Error: error: dereferencing pointer to incomplete type
resample.c:255: Error: error: dereferencing pointer to incomplete type
resample.c:255: Error: error: dereferencing pointer to incomplete type
resample.c: In function `audio_resample':
resample.c:272: Error: error: dereferencing pointer to incomplete type
resample.c:272: Error: error: dereferencing pointer to incomplete type
resample.c:272: Error: error: dereferencing pointer to incomplete type
resample.c:274: Error: error: dereferencing pointer to incomplete type
resample.c:283: Error: error: dereferencing pointer to incomplete type
resample.c:287: Error: error: dereferencing pointer to incomplete type
resample.c:288: Error: error: dereferencing pointer to incomplete type
resample.c:292: Error: error: dereferencing pointer to incomplete type
resample.c:292: Error: error: dereferencing pointer to incomplete type
resample.c:295: Error: error: dereferencing pointer to incomplete type
resample.c:308: Error: error: dereferencing pointer to incomplete type
resample.c:309: Error: error: dereferencing pointer to incomplete type
resample.c:312: Error: error: dereferencing pointer to incomplete type
resample.c:312: Error: error: dereferencing pointer to incomplete type
resample.c:314: Error: error: dereferencing pointer to incomplete type
make[2]: *** [resample.o] Error 1
make[2]: Leaving directory `/root/tmp/mythsvn/mythplugins/mythmusic/mythmusic'
make[1]: *** [sub-mythmusic] Error 2
make[1]: Leaving directory `/root/tmp/mythsvn/mythplugins/mythmusic'
make: *** [sub-mythmusic] Error 2

that was solved with this relatively simple patch:

Index: mythplugins/mythmusic/mythmusic/resample.c
===================================================================
--- mythplugins/mythmusic/mythmusic/resample.c  (revision 7217)
+++ mythplugins/mythmusic/mythmusic/resample.c  (working copy)
@@ -32,7 +32,7 @@
 #include <string.h>
 #include <stdio.h>

-typedef struct {
+struct ReSampleChannelContext {
     /* fractional resampling */
     uint32_t incr; /* fractional increment */
     uint32_t frac;
@@ -41,8 +41,10 @@
     int iratio;  /* integer divison ratio */
     int icount, isum;
     int inv;
-} ReSampleChannelContext;
+};

+typedef struct ReSampleChannelContext ReSampleChannelContext;
+
 struct ReSampleContext {
     ReSampleChannelContext channel_ctx[2];
     float ratio;

comment:2 Changed 18 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

(In [7413]) Fix up the svn:ignore properties. Remove config.h/pro from mythphone, closes #384. Always reset the mythconfig.mak symlink on configure, fixes #306.

comment:3 Changed 18 years ago by Isaac Richards

Resolution: fixed
Status: closedreopened

Accidently closed this instead of #388.

comment:4 Changed 18 years ago by danielk

Resolution: fixed
Status: reopenedclosed

(In [7592]) Fixes #306.

asm directive was not restrictive enough, so gcc 4 tries to put a 64 bit value in a 32 bit register...

Note: See TracTickets for help on using tickets.