Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Sep 2015 22:55:37 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Thomas Zander <riggs@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r395797 - in head/multimedia: mencoder mplayer
Message-ID:  <d1y1-506u-wny@FreeBSD.org>
In-Reply-To: <201509012008.t81K8r9e078554@repo.freebsd.org> (Thomas Zander's message of "Tue, 1 Sep 2015 20:08:53 %2B0000 (UTC)")
References:  <201509012008.t81K8r9e078554@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain

Thomas Zander <riggs@FreeBSD.org> writes:

> -OPTIONS_DEFINE_ppc=	RTCPU
> +OPTIONS_DEFINE_powerpc=	RTCPU

This still doesn't describe how upstream conflates 32bit and 64bit
platform variants into a single macro. Notice the error message from
failed attempt to cross-compile with the --enable-runtime-cpudetection
is different between really not supported architecture like sparc64 and
maybe supported powerpc64.

  ppc() {
    case "$host_arch" in
      ppc*|powerpc*) return 0;;
      *) return 1;;
    esac
  }
  [...]
  if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then
    die "Runtime CPU detection only works for x86, x86-64 and PPC!"
  fi


  $ ./configure --target=sparc64-freebsd --enable-runtime-cpudetection
  Checking for ffmpeg/libavcodec/allcodecs.c ... found
  Checking for ffmpeg/libavformat/allformats.c ... found
  Checking for ffmpeg/libavfilter/allfilters.c ... found
  Checking for cc version ... clang 3.7.0 (experimental support only)
  Checking for working compiler ... yes
  Detected operating system: FreeBSD
  Detected host architecture: sparc64

  Error: Runtime CPU detection only works for x86, x86-64 and PPC!

  Check "config.log" if you do not understand why it failed.


  $ ./configure --target=powerpc64-freebsd --enable-runtime-cpudetection
  Checking for ffmpeg/libavcodec/allcodecs.c ... found
  Checking for ffmpeg/libavformat/allformats.c ... found
  Checking for ffmpeg/libavfilter/allfilters.c ... found
  Checking for cc version ... clang 3.7.0 (experimental support only)
  Checking for working compiler ... yes
  Detected operating system: FreeBSD
  Detected host architecture: powerpc64
  Checking for cross compilation ... no
  Checking for host cc ... cc
  Checking for CPU type ...
  Checking for GCC & CPU optimization abilities ... none
  Checking for byte order ... little-endian
  Checking for extern symbol prefix ...
  Checking for assembler support of -pipe option ... yes
  Checking for relocatable binary ... no (unavailable or untested architecture)
  Checking for PIC ... no
  Checking for GCC AltiVec flags ...

  Error: You need a compiler that supports {} in AltiVec vector declarations.

  Check "config.log" if you do not understand why it failed.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQF8BAEBCgBmBQJV5hDKXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF
NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3bEygH/3empoLizgZ/Tpnh9wBOB0cJ
TORGIVifoCQklJj2oE+cmwECicTlCT2ru/QCZjp3DEN/xFh6i/c9pi65PjwnP3pu
mjQMP9hpQZ1uG4BzbvTtlJD4Yu4TCRJlee9AJhzBrwYD/47DRoTXlFOJU7dTxm1X
HqtKfzkhoKYlPKRCyhUKyet59pAfvhrnztKNcHfVxhFLFoJkhoipqL9RTI0hKxYd
s5Ipa5QQxvycG4/+9oSt1//pgzdfaCbma0+0I/417pNtYnXmR8UkzYzMg68VeQOD
XNPwJBxuhfvDftHCb//tCJ3wVNwv0Hj9+5zUCU5LdieLq6k/20B7VTc0AQ6G+AQ=
=BJOB
-----END PGP SIGNATURE-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d1y1-506u-wny>