Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13175 closed defect (fixed)

madplay-0.15.2b fails to build on Tiger or Leopard Intel H/W

Reported by: broberts@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: madplay intel Cc: broberts@…, nox@…
Port:

Description

The libraries build fine, but the madplay application fails to compile on what appears to be deprecated Carbon audio calls. Here's where is packed it in:

--->  Building madplay with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_madplay/work/madplay-0.15.2b" && make all " returned error 2
Command output: In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:29,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from audio_carbon.c:28:
/usr/lib/gcc/i686-apple-darwin9/4.0.1/include/xmmintrin.h:35:3: error: #error "SSE instruction set not enabled"
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from audio_carbon.c:28:
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:216: error: syntax error before '__m128'
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:218: error: syntax error before 'sd'
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:220: error: syntax error before '}' token
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:264: error: array type has incomplete element type
audio_carbon.c: In function 'soundcmd':
audio_carbon.c:71: warning: 'SndDoImmediate' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1412)
audio_carbon.c:78: warning: 'SndDoCommand' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1398)
audio_carbon.c: In function 'init':
audio_carbon.c:114: warning: 'SndNewChannel' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1428)
audio_carbon.c: In function 'queue':
audio_carbon.c:189: warning: pointer targets in passing argument 2 of 'init_header' differ in signedness
audio_carbon.c: In function 'finish':
audio_carbon.c:324: warning: 'SndDisposeChannel' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1442)

Change History (14)

comment:1 Changed 16 years ago by nox@…

Cc: broberts@… added
Keywords: intel added
Milestone: Port Bugs
Summary: Madplay does not compile on Tiger or Leopard Intel H/Wmadplay-0.15.2b fails to build on Tiger or Leopard Intel H/W

The deprecated calls only procude warnings. The problem comes from SSE instructions. Could you paste the full output of sudo port -d build madplay?

comment:2 Changed 16 years ago by nox@…

Cc: nox@… added

comment:3 Changed 16 years ago by broberts@…

Here is output from sudo port -d build madplay (minus all the libraries and dependancies which compiled fine)

DEBUG: Skipping completed org.macports.fetch (madplay)
DEBUG: Skipping completed org.macports.checksum (madplay)
DEBUG: Skipping completed org.macports.extract (madplay)
DEBUG: Skipping completed org.macports.patch (madplay)
DEBUG: Skipping completed org.macports.configure (madplay)
--->  Building madplay with target all
DEBUG: Executing org.macports.build (madplay)
DEBUG: Environment: 
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_madplay/work/madplay-0.15.2b" && make all'
make  all-recursive
Making all in intl
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT madplay.o -MD -MP -MF ".deps/madplay.Tpo" -c -o madplay.o madplay.c; \
	then mv -f ".deps/madplay.Tpo" ".deps/madplay.Po"; else rm -f ".deps/madplay.Tpo"; exit 1; fi
madplay.c: In function 'get_time':
madplay.c:379: warning: 'time.fraction' may be used uninitialized in this function
madplay.c:379: warning: 'time.seconds' may be used uninitialized in this function
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT version.o -MD -MP -MF ".deps/version.Tpo" -c -o version.o version.c; \
	then mv -f ".deps/version.Tpo" ".deps/version.Po"; else rm -f ".deps/version.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT resample.o -MD -MP -MF ".deps/resample.Tpo" -c -o resample.o resample.c; \
	then mv -f ".deps/resample.Tpo" ".deps/resample.Po"; else rm -f ".deps/resample.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT filter.o -MD -MP -MF ".deps/filter.Tpo" -c -o filter.o filter.c; \
	then mv -f ".deps/filter.Tpo" ".deps/filter.Po"; else rm -f ".deps/filter.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT tag.o -MD -MP -MF ".deps/tag.Tpo" -c -o tag.o tag.c; \
	then mv -f ".deps/tag.Tpo" ".deps/tag.Po"; else rm -f ".deps/tag.Tpo"; exit 1; fi
