Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#22309 closed defect (fixed)

mplayer-devel fails to build on 10.5.8

Reported by: admsimat@… Owned by: acho@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: broberts@…, ryandesign (Ryan Carsten Schmidt), SiggyF
Port: mplayer-devel

Description (last modified by jmroot (Joshua Root))

After the last selfupdate, mplayer-devel fails to build on my Macbook Intel 10.5.8. The output of the command

sudo port -d build mplayer-devel

follows.

--->  Computing dependencies for mplayer-devel
--->  Building mplayer-devel
/usr/bin/gcc-4.0 -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=i386 -mtune=i386 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -fomit-frame-pointer -I/opt/local/include/lzo -I/opt/local/include  -I/usr/X11/include   -c -o input/ar.o input/ar.c
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 input/ar.c:27:
/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 input/ar.c:27:
/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
make: *** [input/ar.o] Error 1
Warning: the following items did not execute (for mplayer-devel): org.macports.build

Attachments (3)

configure.log (141.5 KB) - added by ecronin (Eric Cronin) 15 years ago.
mplayer.log (752.8 KB) - added by ecronin (Eric Cronin) 15 years ago.
configure-notarget.log (142.4 KB) - added by ecronin (Eric Cronin) 15 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Cc: admsimat@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to acho@…

comment:2 Changed 15 years ago by broberts@…

Cc: broberts@… added

Cc Me!

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

comment:4 Changed 15 years ago by SiggyF

Cc: f.baart@… added

Cc Me!

comment:5 Changed 15 years ago by SiggyF

The same issue exists for the MPlayer port 21686.

comment:6 Changed 15 years ago by ecronin (Eric Cronin)

I'm attaching config and build logs for this in case someone wants to take a look and doesn't have an intel 10.5.8 machine around... Not sure when I'll have time to poke at it more than trying #21686's suggestion of removing the explicit --target= except for x86_64.

Changed 15 years ago by ecronin (Eric Cronin)

Attachment: configure.log added

Changed 15 years ago by ecronin (Eric Cronin)

Attachment: mplayer.log added

comment:7 Changed 15 years ago by ecronin (Eric Cronin)

root problem is here:

with --target:

=========== Checking for GCC & CPU optimization abilities ============

int main(void) { return 0; }

/usr/bin/gcc-4.0  -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -fomit-frame-pointer -I/opt/local/include/lzo -I/opt/local/include  -L/opt/local/lib -L/opt/local/lib/samba3   -o /tmp/mplayer-conf-16225-31247 /tmp/mplayer-conf-8096-31247.c -march=native
/tmp/mplayer-conf-8096-31247.c:1: error: bad value (native) for -march= switch
/tmp/mplayer-conf-8096-31247.c:1: error: bad value (native) for -mtune= switch



int main(void) { return 0; }

/usr/bin/gcc-4.0  -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -fomit-frame-pointer -I/opt/local/include/lzo -I/opt/local/include  -L/opt/local/lib -L/opt/local/lib/samba3   -o /tmp/mplayer-conf-16225-31247 /tmp/mplayer-conf-8096-31247.c -march=core2 -mtune=core2
/tmp/mplayer-conf-8096-31247.c:1: error: bad value (core2) for -march= switch
/tmp/mplayer-conf-8096-31247.c:1: error: bad value (core2) for -mtune= switch



int main(void) { return 0; }

/usr/bin/gcc-4.0  -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -fomit-frame-pointer -I/opt/local/include/lzo -I/opt/local/include  -L/opt/local/lib -L/opt/local/lib/samba3   -o /tmp/mplayer-conf-16225-31247 /tmp/mplayer-conf-8096-31247.c -march=pentium-m -mtune=pentium-m


Result is: i386 
##########################################

without --target (auto-detect in ./configure):

============ Checking for GCC & CPU optimization abilities ============

int main(void) { return 0; }

/usr/bin/gcc-4.0  -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -fomit-frame-pointer -I/opt/local/include/lzo -I/opt/local/include  -L/opt/local/lib -L/opt/local/lib/samba3   -o /tmp/mplayer-conf-11210-337 /tmp/mplayer-conf-32532-337.c -march=native
/tmp/mplayer-conf-32532-337.c:1: error: bad value (native) for -march= switch
/tmp/mplayer-conf-32532-337.c:1: error: bad value (native) for -mtune= switch



int main(void) { return 0; }

/usr/bin/gcc-4.0  -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -fomit-frame-pointer -I/opt/local/include/lzo -I/opt/local/include  -L/opt/local/lib -L/opt/local/lib/samba3   -o /tmp/mplayer-conf-11210-337 /tmp/mplayer-conf-32532-337.c -march=core2 -mtune=core2
/tmp/mplayer-conf-32532-337.c:1: error: bad value (core2) for -march= switch
/tmp/mplayer-conf-32532-337.c:1: error: bad value (core2) for -mtune= switch



int main(void) { return 0; }

/usr/bin/gcc-4.0  -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I. -fomit-frame-pointer -I/opt/local/include/lzo -I/opt/local/include  -L/opt/local/lib -L/opt/local/lib/samba3   -o /tmp/mplayer-conf-11210-337 /tmp/mplayer-conf-32532-337.c -march=pentium-m -mtune=pentium-m


Result is: pentium-m 
##########################################

Once -march=i386 starts getting passed things go south in CoreVideo, CoreAudio, and other system frameworks... Testing if disabling --target when macports arch is i386 does anything bad on 10.6 x86_64.

Changed 15 years ago by ecronin (Eric Cronin)

Attachment: configure-notarget.log added

comment:8 Changed 15 years ago by ecronin (Eric Cronin)

Fixed in @60086

comment:9 Changed 15 years ago by ecronin (Eric Cronin)

Resolution: fixed
Status: newclosed

comment:10 Changed 15 years ago by jmroot (Joshua Root)

That's r60086 (for the auto-link to work)

Note: See TracTickets for help on using tickets.