[odb-users] Build libodb on OS X

Sverre Eplov duo at bsf.dk
Tue Feb 2 19:51:22 EST 2016


Hi all,

I’ve run into some strange things 

The system is OS X 10.11.3 (15D21)

Clang: Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.3.0
Thread model: posix

libtool 2.6.4
autoconf 2.69
automake 1.15


Story is, that I wanted to build from GIT to get the latest and hottest off the press. When that did not turn out so well, I wanted to revert to builds from the downloaded source tar files. 


When I try to execute “./configure”, in a folder where libodb source code has been unpacked from tar file, it fails during check for the C preprocessor - the strange thing is, that it is the generated testfile, which contains an error - the last line in the file is “Syntax Error” (which the C preprocessor chokes on, which seems fair enough.)

The Config log is attached at the bottom of this text. 

Anyone know how to whack that kind of deamon ?


Ouput from Config.log when executing “./configure”




This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by libodb configure 2.4.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure CC=clang CPP=clang

## --------- ##
## Platform. ##
## --------- ##

hostname = Blackie.local
uname -m = x86_64
uname -r = 15.3.0
uname -s = Darwin
uname -v = Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
	 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 16.00 gigabytes
Default processor set: 249 tasks, 1340 threads, 8 processors
Load average: 0.85, Mach factor: 7.14
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /Users/sverre/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/X11/bin
PATH: /Library/TeX/texbin


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

