[Gentoo] compile error

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, kodachi, cesium

[Gentoo] compile error

Postby musv » Mon Nov 01, 2010 7:45 pm

I'm trying to compile oss-devel-9999 on a i686 machine and get the following error in ossplay_parser.c:

Code: Select all
cc -c -march=prescott -O2 -fomit-frame-pointer -pipe -O -O -O -DOGG_SUPPORT -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossplay_console.c -o ./ossplay_console.o
cc -c -march=prescott -O2 -fomit-frame-pointer -pipe -O -O -O -DOGG_SUPPORT -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossplay_decode.c -o ./ossplay_decode.o
cc -c -march=prescott -O2 -fomit-frame-pointer -pipe -O -O -O -DOGG_SUPPORT -Wall -Werror -DOSS_LITTLE_ENDIAN  -I../../include -I../../kernel/framework/include -I../../kernel/OS/Linux -I../../kernel/nonfree/include -I../.. ossplay_parser.c -o ./ossplay_parser.o
cc1: warnings being treated as errors
ossplay_parser.c: In function 'aiff_comm_parse':
ossplay_parser.c:1184: error: left shift count >= width of type
ossplay_parser.c:1184: error: division by zero
ossplay_parser.c: In function 'caf_desc_parse':
ossplay_parser.c:1698: error: left shift count >= width of type
ossplay_parser.c:1698: error: division by zero
make[2]: *** [ossplay_parser.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/media-sound/oss-devel-9999/work/build/cmd/ossplay'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/oss-devel-9999/work/build/cmd'
make: *** [subdirs] Error 1
emake failed
* ERROR: media-sound/oss-devel-9999 failed:


The related lines are:
Code: Select all
    COMM_rate /= 1L << 32;
...
rate /= 1L << 32;


Maybe the datatypes have a different size on i686 and amd64. I didn't find something about ldouble_t.
musv
 
Posts: 12
Joined: Tue Oct 14, 2008 12:00 pm

Re: [Gentoo] compile error

Postby cesium » Mon Nov 01, 2010 8:55 pm

Just change the "#if 1" above to "#if 0". I'll send the patch to unbreak this again...
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am


Return to Linux

Who is online

Users browsing this forum: No registered users and 3 guests