pkgsrc-Users archive

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

Re: Compiler problems on OS X 10.12.3, pkgsrc-2016Q4



On 3/13/17 5:00 AM, Jonathan Perkin wrote:
* On 2017-03-13 at 00:05 GMT, Louis Guillaume wrote:

configure: error: C compiler cannot create executables
See `config.log' for more details
*** Error code 77

This will detail why it's failing, so we'll need to see what's in
there (just the section where it fails rather than all of it).



Ok - Here's what we have in config.log...

$ ./configure --prefix=/opt/pkg --build=x86_64-apple-darwin16 --host=x86_64-apple-darwin16 --mandir=/opt/pkg/man

  .....

uname -v = Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64

  .....

  ## ----------- ##
  ## Core tests. ##
  ## ----------- ##

  configure:2335: checking build system type
  configure:2349: result: x86_64-apple-darwin16
  configure:2369: checking host system type
  configure:2382: result: x86_64-apple-darwin16
  configure:2406: checking whether make sets $(MAKE)
  configure:2428: result: yes
  configure:2441: checking for gawk
  configure:2468: result: /usr/bin/awk
  configure:2487: checking for x86_64-apple-darwin16-gcc
  configure:2514: result: cc
  configure:2783: checking for C compiler version
  configure:2792: cc --version >&5
  configure:2803: $? = 1
  configure:2792: cc -v >&5
  configure:2803: $? = 1
  configure:2792: cc -V >&5
  configure:2803: $? = 1
  configure:2792: cc -qversion >&5
  configure:2803: $? = 1
  configure:2823: checking whether the C compiler works
  configure:2845: cc -O2  -L/opt/pkg/lib conftest.c  >&5
  configure:2849: $? = 1
  configure:2887: result: no
  configure: failed program was:
  | /* confdefs.h */
  | #define PACKAGE_NAME "nbsd-digest"
  | #define PACKAGE_TARNAME "nbsd-digest"
  | #define PACKAGE_VERSION "20160304"
  | #define PACKAGE_STRING "nbsd-digest 20160304"
  | #define PACKAGE_BUGREPORT "agc%netbsd.org@localhost"
  | #define PACKAGE_URL ""
  | /* end confdefs.h.  */
  |
  | int
  | main ()
  | {
  |
  |   ;
  |   return 0;
  | }
configure:2892: error: in `/opt/pkgobj/pkgtools/digest/work/digest-20160304':
  configure:2894: error: C compiler cannot create executables
  See `config.log' for more details


  .....

If I create a similar mini-program and compile it with "cc -O2 -L/opt/pkg/lib" it seems to compile without any problem!

Also here's this...

  $ clang --version
  Apple LLVM version 8.0.0 (clang-800.0.42.1)
  Target: x86_64-apple-darwin16.4.0
  Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin




Thanks for looking!

Louis



Home | Main Index | Thread Index | Old Index