configure:2311: checking for a BSD-compatible install
configure:2379: result: /usr/bin/install -c
configure:2390: checking whether build environment is sane
configure:2445: result: yes
configure:2596: checking for a thread-safe mkdir -p
configure:2635: result: config/install-sh -c -d
configure:2642: checking for gawk
configure:2672: result: no
configure:2642: checking for mawk
configure:2672: result: no
configure:2642: checking for nawk
configure:2672: result: no
configure:2642: checking for awk
configure:2658: found /usr/bin/awk
configure:2669: result: awk
configure:2680: checking whether make sets $(MAKE)
configure:2702: result: yes
configure:2783: checking how to create a ustar tar archive
configure:2796: tar --version
bsdtar 2.8.3 - libarchive 2.8.3
configure:2799: $? = 0
configure:2839: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:2842: $? = 0
configure:2846: tar -xf - <conftest.tar
configure:2849: $? = 0
configure:2862: result: gnutar
configure:2881: checking for style of include used by make
configure:2909: result: GNU
configure:2980: checking for gcc
configure:3007: result: clang
configure:3236: checking for C compiler version
configure:3245: clang --version >&5
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
configure:3256: $? = 0
configure:3245: clang -v >&5
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
configure:3256: $? = 0
configure:3245: clang -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3256: $? = 1
configure:3245: clang -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:3256: $? = 1
configure:3276: checking whether the C compiler works
configure:3298: clang    conftest.c  >&5
configure:3302: $? = 0
configure:3350: result: yes
configure:3353: checking for C compiler default output file name
configure:3355: result: a.out
configure:3361: checking for suffix of executables
configure:3368: clang -o conftest    conftest.c  >&5
configure:3372: $? = 0
configure:3394: result: 
configure:3416: checking whether we are cross compiling
configure:3424: clang -o conftest    conftest.c  >&5
configure:3428: $? = 0
configure:3435: ./conftest
configure:3439: $? = 0
configure:3454: result: no
configure:3459: checking for suffix of object files
configure:3481: clang -c   conftest.c >&5
configure:3485: $? = 0
configure:3506: result: o
configure:3510: checking whether we are using the GNU C compiler
configure:3529: clang -c   conftest.c >&5
configure:3529: $? = 0
configure:3538: result: yes
configure:3547: checking whether clang accepts -g
configure:3567: clang -c -g  conftest.c >&5
configure:3567: $? = 0
configure:3608: result: yes
configure:3625: checking for clang option to accept ISO C89
configure:3688: clang  -c -g -O2  conftest.c >&5
configure:3688: $? = 0
configure:3701: result: none needed
configure:3723: checking dependency style of clang
configure:3834: result: gcc3
configure:3899: checking for ar
configure:3915: found /usr/bin/ar
configure:3926: result: ar
configure:3952: checking the archiver (ar) interface
configure:3962: clang -c -g -O2  conftest.c >&5
configure:3962: $? = 0
configure:3964: ar cru libconftest.a conftest.o >&5
configure:3967: $? = 0
configure:3990: result: ar
configure:4040: checking build system type
configure:4054: result: x86_64-apple-darwin15.3.0
configure:4074: checking host system type
configure:4087: result: x86_64-apple-darwin15.3.0
configure:4128: checking how to print strings
configure:4155: result: printf
configure:4176: checking for a sed that does not truncate output
configure:4240: result: /usr/bin/sed
configure:4258: checking for grep that handles long lines and -e
configure:4316: result: /usr/bin/grep
configure:4321: checking for egrep
configure:4383: result: /usr/bin/grep -E
configure:4388: checking for fgrep
configure:4450: result: /usr/bin/grep -F
configure:4485: checking for ld used by clang
configure:4552: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
configure:4559: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld
configure:4574: result: no
configure:4586: checking for BSD- or MS-compatible name lister (nm)
configure:4635: result: /usr/bin/nm
configure:4765: checking the name lister (/usr/bin/nm) interface
configure:4772: clang -c -g -O2  conftest.c >&5
configure:4775: /usr/bin/nm "conftest.o"
configure:4778: output
00000000000001f8 S _some_variable
configure:4785: result: BSD nm
configure:4788: checking whether ln -s works
configure:4792: result: yes
configure:4800: checking the maximum length of command line arguments
configure:4931: result: 196608
configure:4948: checking whether the shell understands some XSI constructs
configure:4958: result: yes
configure:4962: checking whether the shell understands "+="
configure:4968: result: yes
configure:5003: checking how to convert x86_64-apple-darwin15.3.0 file names to x86_64-apple-darwin15.3.0 format
configure:5043: result: func_convert_file_noop
configure:5050: checking how to convert x86_64-apple-darwin15.3.0 file names to toolchain format
configure:5070: result: func_convert_file_noop
configure:5077: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files
configure:5084: result: -r
configure:5158: checking for objdump
configure:5188: result: no
configure:5214: checking how to recognize dependent libraries
configure:5412: result: pass_all
configure:5497: checking for dlltool
configure:5527: result: no
configure:5554: checking how to associate runtime and link libraries
configure:5581: result: printf %s\n
configure:5705: checking for archiver @FILE support
configure:5722: clang -c -g -O2  conftest.c >&5
configure:5722: $? = 0
configure:5725: ar cru libconftest.a @conftest.lst >&5
ar: @conftest.lst: No such file or directory
configure:5728: $? = 1
configure:5748: result: no
configure:5806: checking for strip
configure:5822: found /usr/bin/strip
configure:5833: result: strip
configure:5905: checking for ranlib
configure:5921: found /usr/bin/ranlib
configure:5932: result: ranlib
configure:6034: checking command to parse /usr/bin/nm output from clang object
configure:6154: clang -c -g -O2  conftest.c >&5
configure:6157: $? = 0
configure:6161: /usr/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:6164: $? = 0
cannot find nm_test_var in conftest.nm
configure:6154: clang -c -g -O2  conftest.c >&5
configure:6157: $? = 0
configure:6161: /usr/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:6164: $? = 0
configure:6230: clang -o conftest -g -O2   conftest.c conftstm.o >&5
warning: (x86_64)  could not find object file symbol for symbol _main
configure:6233: $? = 0
configure:6271: result: ok
configure:6308: checking for sysroot
configure:6338: result: no
configure:6601: checking for mt
configure:6631: result: no
configure:6651: checking if : is a manifest tool
configure:6657: : '-?'
configure:6665: result: no
configure:6721: checking for dsymutil
configure:6737: found /usr/bin/dsymutil
configure:6748: result: dsymutil
configure:6813: checking for nmedit
configure:6829: found /usr/bin/nmedit
configure:6840: result: nmedit
configure:6905: checking for lipo
configure:6921: found /usr/bin/lipo
configure:6932: result: lipo
configure:6997: checking for otool
configure:7013: found /usr/bin/otool
configure:7024: result: otool
configure:7089: checking for otool64
configure:7119: result: no
configure:7164: checking for -single_module linker flag
clang -g -O2  -o libconftest.dylib -dynamiclib -Wl,-single_module conftest.c
configure:7197: result: yes
configure:7200: checking for -exported_symbols_list linker flag
configure:7220: clang -o conftest -g -O2   -Wl,-exported_symbols_list,conftest.sym conftest.c  >&5
configure:7220: $? = 0
configure:7230: result: yes
configure:7233: checking for -force_load linker flag
clang -g -O2 -c -o conftest.o conftest.c
ar cru libconftest.a conftest.o
ranlib libconftest.a
clang -g -O2  -o conftest conftest.c -Wl,-force_load,./libconftest.a
configure:7265: result: yes
configure:7307: checking how to run the C preprocessor
configure:7377: result: clang
configure:7397: clang  conftest.c
conftest.c:16:8: error: unknown type name 'Syntax'
                     Syntax error
                     ^
conftest.c:16:20: error: expected ';' after top level declarator
                     Syntax error
                                 ^
                                 ;
2 errors generated.
configure:7397: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libodb"
| #define PACKAGE_TARNAME "libodb"
| #define PACKAGE_VERSION "2.4.0"
| #define PACKAGE_STRING "libodb 2.4.0"
| #define PACKAGE_BUGREPORT "odb-users at codesynthesis.com"
| #define PACKAGE_URL ""
| #define PACKAGE "libodb"
| #define VERSION "2.4.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:7397: clang  conftest.c
conftest.c:16:8: error: unknown type name 'Syntax'
                     Syntax error
                     ^
