New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22309 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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@…, f.baart@…
Port: mplayer-devel

Description (last modified by jmr@…) (diff)

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

configure.log Download (141.5 KB) - added by ecronin@… 2 years ago.
mplayer.log Download (0.7 MB) - added by ecronin@… 2 years ago.
configure-notarget.log Download (142.4 KB) - added by ecronin@… 2 years ago.

Change History

Changed 2 years ago by jmr@…

  • cc admsimat@… removed
  • owner changed from macports-tickets@… to acho@…
  • description modified (diff)

Changed 2 years ago by broberts@…

  • cc broberts@… added

Cc Me!

Changed 2 years ago by ryandesign@…

  • cc ryandesign@… added

Cc Me!

Changed 2 years ago by f.baart@…

  • cc f.baart@… added

Cc Me!

Changed 2 years ago by f.baart@…

The same issue exists for the MPlayer port 21686.

Changed 2 years ago by ecronin@…

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 2 years ago by ecronin@…

Changed 2 years ago by ecronin@…

Changed 2 years ago by ecronin@…

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 2 years ago by ecronin@…

Changed 2 years ago by ecronin@…

Fixed in @60086

Changed 2 years ago by ecronin@…

  • status changed from new to closed
  • resolution set to fixed

Changed 2 years ago by jmr@…

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

Note: See TracTickets for help on using tickets.