On Jan 11 09:55:30, [email protected] wrote:
> On Jan 10 19:13:39, [email protected] wrote:
> > Here is a diff to have MPlayer build using Clang to take advantage
> > of the integrated assembler to be able to build the SSSE3 / SSE4
> > support.
> >
> > Note: has not been checked on i386, please someone try building this
> > and see if it does. *crosses fingers*
>
> ===> Configuring for mplayer-20140106p0
> Checking for cc version ... clang 4.2.1 (experimental support only)
> Checking for working compiler ... yes
> Detected operating system: OpenBSD
> Detected host architecture: i386
> Checking for cross compilation ... no
> Checking for host cc ... cc
> Checking for GCC & CPU optimization abilities ... i386
> Checking for byte order ... little-endian
> Checking for extern symbol prefix ...
> Checking for assembler support of -pipe option ... yes
> Checking for relocatable binary ... no
> Checking for assembler (/usr/bin/as 2.15) ... failed (Upgrade binutils to
> 2.16.92 or use --disable-ssse3 etc.)
>
> Error: obsolete binutils version
>
> Check "config.log" if you do not understand why it failed.
> *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2650
> '/usr/ports/pobj/mplayer-20140106/.configure_done')
> *** Error 1 in /usr/ports/x11/mplayer
> (/usr/ports/infrastructure/mk/bsd.port.mk:2406 'all')
[...]
============ Checking for assembler (/usr/bin/as 2.15) ============
Result is: failed (Upgrade binutils to 2.16.92 or use --disable-ssse3 etc.)
##########################################
>
> This is today's snapshot of i386. Indeed,
>
> $ as --version
> GNU assembler 2.15
>
>
> Am I missing something?
>
>
> > Index: Makefile
> > ===================================================================
> > RCS file: /home/cvs/ports/x11/mplayer/Makefile,v
> > retrieving revision 1.231
> > diff -u -p -u -p -r1.231 Makefile
> > --- Makefile 10 Jan 2014 21:52:29 -0000 1.231
> > +++ Makefile 10 Jan 2014 23:58:16 -0000
> > @@ -15,6 +15,7 @@ SUBST_VARS += PREFIX CONFDIR
> > # Distfiles must be hand-rolled, see README
> > N = mplayer
> > DISTNAME = mplayer-${V}
> > +REVISION = 0
> > EXTRACT_SUFX = .tar.xz
> >
> > CATEGORIES = x11 multimedia
> > @@ -37,7 +38,8 @@ MASTER_SITES = http://comstyle.com/sourc
> >
> > MAINTAINER = Edd Barrett <[email protected]>
> >
> > -MODULES += converters/libiconv
> > +MODULES += converters/libiconv \
> > + lang/clang
> >
> > LIB_DEPENDS = graphics/png \
> > graphics/jpeg \
> > @@ -71,6 +73,9 @@ BUILD_DEPENDS +=graphics/ffmpeg:patch
> > BUILD_DEPENDS += devel/yasm
> > .endif
> >
> > +MODCLANG_ARCHS= amd64 i386
> > +MODCLANG_LANGS= c
> > +
> > CONFDIR = ${SYSCONFDIR}/mplayer
> >
> > .if ${MACHINE_ARCH:Marm}
> > @@ -164,11 +169,8 @@ WANTLIB += vorbisenc vorbis
> >
> > CONFIGURE_ENV += LOCALBASE="${LOCALBASE}" TMPDIR="${WRKBUILD}"
> >
> > -# binutils 2.15 does not support SSSE3 / SSE4 for amd64 / i386
> > .if ${MACHINE_ARCH:Mamd64} || ${MACHINE_ARCH:Mi386}
> > CONFIGURE_ARGS += --enable-runtime-cpudetection
> > -CONFIGURE_ARGS += --disable-ssse3
> > -CONFIGURE_ARGS += --disable-sse4
> > .endif
> >
> > # binutils 2.15 assembler missing opcode support