Sorry for the late intervention. The error is from a missing math library (-lm in the link command) which contains the sin() function.
I will set up a 64-bit Ubuntu VirtualBox and fix whatever is broken. If I haven't done this by midweek then please do feel free to remind me.
It will all have to run in 32 bits, though, since there is no 64-bit code generator for idst/jolt. It should be possible to do this within a 64-bit environment.
FWIW, I believe all Intel (and AMD) descendants of 8086 implement I/D cache coherency in hardware and so iflush() is a no-op. But the symlink is not quite the right approach anyway. We'll do better by persuading the code that it is being compiled for x86.
Post by Simon Forman
Post by John Carlson
Or just copy the i386 file to name it's expecting.
I tried a symlink but that didn't get any further. It asked me to "please implement iflush()" :D
./idc -g -k -I../objects -c CodeGenerator-local.st -o CodeGenerator-local.o
In file included from asm-common.h:33:0,
asm-cache.h:143:3: error: #error : please implement iflush() for your architecture,
I wish I could. :)
/bin/sh -ec 'for dir in object function; do ( cd $dir; make ); done'
make: Entering directory `/home/sforman/idst/object'
/bin/sh -ec '( cd st80; make IDC="../boot/idc -B../boot/ -O" BIN="../stage1/" )'
make: Entering directory `/home/sforman/idst/object/st80'
../boot/idc -B../boot/ -O -k -c _object.st -o ../stage1/_object.o
/home/sforman/idst/object/st80/../boot/st80.so: /home/sforman/idst/object/st80/../boot/st80.so: undefined symbol: sin
import: st80.so: No such file or directory
make: *** [../stage1/_object.o] Error 1
make: Leaving directory `/home/sforman/idst/object/st80'
make: *** [stage1/st80.so] Error 2
make: Leaving directory `/home/sforman/idst/object'
make: *** [all] Error 2
I'm guessing the "undefined symbol: sin" is causing the failure to import st80.so..?
Any advice would be welcome. :)
"The history of mankind for the last four centuries is rather like that of
an imprisoned sleeper, stirring clumsily and uneasily while the prison that
restrains and shelters him catches fire, not waking but incorporating the
crackling and warmth of the fire with ancient and incongruous dreams, than
like that of a man consciously awake to danger and opportunity."
--H. P. Wells, "A Short History of the World"<make-error.text>_______________________________________________
fonc mailing list