Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #14938 (closed defect: duplicate)

Opened 8 months ago

Last modified 2 months ago

sqlite3 3.5.7 build error: f: command not found

Reported by: rhwood@… Owned by: mww@…
Priority: Normal Milestone: Port Bugs
Component: ports Version:
Keywords: Cc: randy@…, ryandesign@…
Port:

Description (last modified by jmr@…) (diff)

--->  Building sqlite3 with target all
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.7" && gnumake all " returned error 2
Command output: sed -e s/--VERS--/3.5.7/ ./src/sqlite.h.in | \
	sed -e s/--VERSION-NUMBER--/3005007/ >sqlite3.h
/usr/bin/gcc-4.0 -O2 -o mkkeywordhash  ./tool/mkkeywordhash.c
./mkkeywordhash >keywordhash.h
/usr/bin/gcc-4.0 -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: apache2 apr-util sqlite3
Error: Status 1 encountered during processing.

Obilex:~ rhwood$ uname -a
Darwin Obilex.local 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386
Obilex:~ rhwood$ gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)

Change History

Changed 8 months ago by ryandesign@…

  • cc randy@… added
  • summary changed from Sqlite3 build error to sqlite3 3.5.7 build error: f: command not found

Randy Bush reported this problem on macports-users.

Changed 8 months ago by travis.vachon@…

Just ran into this install git +svn with:

sudo port install git +svn

Strangely, after running

sudo port clean --work sqlite3 sudo port install sqlite3

everything seemed to work fine.

Changed 8 months ago by travis.vachon@…

oof, formatting got weirded in comment 2, the second set of commands should be:

sudo port clean --work sqlite3; sudo port install sqlite3

Changed 7 months ago by ryandesign@…

This is biting a lot of people running Leopard, and for whatever reason, simply attempting the install again fixes it.

#14523 may be the same problem.

Changed 7 months ago by lars@…

My "fix" was to simply install the port nawk.

Changed 7 months ago by cyflea@…

Yeah, installing nawk fixes it for me, too. I see this in the portfile:

depends_build port:gawk port:gmake

perhaps that should be changed to port:nawk?

Changed 6 months ago by ryandesign@…

  • cc ryandesign@… added

Are you sure nawk is required? Because sqlite3 install just fine for me without nawk on Mac OS X 10.5.3 with Xcode 3.1 (iPhone SDK beta 6) and MacPorts trunk@37255. It sounds like the Leopard environment variable issue, the fix for which is to clean the port and try again, as travis said in comment 2

sqlite3's dependency on gawk seems erroneous too. It works fine without it. I filed #15478 to remove it.

Changed 5 months ago by jmr@…

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #14523.

Changed 5 months ago by jmr@…

And #14523 was itself a dupe of #13953.

Changed 3 months ago by ryandesign@…

  • keywords ticketformatting added

Changed 2 months ago by jmr@…

  • keywords ticketformatting removed
  • description modified (diff)
Note: See TracTickets for help on using tickets.