tag.c: In function 'parse_lame':
tag.c:126: warning: pointer targets in assignment differ in signedness
tag.c: In function 'tag_parse':
tag.c:316: warning: pointer targets in passing argument 1 of 'crc_compute' differ in signedness
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT rgain.o -MD -MP -MF ".deps/rgain.Tpo" -c -o rgain.o rgain.c; \
	then mv -f ".deps/rgain.Tpo" ".deps/rgain.Po"; else rm -f ".deps/rgain.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT player.o -MD -MP -MF ".deps/player.Tpo" -c -o player.o player.c; \
	then mv -f ".deps/player.Tpo" ".deps/player.Po"; else rm -f ".deps/player.Tpo"; exit 1; fi
player.c: In function 'process_id3':
player.c:1223: warning: pointer targets in passing argument 1 of 'atol' differ in signedness
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT audio.o -MD -MP -MF ".deps/audio.Tpo" -c -o audio.o audio.c; \
	then mv -f ".deps/audio.Tpo" ".deps/audio.Po"; else rm -f ".deps/audio.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT audio_aiff.o -MD -MP -MF ".deps/audio_aiff.Tpo" -c -o audio_aiff.o audio_aiff.c; \
	then mv -f ".deps/audio_aiff.Tpo" ".deps/audio_aiff.Po"; else rm -f ".deps/audio_aiff.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT audio_cdda.o -MD -MP -MF ".deps/audio_cdda.Tpo" -c -o audio_cdda.o audio_cdda.c; \
	then mv -f ".deps/audio_cdda.Tpo" ".deps/audio_cdda.Po"; else rm -f ".deps/audio_cdda.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT audio_hex.o -MD -MP -MF ".deps/audio_hex.Tpo" -c -o audio_hex.o audio_hex.c; \
	then mv -f ".deps/audio_hex.Tpo" ".deps/audio_hex.Po"; else rm -f ".deps/audio_hex.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT audio_null.o -MD -MP -MF ".deps/audio_null.Tpo" -c -o audio_null.o audio_null.c; \
	then mv -f ".deps/audio_null.Tpo" ".deps/audio_null.Po"; else rm -f ".deps/audio_null.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT audio_raw.o -MD -MP -MF ".deps/audio_raw.Tpo" -c -o audio_raw.o audio_raw.c; \
	then mv -f ".deps/audio_raw.Tpo" ".deps/audio_raw.Po"; else rm -f ".deps/audio_raw.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT audio_snd.o -MD -MP -MF ".deps/audio_snd.Tpo" -c -o audio_snd.o audio_snd.c; \
	then mv -f ".deps/audio_snd.Tpo" ".deps/audio_snd.Po"; else rm -f ".deps/audio_snd.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT audio_wave.o -MD -MP -MF ".deps/audio_wave.Tpo" -c -o audio_wave.o audio_wave.c; \
	then mv -f ".deps/audio_wave.Tpo" ".deps/audio_wave.Po"; else rm -f ".deps/audio_wave.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT audio_esd.o -MD -MP -MF ".deps/audio_esd.Tpo" -c -o audio_esd.o audio_esd.c; \
	then mv -f ".deps/audio_esd.Tpo" ".deps/audio_esd.Po"; else rm -f ".deps/audio_esd.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -Wall -I/opt/local/include -march=i486 -O2 -MT audio_carbon.o -MD -MP -MF ".deps/audio_carbon.Tpo" -c -o audio_carbon.o audio_carbon.c; \
	then mv -f ".deps/audio_carbon.Tpo" ".deps/audio_carbon.Po"; else rm -f ".deps/audio_carbon.Tpo"; exit 1; fi
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:29,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from audio_carbon.c:28:
/usr/lib/gcc/i686-apple-darwin9/4.0.1/include/xmmintrin.h:35:3: error: #error "SSE instruction set not enabled"
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from audio_carbon.c:28:
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:216: error: syntax error before '__m128'
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:218: error: syntax error before 'sd'
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:220: error: syntax error before '}' token
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:264: error: array type has incomplete element type
audio_carbon.c: In function 'soundcmd':
audio_carbon.c:71: warning: 'SndDoImmediate' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1412)
audio_carbon.c:78: warning: 'SndDoCommand' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1398)
audio_carbon.c: In function 'init':
audio_carbon.c:114: warning: 'SndNewChannel' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1428)
audio_carbon.c: In function 'queue':
audio_carbon.c:189: warning: pointer targets in passing argument 2 of 'init_header' differ in signedness
audio_carbon.c: In function 'finish':
audio_carbon.c:324: warning: 'SndDisposeChannel' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1442)
make[2]: *** [audio_carbon.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_madplay/work/madplay-0.15.2b" && make all " returned error 2
Command output: In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:29,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from audio_carbon.c:28:
/usr/lib/gcc/i686-apple-darwin9/4.0.1/include/xmmintrin.h:35:3: error: #error "SSE instruction set not enabled"
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from audio_carbon.c:28:
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:216: error: syntax error before '__m128'
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:218: error: syntax error before 'sd'
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:220: error: syntax error before '}' token
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:264: error: array type has incomplete element type
audio_carbon.c: In function 'soundcmd':
audio_carbon.c:71: warning: 'SndDoImmediate' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1412)
audio_carbon.c:78: warning: 'SndDoCommand' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1398)
audio_carbon.c: In function 'init':
audio_carbon.c:114: warning: 'SndNewChannel' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1428)
audio_carbon.c: In function 'queue':
audio_carbon.c:189: warning: pointer targets in passing argument 2 of 'init_header' differ in signedness
audio_carbon.c: In function 'finish':
audio_carbon.c:324: warning: 'SndDisposeChannel' is deprecated (declared at /System/Library/Frameworks/Carbon.framework/Frameworks/CarbonSound.framework/Headers/Sound.h:1442)
make[2]: *** [audio_carbon.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for madplay): org.macports.build
Error: Status 1 encountered during

