gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] Socket code


From: John Chludzinski
Subject: Re: [gforth] Socket code
Date: Tue, 24 May 2016 16:18:51 -0400
User-agent: Roundcube Webmail/1.1.2

Took your advice and cloned the gforth git repository.

Installed glibtool.
Installed libffi-devel.

Ran:
# ./autogen.sh
# ./configure
# make
# make check #see below
# make bench #see below
# make install

 ... and got:

for i in doc/gforth.info* doc/vmgen.info*; do /usr/bin/install -c -m 644 $i /usr/local/share/info; done /usr/bin/install: cannot stat ‘doc/gforth.info*’: No such file or directory /usr/bin/install: cannot stat ‘doc/vmgen.info*’: No such file or directory
Makefile:776: recipe for target 'install-sources' failed
make: [install-sources] Error 1 (ignored)

...

/usr/sbin/install-info --info-dir=/usr/local/share/info /usr/local/share/info/gforth.info install-info: No such file or directory for /usr/local/share/info/gforth.info
Makefile:806: recipe for target 'install-info' failed
make: *** [install-info] Error 1


------------results from: make check and make bench--------------------


address@hidden ~/gforth-mirror# make check
cp -p kernl32l.fi kernl32l.fi~
cp -p kernl32l.fi- kernl32l.fi
make checkone check-nofast ENGINE="./gforth --no-dynamic" >/dev/null 2>&1
make checkone check-nofast ENGINE="./gforth-itc" >/dev/null 2>&1
make checkone check-nofast ENGINE="./gforth-ditc" >/dev/null 2>&1
make checkone ENGINE="./gforth-fast --no-dynamic" >/dev/null 2>&1
make checkone check-nofast ENGINE="./gforth" >/dev/null 2>&1
make checkone ENGINE="./gforth-fast" >/dev/null 2>&1
*** Check successful ***
./gforth-fast --diag -e bye
*** no performance problems ***
address@hidden ~/gforth-mirror# make bench
cp -p kernl32l.fi kernl32l.fi~
cp -p kernl32l.fi- kernl32l.fi
Each benchmark takes about 30s on a 486-66 (gcc-2.6.3 -DFORCE_REG)
time ./gforth-fast --die-on-signal -p ".:/usr/local/lib/gforth/site-forth:/usr/local/share/gforth/site-forth:/usr/local/lib/gforth/0.7.9_20160427:/usr/local/share/gforth/0.7.9_20160427:/usr/share/gforth/site-forth:/usr/local/share/gforth/site-forth:." siev.fs -e "main bye"

real    0m0.648s
user    0m0.641s
sys     0m0.005s
time ./gforth-fast --die-on-signal -p ".:/usr/local/lib/gforth/site-forth:/usr/local/share/gforth/site-forth:/usr/local/lib/gforth/0.7.9_20160427:/usr/local/share/gforth/0.7.9_20160427:/usr/share/gforth/site-forth:/usr/local/share/gforth/site-forth:." bubble.fs -e "main bye"

bubble.fs:12: warning: redefined cell
bubble.fs:21: warning: redefined list
real    0m0.723s
user    0m0.712s
sys     0m0.007s
time ./gforth-fast --die-on-signal -p ".:/usr/local/lib/gforth/site-forth:/usr/local/share/gforth/site-forth:/usr/local/lib/gforth/0.7.9_20160427:/usr/local/share/gforth/0.7.9_20160427:/usr/share/gforth/site-forth:/usr/local/share/gforth/site-forth:." matrix.fs -e "main bye"

real    0m0.444s
user    0m0.430s
sys     0m0.012s
time ./gforth-fast --die-on-signal -p ".:/usr/local/lib/gforth/site-forth:/usr/local/share/gforth/site-forth:/usr/local/lib/gforth/0.7.9_20160427:/usr/local/share/gforth/0.7.9_20160427:/usr/share/gforth/site-forth:/usr/local/share/gforth/site-forth:." fib.fs -e "main bye"

real    0m0.753s
user    0m0.736s
sys     0m0.014s
time ./gforth-fast --die-on-signal -p ".:/usr/local/lib/gforth/site-forth:/usr/local/share/gforth/site-forth:/usr/local/lib/gforth/0.7.9_20160427:/usr/local/share/gforth/0.7.9_20160427:/usr/share/gforth/site-forth:/usr/local/share/gforth/site-forth:." fft-bench.fs -e "main bye"

real    0m0.564s
user    0m0.549s
sys     0m0.013s
























On 2015-12-22 12:19, Anton Ertl wrote:
On Mon, Dec 21, 2015 at 12:24:19PM -0500, John Chludzinski wrote:
As a gforth newbie I went online and downloaded sock.fs and tcpserver.fs
from GitHub. Tried putting the shabang: #! /usr/bin/gforth in the file
and ruuning it. I have an x86-64 box running Fedora 23.

For socket.fs I got:

sh: --silent: command not found

in file included from *OS command line*:-1
socket.fs:47: libtool compile failed

Looks like the word LIBTOOL-COMMAND contains an empty string (you can
confirm this by SEEing this word).  My guess is that Fedora configured
Gforth without libtool being present.

Workaround: Install libtool and install Gforth from the tarball (or,
if you are adventurous, from the git repository).

- anton




reply via email to

[Prev in Thread] Current Thread [Next in Thread]