Re: Erroneous flag to as during configure

Reimar Döffinger <[email protected]> Mon, 22 Mar 2021 06:14:06 +0100
Newsgroups gmane.comp.video.mplayer.user
Message-ID <[email protected]>
On 21 March 2021 16:58:58 CET, Thomas Zander <[email protected]> wrote:
>Hi,
>
>Some time in the recent past, the assembler test for vector extensions
>gained a "-c" flag (currently in line 3093):
>  if test "$_ssse3" = yes ; then
>    _pref_as_version='2.16.92'
>    echo 'pabsd %xmm0, %xmm1' >> $TMPS
>  fi
>  $_as -c $TMPS -o $TMPEXE > /dev/null 2>&1 || as_verc_fail=yes
>
>The flag "-c" does not exist in some binutils releases that are
>actually *newer* than 2.16.92, leading to funny error messages on e.g.
>FreeBSD 11.4:
>
>Checking for assembler (as 2.17.50) ... failed (Upgrade binutils to
>2.16.92 or use --disable-ssse3 etc.)
>
>Reverting to the previous behaviour (i.e. dropping the "-c" flag)
>fixes the issue.

What command are you running? 
Adding the -c is a bugfix for the fact that the plain "as" command never worked for compiling the assembler code that exists.
So this $_as generally must be set to gcc or similar.
This means a behaviour change for x86 (which except for this test never uses the assembler, thus the problem was not noticed), but is necessary to get properly performing Arm builds.
_______________________________________________
MPlayer-users mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users