[MacPorts] #61074: sqlite3 @3.33.0_0+universal: Failed to build sqlite3: command execution failed

MacPorts noreply at macports.org
Sat Aug 29 09:20:33 UTC 2020


#61074: sqlite3 @3.33.0_0+universal: Failed to build sqlite3: command execution
failed
----------------------+-------------------------
  Reporter:  qiet72   |      Owner:  Schamschula
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.3
Resolution:           |   Keywords:
      Port:  sqlite3  |
----------------------+-------------------------

Comment (by qiet72):

 Hi,

 ok, started out with clean 10.7.5 with all updates, no xcode or macports
 installed. I then installed xcode 4.6.3, then command line tools nov 2012,
 then macports 2.6.3.  After that, I did the following at the command line:
 {{{
 localhost:~ user$ xcode-select -print-path
 /Applications/Xcode.app/Contents/Developer
 localhost:~ user$ xcodebuild -version
 Xcode 4.6.3
 Build version 4H1503
 localhost:~ user$ port -v installed
 No ports are installed.
 localhost:~ user$ cat /opt/local/etc/macports/variants.conf|tail -n1
 +universal
 localhost:~ user$ sudo port -N install sqlite3
 --->  Computing dependencies for sqlite3
 --->  Dependencies to be installed: libedit ncurses zlib
 --->  Fetching archive for ncurses
 --->  Attempting to fetch
 ncurses-6.2_0+universal.darwin_11.i386-x86_64.tbz2 from
 http://cph.dk.packages.macports.org/ncurses
 --->  Attempting to fetch
 ncurses-6.2_0+universal.darwin_11.i386-x86_64.tbz2.rmd160 from
 http://cph.dk.packages.macports.org/ncurses
 --->  Installing ncurses @6.2_0+universal
 --->  Activating ncurses @6.2_0+universal
 --->  Cleaning ncurses
 --->  Fetching archive for libedit
 --->  Attempting to fetch
 libedit-20191231-3.1_0+universal.darwin_11.i386-x86_64.tbz2 from
 http://cph.dk.packages.macports.org/libedit
 --->  Attempting to fetch
 libedit-20191231-3.1_0+universal.darwin_11.i386-x86_64.tbz2.rmd160 from
 http://cph.dk.packages.macports.org/libedit
 --->  Installing libedit @20191231-3.1_0+universal
 --->  Activating libedit @20191231-3.1_0+universal
 --->  Cleaning libedit
 --->  Fetching archive for zlib
 --->  Attempting to fetch
 zlib-1.2.11_0+universal.darwin_11.i386-x86_64.tbz2 from
 http://cph.dk.packages.macports.org/zlib
 --->  Attempting to fetch
 zlib-1.2.11_0+universal.darwin_11.i386-x86_64.tbz2.rmd160 from
 http://cph.dk.packages.macports.org/zlib
 --->  Installing zlib @1.2.11_0+universal
 --->  Activating zlib @1.2.11_0+universal
 --->  Cleaning zlib
 --->  Fetching archive for sqlite3
 --->  Attempting to fetch
 sqlite3-3.33.0_0+universal.darwin_11.i386-x86_64.tbz2 from
 http://cph.dk.packages.macports.org/sqlite3
 --->  Attempting to fetch
 sqlite3-3.33.0_0+universal.darwin_11.i386-x86_64.tbz2 from
 https://packages.macports.org/sqlite3
 --->  Attempting to fetch
 sqlite3-3.33.0_0+universal.darwin_11.i386-x86_64.tbz2 from
 http://nue.de.packages.macports.org/sqlite3
 --->  Fetching distfiles for sqlite3
 --->  Attempting to fetch sqlite-autoconf-3330000.tar.gz from
 http://cph.dk.distfiles.macports.org/sqlite3
 --->  Verifying checksums for sqlite3
 --->  Extracting sqlite3
 --->  Configuring sqlite3
 --->  Building sqlite3
 Error: Failed to build sqlite3: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_sqlite3/sqlite3/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port sqlite3 failed
 localhost:~ user$ port -v installed
 The following ports are currently installed:
   libedit @20191231-3.1_0+universal (active) platform='darwin 11'
 archs='i386 x86_64' date='2020-08-29T11:11:25+0200'
   ncurses @6.2_0+universal (active) platform='darwin 11' archs='i386
 x86_64' date='2020-08-29T11:11:20+0200'
   zlib @1.2.11_0+universal (active) platform='darwin 11' archs='i386
 x86_64' date='2020-08-29T11:11:26+0200'
 localhost:~ user$ sw_vers
 ProductName:    Mac OS X
 ProductVersion: 10.7.5
 BuildVersion:   11G63
 localhost:~ user$
 }}}
 Here is the relevant section of main.log:
 {{{
 :info:build /bin/sh ./libtool  --tag=CC   --mode=link /usr/bin/clang
 -D_REENTRANT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS4
 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_RTREE
 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_HAVE_ZLIB
 -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_DBPAGE_VTAB
 -DSQLITE_ENABLE_STMTVTAB -DSQLITE_ENABLE_DBSTAT_VTAB  -pipe -Os -arch
 x86_64 -arch i386  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch
 x86_64 -arch i386 -o sqlite3 sqlite3-shell.o sqlite3-sqlite3.o -ledit
 -lz
 :info:build 4 warnings generated.
 :info:build libtool: compile:  /usr/bin/clang -DPACKAGE_NAME=\"sqlite\"
 -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.33.0\"
 "-DPACKAGE_STRING=\"sqlite 3.33.0\""
 -DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE_URL=\"\"
 -DPACKAGE=\"sqlite\" -DVERSION=\"3.33.0\" -DSTDC_HEADERS=1
 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
 -DLT_OBJDIR=\".libs/\" -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1
 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_DECL_STRERROR_R=1
 -DHAVE_STRERROR_R=1 -DHAVE_EDITLINE_READLINE_H=1 -DHAVE_EDITLINE=1
 -DHAVE_ZLIB_H=1 -I. -DSQLITE_DISABLE_INTRINSIC
 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3_PARENTHESIS
 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1
 -DSQLITE_ENABLE_RTREE -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_STAT4
 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SOUNDEX
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_sqlite3/sqlite3/work
 /sqlite-autoconf-3330000 -I/opt/local/include -D_REENTRANT=1
 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5
 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY
 -DSQLITE_HAVE_ZLIB -pipe -Os -arch x86_64 -arch i386 -c sqlite3.c -o
 sqlite3.o >/dev/null 2>&1
 :info:build libtool: link: /usr/bin/clang -D_REENTRANT=1
 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5
 -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY
 -DSQLITE_HAVE_ZLIB -DSQLITE_ENABLE_EXPLAIN_COMMENTS
 -DSQLITE_ENABLE_DBPAGE_VTAB -DSQLITE_ENABLE_STMTVTAB
 -DSQLITE_ENABLE_DBSTAT_VTAB -pipe -Os -arch x86_64 -arch i386
 -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 -o sqlite3
 sqlite3-shell.o sqlite3-sqlite3.o  -L/opt/local/lib
 /opt/local/lib/libedit.dylib -lz
 :info:build Undefined symbols for architecture x86_64:
 :info:build   "___atomic_load_n", referenced from:
 :info:build       _sqlite3_step in sqlite3-sqlite3.o
 :info:build       _sqlite3RunParser in sqlite3-sqlite3.o
 :info:build       _sqlite3WalFindFrame in sqlite3-sqlite3.o
 :info:build       _sqlite3WalCheckpoint in sqlite3-sqlite3.o
 :info:build       _walTryBeginRead in sqlite3-sqlite3.o
 :info:build       _pcache1UnderMemoryPressure in sqlite3-sqlite3.o
 :info:build       _sqlite3VdbeExec in sqlite3-sqlite3.o
 :info:build       ...
 :info:build   "___atomic_store_n", referenced from:
 :info:build       _sqlite3_soft_heap_limit64 in sqlite3-sqlite3.o
 :info:build       _sqlite3Malloc in sqlite3-sqlite3.o
 :info:build       _sqlite3OomFault in sqlite3-sqlite3.o
 :info:build       _sqlite3_step in sqlite3-sqlite3.o
 :info:build       _sqlite3RunParser in sqlite3-sqlite3.o
 :info:build       _sqlite3_interrupt in sqlite3-sqlite3.o
 :info:build       _sqlite3_wal_checkpoint_v2 in sqlite3-sqlite3.o
 :info:build       ...
 :info:build ld: symbol(s) not found for architecture x86_64
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 :info:build gnumake: *** [sqlite3] Error 1
 :info:build gnumake: *** Waiting for unfinished jobs....
 :info:build gnumake: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_sqlite3/sqlite3/work
 /sqlite-autoconf-3330000'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_sqlite3/sqlite3/work
 /sqlite-autoconf-3330000" && /usr/bin/gnumake -j4 -w all
 :info:build Exit code: 2
 :error:build Failed to build sqlite3: command execution failed
 :debug:build Error code: CHILDSTATUS 2577 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_sqlite3/sqlite3/main.log
 for details.
 }}}

 MacPorts does not consider any other dependencies besides ncurses,
 libedit, and zlib.  Apparently the sqlite3 build uses the default
 compilers from Xcode.

-- 
Ticket URL: <https://trac.macports.org/ticket/61074#comment:34>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list