[MEncoder-users] Building MPlayer-MEncoder on Mac OS X since gcc 4.2 no longer works

L. Lee llee040 at sbcglobal.net
Wed Nov 2 08:28:58 CET 2011


On 10/29/11 9:48 AM, "Laine Lee" <llee040 at sbcglobal.net> wrote:

> On 10/29/11 2:38 AM, "Carl Eugen Hoyos" <cehoyos at ag.or.at> wrote:
> 
>> L. Lee <llee040 <at> sbcglobal.net> writes:
>> 
>>> I performed a clean installation of Lion 10.7.2, then installed Xcode 4.2.
>>> Even so, the binutils error occurred.
>>> 
>>> The config.log ends with: "could not merge in /var/tmp//ccH5mxP8.o because
>>> Unknown instruction for architecture x86_6".
>> 
>> Since I do not have access to a Lion system with compiler, could you add:
>> 1) Your configure line (it should be "./configure")
>> 2) The end of config.log, I believe your paste should start with "Checking
>> for".
> 
> Thanks, Carl.
> 
> 
> 1) "./configure"
> 2) 
> "============ Checking for PIC ============
> 
> 
> #if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
> #error condition not true: defined(__PIC__) || defined(__pic__) ||
> defined(PIC)
> #endif
> int main(void) { return 0; }
> 
> cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
> -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes
> -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
> -std=gnu99 -Werror-implicit-function-declaration -O4 -march=core2
> -mtune=core2 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
> /var/folders/kh/5fwgyggs7z3f07ykl1mcw5m40000gn/T//mplayer-configure-17851-47
> 32/tmp.c -falign-loops=16 -shared-libgcc -mdynamic-no-pic -I. -Iffmpeg   -lm
> -ffast-math   -o 
> /var/folders/kh/5fwgyggs7z3f07ykl1mcw5m40000gn/T//mplayer-configure-17851-47
> 32/tmp 
> 
> 
> Result is: yes 
> ##########################################
> 
> 
> int main(void) { __asm__ volatile ("mov (%eax), %eax"); return 0; }
> 
> cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
> -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes
> -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
> -std=gnu99 -Werror-implicit-function-declaration -O4 -march=core2
> -mtune=core2 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
> /var/folders/kh/5fwgyggs7z3f07ykl1mcw5m40000gn/T//mplayer-configure-17851-47
> 32/tmp.c -falign-loops=16 -shared-libgcc -mdynamic-no-pic -I. -Iffmpeg
> -DPIC  -lm  -ffast-math   -o
> /var/folders/kh/5fwgyggs7z3f07ykl1mcw5m40000gn/T//mplayer-configure-17851-47
> 32/tmp 
> ld: lto: could not merge in
> /var/folders/kh/5fwgyggs7z3f07ykl1mcw5m40000gn/T//ccqZ4y61.o because Unknown
> instruction for architecture x86_64
> collect2: ld returned 1 exit status"


I found a similar issue described at:

https://trac.macports.org/ticket/31469

I tried using a couple of workarounds derived from what was described there,
but what eventually worked for me was to uninstall the latest Developer
Tools, reinstall Xcode 3.2.6, then install Xcode 4.2 again. I think the
first version of Xcode 4 from the Mac App store did something it shouldn't
have when I installed it.

Laine Lee




More information about the MEncoder-users mailing list