comment:4 Changed 16 years ago by jmpp@…

Component: baseports

comment:5 Changed 16 years ago by dackze macports@…

-msse needs to be passed to the compiler to use xmmintrin.h. This will fix compilation. (e.g. configure.cflags-append "-I${prefix}/include" -> configure.cflags-append "-I${prefix}/include -msse")

Also, #14347 is a dupe of this ticket.

comment:6 Changed 16 years ago by liontooth@…

I can conform this modification to the portfile resolves the problem.

comment:7 Changed 16 years ago by broberts@…

The mod resolves the problem for me on 10.5.2

comment:8 in reply to:  6 Changed 16 years ago by rob@…

Excuse my ignorance, how do I change the cflags for the compiler to make this port load?

comment:9 Changed 16 years ago by rob@…

RTFM, sorry. Found and edited the Portfile, loaded fine. Thanks

comment:10 Changed 16 years ago by afb@…

Resolution: fixed
Status: newclosed

Commited, r34509

comment:11 Changed 16 years ago by hsw@…

Resolution: fixed
Status: closedreopened

I'm getting this problem on an up-to-date 10.4. I notice the Portfile has this:

platform darwin 9 i386 {
        configure.cflags-append "-msse"
}

I'm a novice regarding Portfile, but is the "9" making the cflags mod too restrictive?

comment:12 in reply to:  11 Changed 16 years ago by hsw@…

By changing the "9" to "8" in Portfile, I can build madplay. Don't know the syntax for "8 or 9"....

comment:13 Changed 16 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: reopenedclosed

"8" is for 10.4 Tiger, "9" is for 10.5 Leopard. As the original report was for Tiger and Leopard, I changed the Portfile accordingly in r37221.

comment:14 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.