Ticket #13028 (closed defect: fixed)

Opened 9 months ago

Last modified 2 months ago

BUG: sqlite3 fails to compile

Reported by: bahamat@digitalelf.net Assigned to: mww@macports.org
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.5.0
Keywords: sqlite3 Cc:

Description

Output follows:

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/work/sqlite-3.5.1" && gnumake all " returned error 2
Command output: sed -e s/--VERS--/3.5.1/ ./src/sqlite.h.in | \
	sed -e s/--VERSION-NUMBER--/3005001/ >sqlite3.h
gcc -O2 -o lemon ./tool/lemon.c
cp ./tool/lempar.c .
cp ./src/parse.y .
./lemon  parse.y
mv parse.h parse.h.temp
f ./addopcodes.awk parse.h.temp >parse.h
/bin/sh: f: command not found
gnumake: [parse.c] Error 127 (ignored)
cat parse.h ./src/vdbe.c |  -f ./mkopcodeh.awk >opcodes.h
/bin/sh: -f: command not found
cat: stdout: Broken pipe
gnumake: *** [opcodes.h] Error 127

Error: The following dependencies failed to build: apr-util sqlite3 neon
Error: Status 1 encountered during processing.

Change History

2007-10-30 21:08:56 changed by ryandesign@macports.org

  • cc set to bahamat@digitalelf.net, mww@macports.org.
  • owner changed from macports-dev@lists.macosforge.org to mww@macports.org.
  • milestone set to Port Bugs.

2007-11-04 11:41:35 changed by jonasduevesterheden@gmail.com

I had the same problem and did some digging to see what went wrong. It looked like the problem was that the variable NAWK in the Makefile was not being set (it should be set to "gawk", but was empty).

I deleted the build directory to install from scratch and verify this, but when I ran the installation again the problem did not reoccur.

2007-11-05 09:52:41 changed by mww@macports.org

  • status changed from new to closed.
  • resolution set to fixed.

The port now tells ./configure explicitely where awk is.

Please re-open this report if the problem still persists! (no leopard here yet)

2008-03-23 02:27:49 changed by asf@boinkor.net

  • status changed from closed to reopened.
  • resolution deleted.

I started seeing this lately, as did this macports user: <http://www.holygoat.co.uk/blog/entry/2008-03-23-3>. I fixed this by installing the nawk port (didn't know about this bug before), but exporting NAWK=gawk seems to work, too.

I think either adding nawk as a dependency or setting the NAWK env variable for the duration of the bild process work as solutions.

2008-03-25 16:08:32 changed by mww@macports.org

  • status changed from reopened to closed.
  • resolution set to fixed.

We use gawk now -- should be fixed; if problem persists, please provide a _full_ trace port -d build sqlite3 after cleaning sqlite3.

(in reply to: ↑ description ) 2008-06-05 15:59:28 changed by benoit.hudson@gmail.com

  • status changed from closed to reopened.
  • resolution deleted.

On a clean (arrived in the mail today) system (MB Air, system update today, installed xcode off the CD), I downloaded macports 1.6.0 and typed

sudo port selfupdate

Of course, nothing happened, so then I hit:

sudo port install tetex subversion mercurial

and got exactly this bug.

However, after

sudo port clean sqlite3 sudo port -d build sqlite3 > sqlite-bug 2>&1

it now works. I doubt sqlite-bug could possibly be useful to you, but if you want it, just say so.

2008-06-05 21:48:24 changed by jmr@macports.org

  • cc deleted.
  • status changed from reopened to closed.
  • resolution set to fixed.

This is a Leopard Tcl bug as noted in #14938. A workaround is implemented in MacPorts trunk, and with 1.6.0 you can work around it by cleaning and trying the install again.