pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/45086 (libvpx on Darwin 10)



The following reply was made to PR pkg/45086; it has been noted by GNATS.

From: Martin Brandenburg <martin%martinbrandenburg.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/45086 (libvpx on Darwin 10)
Date: Tue, 21 Jun 2011 09:52:57 -0400

 That is correct. I was under the impression that pkgsrc referred to OS X =
 Snow Leopard as Darwin 10 like most of the development tools.
 
 Sorry about the lack of info, here's some more details:
 
 gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
 Xcode 4.0.2
 pkgsrc -current
 
 mk.conf:
 # Example /Users/martin/pkgsrc/pkg/etc/mk.conf file produced by =
 bootstrap-pkgsrc
 # Mon Jun 20 15:12:41 EDT 2011
 
 .ifdef BSD_PKG_MK      # begin pkgsrc settings
 
 ABI=3D                 32
 
 PKG_DBDIR=3D           /Users/martin/pkgsrc/var/pkg
 LOCALBASE=3D           /Users/martin/pkgsrc/pkg
 VARBASE=3D             /Users/martin/pkgsrc/pkg/var
 PKG_TOOLS_BIN=3D               /Users/martin/pkgsrc/pkg/sbin
 PKGMANDIR=3D           man
 
 
 .endif                 # end pkgsrc settings
 
 Here is the exact output of bmake:
 =3D> Bootstrap dependency digest>=3D20010302: found digest-20080510
 =3D=3D=3D> Skipping vulnerability checks.
 WARNING: No /Users/martin/pkgsrc/var/pkg/pkg-vulnerabilities file found.
 WARNING: To fix run: `/Users/martin/pkgsrc/pkg/sbin/pkg_admin -K =
 /Users/martin/pkgsrc/var/pkg fetch-pkg-vulnerabilities'.
 =3D> Checksum SHA1 OK for libvpx-v0.9.6.tar.bz2
 =3D> Checksum RMD160 OK for libvpx-v0.9.6.tar.bz2
 =3D=3D=3D> Installing dependencies for libvpx-0.9.6
 =3D> Build dependency yasm-[0-9]*: found yasm-1.1.0nb1
 =3D> Build dependency libtool-base>=3D2.2.6bnb3: found =
 libtool-base-2.2.6bnb5
 =3D> Build dependency perl>=3D5.8.0: found perl-5.12.2nb2
 =3D=3D=3D> Overriding tools for libvpx-0.9.6
 =3D=3D=3D> Extracting for libvpx-0.9.6
 /bin/cp /Users/martin/pkgsrc/multimedia/libvpx/files/strip_fPIC.sh =
 /Users/martin/pkgsrc/multimedia/libvpx/work/libvpx-v0.9.6
 =3D=3D=3D> Patching for libvpx-0.9.6
 =3D> Applying pkgsrc patches for libvpx-0.9.6
 =3D=3D=3D> Creating toolchain wrappers for libvpx-0.9.6
 =3D=3D=3D> Configuring for libvpx-0.9.6
 =3D> Replacing bash interpreter in configure build/make/version.sh =
 build/make/gen_asm_deps.sh examples/gen_example_text.sh =
 examples/gen_example_code.sh.
 Configuring selected codecs
   enabling vp8_encoder
   enabling vp8_decoder
 Configuring for target 'x86-darwin9-gcc'
   enabling x86
   enabling runtime_cpu_detect
   enabling mmx
   enabling sse
   enabling sse2
   enabling sse3
   enabling ssse3
   enabling sse4_1
   using yasm
 Unable to invoke compiler: gcc -pipe -O2 -I/usr/include -isysroot =
 /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=3D10.5 -m32 -arch =
 i386 -O3 -fPIC -Wall -Wdeclaration-after-statement =
 -Wdisabled-optimization -Wpointer-arith -Wcast-qual -Wno-unused
 
 Configuration failed. This could reflect a misconfiguration of your
 toolchains, improper options selected, or another problem. If you
 don't see any useful error messages above, the next step is to look
 at the configure error log file (config.err) to determine what
 configure was trying to do when it died.
 *** Error code 1
 
 Stop.
 bmake: stopped in /Users/martin/pkgsrc/multimedia/libvpx
 *** Error code 1
 
 Stop.
 bmake: stopped in /Users/martin/pkgsrc/multimedia/libvpx
 
 The mentioned error log file (config.err) ends with:
 check_header stdio.h
 check_cpp
 BEGIN /tmp/vpx-conf-17094-24434.c
     1  #include "stdio.h"
     2  int x;
 END /tmp/vpx-conf-17094-24434.c
 gcc -pipe -O2 -I/usr/include -isysroot /Developer/SDKs/MacOSX10.5.sdk =
 -mmacosx-version-min=3D10.5 -m32 -arch i386 -O3 -fPIC -Wall =
 -Wdeclaration-after-statement -Wdisabled-optimization -Wpointer-arith =
 -Wcast-qual -Wno-unused -E -o /tmp/vpx-conf-17094-7473.o =
 /tmp/vpx-conf-17094-24434.c
 /tmp/vpx-conf-17094-24434.c:1:19: error: stdio.h: No such file or =
 directory
 
 and begins:
 # ./configure --disable-postproc --enable-pic =
 --enable-runtime-cpu-detect --prefix=3D/Users/martin/pkgsrc/pkg =
 --target=3Dx86-darwin9-gcc
 
 --target was set to x86-darwin9-gcc on a darwin 10 (that is, Mac OS X =
 Snow Leopard) machine. This is wrong. You are correct that compiling it =
 without --target at all produces a 64 bit binary, as I did not consider =
 checking.
 
 The configure script only recognizes x86_64-darwin10-gcc as=20
 
 By editing the configure script like so:
 --- configure.orig     2011-06-21 09:34:10.000000000 -0400
 +++ configure  2011-06-21 09:33:14.000000000 -0400
 @@ -105,6 +105,7 @@
  all_platforms=3D"${all_platforms} x86-darwin8-icc"
  all_platforms=3D"${all_platforms} x86-darwin9-gcc"
  all_platforms=3D"${all_platforms} x86-darwin9-icc"
 +all_platforms=3D"${all_platforms} x86-darwin10-gcc"
  all_platforms=3D"${all_platforms} x86-linux-gcc"
  all_platforms=3D"${all_platforms} x86-linux-icc"
  all_platforms=3D"${all_platforms} x86-solaris-gcc"
 
 and compiling with --target=3Dx86-darwin10-gcc I was able to get a clean =
 compile.
 
 I am not sure how to proceed with creating a patch for patches/
 
 Thanks,
 Martin
 
 On Jun 21, 2011, at 3:20 AM, Matthias Scheler wrote:
 
 > The following reply was made to PR pkg/45086; it has been noted by =
 GNATS.
 >=20
 > From: Matthias Scheler <tron%NetBSD.org@localhost>
 > To: obache%NetBSD.org@localhost
 > Cc: NetBSD GNATS <gnats-bugs%NetBSD.org@localhost>
 > Subject: Re: pkg/45086 (libvpx on Darwin 10)
 > Date: Tue, 21 Jun 2011 08:00:20 +0100
 >=20
 > On Tue, Jun 21, 2011 at 01:42:11AM +0000, obache%NetBSD.org@localhost wrote:
 >> Synopsis: libvpx on Darwin 10
 >>=20
 >> Responsible-Changed-From-To: ryoon->tron
 >> Responsible-Changed-By: obache%NetBSD.org@localhost
 >> Responsible-Changed-When: Tue, 21 Jun 2011 01:42:10 +0000
 >> Responsible-Changed-Why:
 >> tron@ added the part for Mac OS X i386 (but not match for Darwin 10 =
 i386?)
 >=20
 > There is no such thing as Darwin 10. Martin Brandenburg is using
 > Mac OS X Snow Leopard.
 >=20
 >      Kind regards
 >=20
 > --=20
 > Matthias Scheler                                  =
 http://zhadum.org.uk/
 >=20
 


Home | Main Index | Thread Index | Old Index