Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#39157 closed defect (worksforme)

mplayer-devel: clang does not recognize -march=corei7-avx

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: acho@…, Veence (Vincent)
Port: mplayer-devel

Description

Here are excerpts from fetching until compilation:

Note: checking out 'dd17843b8ab3e1357f33069dae9af8e5b4e43d11'.
Checking for host cc ... /usr/bin/clang 
Checking for CPU vendor ... GenuineIntel (6:42:7) 
Checking for CPU type ...  Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz 
Checking for kernel support of mmx ... yes 
Checking for kernel support of mmxext ... yes 
Checking for kernel support of sse ... yes 
Checking for kernel support of sse2 ... yes 
Checking for kernel support of sse3 ... yes 
Checking for kernel support of ssse3 ... yes 
Checking for kernel support of sse4_1 ... yes 
Checking for kernel support of sse4_2 ... yes 
Checking for kernel support of avx ... yes 
Checking for kernel support of cmov ... yes 
Checking for mtrr support ... yes 
Checking for GCC & CPU optimization abilities ... corei7-avx 
  Optimizing for: corei7-avx
/usr/bin/clang -MMD -MP -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=corei7-avx -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -I/opt/local/include/lzo -I/opt/local/include -DPIC -fpie  -I/usr/X11/include -I/opt/local/include/opus  -c -o input/input.o input/input.c
'corei7-avx' is not a recognized processor for this target (ignoring processor)

It's doubtful whether this built an optimised version of mplayer…

Change History (2)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: vince@… added; jeremyhu@… removed
Owner: changed from macports-tickets@… to jeremyhu@…
Summary: In mplayer-devel clang uses wrong optimisation: -march=corei7-avxmplayer-devel: clang does not recognize -march=corei7-avx

comment:2 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

clang-3.0 and later do:

$ clang-mp-3.0 -march=corei7-avx -c ~/testl.c 

$ clang-mp-2.9 -march=corei7-avx -c ~/testl.c 
'corei7-avx' is not a recognized processor for this target (ignoring processor)
Last edited 11 years ago by jeremyhu (Jeremy Huddleston Sequoia) (previous) (diff)
Note: See TracTickets for help on using tickets.