conftest.c:16:20: error: expected ';' after top level declarator
                     Syntax error
                                 ^
                                 ;
2 errors generated.
configure:7397: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libodb"
| #define PACKAGE_TARNAME "libodb"
| #define PACKAGE_VERSION "2.4.0"
| #define PACKAGE_STRING "libodb 2.4.0"
| #define PACKAGE_BUGREPORT "odb-users at codesynthesis.com"
| #define PACKAGE_URL ""
| #define PACKAGE "libodb"
| #define VERSION "2.4.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure:7427: error: in `/Users/sverre/Packed/CPP/ODB/libodb-2.4.0':
configure:7429: error: C preprocessor "clang" fails sanity check
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-apple-darwin15.3.0
ac_cv_c_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=clang
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=clang
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=/usr/bin/clang++
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin15.3.0
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_FGREP='/usr/bin/grep -F'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_CPP=clang
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=clang
ac_cv_prog_ac_ct_DSYMUTIL=dsymutil
ac_cv_prog_ac_ct_LIPO=lipo
ac_cv_prog_ac_ct_NMEDIT=nmedit
ac_cv_prog_ac_ct_OTOOL=otool
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_ar_interface=ar
am_cv_prog_tar_ustar=gnutar
lt_cv_apple_cc_single_mod=yes
lt_cv_ar_at_file=no
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_exported_symbols_list=yes
lt_cv_ld_force_load=yes
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_path_LD=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
lt_cv_path_NM=/usr/bin/nm
lt_cv_path_mainfest_tool=no
lt_cv_prog_gnu_ld=no
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[	 ]\([BCDEGRST][BCDEGRST]*\)[	 ][	 ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/  {\"\1\", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST]* \([^ ]*\) \([^ ]*\)$/  {"\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/  {\"\1\", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST]* \([^ ]*\) \(lib[^ ]*\)$/  {"\2", (void *) \&\2},/p'\'' -e '\''s/^[BCDEGRST]* \([^ ]*\) \([^ ]*\)$/  {"lib\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[BCDEGRST]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_max_cmd_len=196608
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /Users/sverre/Packed/CPP/ODB/libodb-2.4.0/config/missing --run aclocal-1.12'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR='ar'
AS=''
AUTOCONF='${SHELL} /Users/sverre/Packed/CPP/ODB/libodb-2.4.0/config/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/sverre/Packed/CPP/ODB/libodb-2.4.0/config/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/sverre/Packed/CPP/ODB/libodb-2.4.0/config/missing --run automake-1.12'
AWK='awk'
CC='clang'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='clang'
CPPFLAGS=''
CXX='/usr/bin/clang++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL='false'
DSYMUTIL='dsymutil'
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
FGREP='/usr/bin/grep -F'
GREP='/usr/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO='lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /Users/sverre/Packed/CPP/ODB/libodb-2.4.0/config/missing --run makeinfo'
MANIFEST_TOOL=':'
MKDIR_P='config/install-sh -c -d'
NM='/usr/bin/nm'
NMEDIT='nmedit'
OBJDUMP='false'
OBJEXT='o'
ODB_THREADS_NONE_FALSE=''
ODB_THREADS_NONE_TRUE=''
ODB_THREADS_POSIX_FALSE=''
ODB_THREADS_POSIX_TRUE=''
ODB_THREADS_WIN32_FALSE=''
ODB_THREADS_WIN32_TRUE=''
ODB_WIN32_FALSE=''
ODB_WIN32_TRUE=''
OTOOL64=':'
OTOOL='otool'
PACKAGE='libodb'
PACKAGE_BUGREPORT='odb-users at codesynthesis.com'
PACKAGE_NAME='libodb'
PACKAGE_STRING='libodb 2.4.0'
PACKAGE_TARNAME='libodb'
PACKAGE_URL=''
PACKAGE_VERSION='2.4.0'
PATH_SEPARATOR=':'
PTHREAD_CXX=''
PTHREAD_CXXFLAGS=''
PTHREAD_LIBS=''
RANLIB='ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='2.4.0'
ac_ct_AR='ar'
ac_ct_CC='clang'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='tar --format=ustar -chf - "$$tardir"'
am__untar='tar -xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin15.3.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin15.3.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin15.3.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin15.3.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/sverre/Packed/CPP/ODB/libodb-2.4.0/config/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfigdir=''
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "libodb"
#define PACKAGE_TARNAME "libodb"
#define PACKAGE_VERSION "2.4.0"
#define PACKAGE_STRING "libodb 2.4.0"
#define PACKAGE_BUGREPORT "odb-users at codesynthesis.com"
#define PACKAGE_URL ""
#define PACKAGE "libodb"
#define VERSION "2.4.0"

configure: exit 1




More information about the odb-users mailing list