Opened 11 years ago
Closed 11 years ago
#39210 closed defect (invalid)
sqlite3 @3.7.17_0+universal: configure failure
Reported by: | macports@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ||
Port: | sqlite3 |
Description
I ran
sudo port selfupdate
and
sudo port upgrade outdated
And first got an error with sqlite3
.
➜ ~ sudo port upgrade outdated ---> Computing dependencies for sqlite3 ---> Fetching archive for sqlite3 ---> Attempting to fetch sqlite3-3.7.17_0+universal.darwin_12.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/sqlite3 ---> Attempting to fetch sqlite3-3.7.17_0+universal.darwin_12.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/sqlite3 ---> Attempting to fetch sqlite3-3.7.17_0+universal.darwin_12.i386-x86_64.tbz2 from http://packages.macports.org/sqlite3 ---> Fetching distfiles for sqlite3 ---> Verifying checksum(s) for sqlite3 ---> Extracting sqlite3 ---> Applying patches to sqlite3 ---> Configuring sqlite3 Error: org.macports.configure for port sqlite3 returned: configure failure: command execution failed Please see the log file for port sqlite3 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/main.log Error: Unable to upgrade port: 1
I tried to clean sqlite3
and install it again, with no success.
I'm using XCode 4.6.2
and used sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
to use the latest XCode version.
Attachments (1)
Change History (10)
Changed 11 years ago by macports@…
comment:1 Changed 11 years ago by skymoo (Adam Mercer)
Have you installed the Xcode command line tools?
comment:2 Changed 11 years ago by macports@…
Sorry, forgot to mention. Yes, according to XCode, the command line tools are installed.
comment:3 follow-up: 4 Changed 11 years ago by skymoo (Adam Mercer)
Take a look at the config.log
the log mentions and see what it has to say as to why the compiler can't be used. It'll be in the following directory:
$ cd `port dir sqlite3`/work/sqlite-autoconf-3071700
comment:4 follow-up: 5 Changed 11 years ago by macports@…
Replying to ram@…:
Take a look at the
config.log
the log mentions and see what it has to say as to why the compiler can't be used. It'll be in the following directory:$ cd `port dir sqlite3`/work/sqlite-autoconf-3071700
As far as I can tell there seems to be a problem with clang
. Maybe you can have a look, as I'm not 100% sure, I understand correctly.
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by sqlite configure 3.7.17, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --prefix=/opt/local --disable-dependency-tracking --enable-threadsafe --enable-dynamic-extensions --enable-readline ## --------- ## ## Platform. ## ## --------- ## hostname = localhost uname -m = x86_64 uname -r = 12.3.0 uname -s = Darwin uname -v = Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~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 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 Kernel configured for up to 2 processors. 2 processors are physically available. 2 processors are logically available. Processor type: i486 (Intel 80486) Processors active: 0 1 Primary memory available: 8.00 gigabytes Default processor set: 205 tasks, 1154 threads, 2 processors Load average: 6.03, Mach factor: 0.22 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /opt/local/bin PATH: /opt/local/sbin PATH: /bin PATH: /sbin PATH: /usr/bin PATH: /usr/sbin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2653: checking for a BSD-compatible install configure:2721: result: /usr/bin/install -c configure:2732: checking whether build environment is sane configure:2769: result: yes configure:2831: checking for gawk configure:2861: result: no configure:2831: checking for mawk configure:2861: result: no configure:2831: checking for nawk configure:2861: result: no configure:2831: checking for awk configure:2847: found /usr/bin/awk configure:2858: result: awk configure:2869: checking whether make sets $(MAKE) configure:2891: result: yes configure:3082: checking for style of include used by make configure:3110: result: GNU configure:3183: checking for gcc configure:3210: result: /usr/bin/clang configure:3439: checking for C compiler version configure:3448: /usr/bin/clang --version >&5 Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.3.0 Thread model: posix configure:3459: $? = 0 configure:3448: /usr/bin/clang -v >&5 Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.3.0 Thread model: posix configure:3459: $? = 0 configure:3448: /usr/bin/clang -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:3459: $? = 1 configure:3448: /usr/bin/clang -qversion >&5 clang: error: no input files configure:3459: $? = 1 configure:3479: checking whether the C compiler works configure:3501: /usr/bin/clang -pipe -O2 -arch x86_64 -arch i386 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700 -I/opt/local/include -L/opt/local/lib -arch x86_64 -arch i386 conftest.c >&5 ld: entry point (start) undefined. Usually in crt1.o for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:3505: $? = 1 configure:3543: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "sqlite" | #define PACKAGE_TARNAME "sqlite" | #define PACKAGE_VERSION "3.7.17" | #define PACKAGE_STRING "sqlite 3.7.17" | #define PACKAGE_BUGREPORT "http://www.sqlite.org" | #define PACKAGE_URL "" | #define PACKAGE "sqlite" | #define VERSION "3.7.17" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3548: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700': configure:3550: error: C compiler cannot create executables See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set=set ac_cv_env_CC_value=/usr/bin/clang ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-pipe -O2 -arch x86_64 -arch i386' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700 -I/opt/local/include' ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-pipe -O2 -arch x86_64 -arch i386' ac_cv_env_CXX_set=set ac_cv_env_CXX_value=/usr/bin/clang++ ac_cv_env_F77_set= ac_cv_env_F77_value= ac_cv_env_FFLAGS_set=set ac_cv_env_FFLAGS_value='-pipe -O2' ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-L/opt/local/lib -arch x86_64 -arch i386' 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_prog_AWK=awk ac_cv_prog_ac_ct_CC=/usr/bin/clang ac_cv_prog_make_make_set=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700/missing --run aclocal-1.9' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='#' AMTAR='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700/missing --run tar' AR='' AUTOCONF='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700/missing --run autoconf' AUTOHEADER='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700/missing --run autoheader' AUTOMAKE='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700/missing --run automake-1.9' AWK='awk' BUILD_CFLAGS='' CC='/usr/bin/clang' CCDEPMODE='' CFLAGS='-pipe -O2 -arch x86_64 -arch i386' CPP='' CPPFLAGS='-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700 -I/opt/local/include' CXX='/usr/bin/clang++' CXXCPP='' CXXDEPMODE='' CXXFLAGS='-pipe -O2 -arch x86_64 -arch i386' CYGPATH_W='echo' DEFS='' DEPDIR='.deps' DYNAMIC_EXTENSION_FLAGS='' ECHO='/bin/echo' ECHO_C='\c' ECHO_N='' ECHO_T='' EGREP='' EXEEXT='' F77='' FFLAGS='-pipe -O2' GREP='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' LDFLAGS='-L/opt/local/lib -arch x86_64 -arch i386' LIBOBJS='' LIBS='' LIBTOOL='' LN_S='' LTLIBOBJS='' MAKEINFO='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700/missing --run makeinfo' MKDIR_P='' OBJEXT='' PACKAGE='sqlite' PACKAGE_BUGREPORT='http://www.sqlite.org' PACKAGE_NAME='sqlite' PACKAGE_STRING='sqlite 3.7.17' PACKAGE_TARNAME='sqlite' PACKAGE_URL='' PACKAGE_VERSION='3.7.17' PATH_SEPARATOR=':' RANLIB='' READLINE_LIBS='' SET_MAKE='' SHELL='/bin/sh' STRIP='' THREADSAFE_FLAGS='' VERSION='3.7.17' ac_ct_CC='/usr/bin/clang' ac_ct_CXX='' ac_ct_F77='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='' am__fastdepCXX_TRUE='' am__include='include' am__leading_dot='.' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build='' build_alias='' build_cpu='' build_os='' build_vendor='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='' host_alias='' host_cpu='' host_os='' host_vendor='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='$(install_sh) -d' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/opt/local' 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 "sqlite" #define PACKAGE_TARNAME "sqlite" #define PACKAGE_VERSION "3.7.17" #define PACKAGE_STRING "sqlite 3.7.17" #define PACKAGE_BUGREPORT "http://www.sqlite.org" #define PACKAGE_URL "" #define PACKAGE "sqlite" #define VERSION "3.7.17" configure: exit 77
comment:5 follow-up: 6 Changed 11 years ago by larryv (Lawrence Velázquez)
Owner: | changed from macports-tickets@… to mww@… |
---|---|
Summary: | returned: configure failure: → sqlite3 @3.7.17_0+universal: configure failure |
Configuring works fine for me.
configure:3479: checking whether the C compiler works configure:3501: /usr/bin/clang -pipe -Os -arch x86_64 -arch i386 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -I/opt/local/var/macports/build/_Users_larryv_Projects_MacPorts_trunk_dports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3071700 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 conftest.c >&5 configure:3505: $? = 0 configure:3553: result: yes
Can your /usr/bin/clang
build anything else?
comment:6 Changed 11 years ago by macports@…
Replying to larryv@…:
Can your
/usr/bin/clang
build anything else?
I just tried to build a simple printf
program, and got following error:
➜ ~ clang -v hello.c Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.3.0 Thread model: posix "/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name hello.c -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 136 -v -resource-dir /usr/bin/../lib/clang/4.2 -fmodule-cache-path /var/folders/d9/4nh7h8hd6tj_h0ym30zsdl7w0000gn/T/clang-module-cache -fdebug-compilation-dir /Users/martin -ferror-limit 19 -fmessage-length 272 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.8.0 -fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/d9/4nh7h8hd6tj_h0ym30zsdl7w0000gn/T/hello-CkEC6C.o -x c hello.c clang -cc1 version 4.2 based upon LLVM 3.2svn default target x86_64-apple-darwin12.3.0 #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/bin/../lib/clang/4.2/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. "/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.8.0 -o a.out /var/folders/d9/4nh7h8hd6tj_h0ym30zsdl7w0000gn/T/hello-CkEC6C.o -lSystem /usr/bin/../lib/clang/4.2/lib/darwin/libclang_rt.osx.a ld: entry point (start) undefined. Usually in crt1.o for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Some linker problem?
comment:7 Changed 11 years ago by larryv (Lawrence Velázquez)
Your Command Line Tools look broken. Try downloading them from Apple’s developer site and reinstalling.
comment:8 follow-up: 9 Changed 11 years ago by macports@…
It worked! Thanks. Wondering how my CLT
suddenly got nuked?!
comment:9 Changed 11 years ago by larryv (Lawrence Velázquez)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Replying to macports@…:
It worked! Thanks. Wondering how my
CLT
suddenly got nuked?!
No idea. Computers suck. :(
error log file of sqlite3