#13028 closed defect (fixed)
BUG: sqlite3 fails to compile
Reported by: | bahamat@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.0 |
Keywords: | sqlite3 | Cc: | |
Port: |
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 (8)
comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | bahamat@… mww@… added |
---|---|
Milestone: | → Port Bugs |
Owner: | changed from macports-dev@… to mww@… |
comment:2 Changed 17 years ago by jdv85 (Jonas Due Vesterheden)
comment:3 Changed 17 years ago by mww@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
The port now tells ./configure explicitely where awk
is.
Please re-open this report if the problem still persists! (no leopard here yet)
comment:4 Changed 17 years ago by asf@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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.
comment:5 Changed 17 years ago by mww@…
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
We use gawk now -- should be fixed; if problem persists, please provide a _full_ trace port -d build sqlite3
after cleaning sqlite3.
comment:6 Changed 16 years ago by benoit.hudson@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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.
comment:7 Changed 16 years ago by jmroot (Joshua Root)
Cc: | bahamat@… mww@… removed |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
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.
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.