Eric Gade
2016-12-09 02:17:38 UTC
Hello,
I've only recently discovered VPRI and FONC. I spent a couple of nights
this week trying to compile the source I obtained from this SVN:
`svn checkout http://piumarta.com/svn2/idst/tags/idst-376 fonc-stable`
My first attempt to run `make` without any custom flags/configuration
resulted in the following error:
/bin/sh -ec 'ln -s ../gc6.7/gc.a .'
cc -Iinclude -DPREFIX='"/usr/local/lib/idc/i386-apple-darwin16.1.0/"' -g
-Wall -Wreturn-type -Werror -fno-common -arch i486 -DNDEBUG
-DSYSARCH=\"i386\" -DSYSOS=\"darwin\" -O3 -march=prescott
-fomit-frame-pointer -falign-functions=16 -funroll-loops -c src/libid.c
-o libid.o
clang: error: optimization flag '-falign-functions=16' is not supported
make[2]: *** [libid.o] Error 1
make[1]: [boot] Error 2 (ignored)
/bin/sh -ec '[ -d stage1 ] || mkdir stage1'
/bin/sh -ec 'for dir in id st80 idc; do ( echo $dir; cd $dir;
/Applications/Xcode.app/Contents/Developer/usr/bin/make IDC="../boot/idc
-B../boot/ -O" BIN="../stage1/" ); done'
id
make[2]: Nothing to be done for `all'.
st80
../boot/idc -B../boot/ -O -k -c _object.st -o ../stage1/_object.o
../boot/idc: line 242: ../boot/idc1: No such file or directory
make[2]: *** [../stage1/_object.o] Error 127
make[1]: *** [stage1] Error 2
make: *** [all] Error 2
So I cleaned and then ran `make config` and forced the flags to not include
`-falign-functions=16`, cleaned, like so:
`make config CC="g++" O3FLAGS="-O3 -march=prescott -fomit-frame-pointer
-funroll-loops" PGFLAGS="-O3 -march=prescott -funroll-loops"`
Followed by `make`, which threw tons of errors like this:
src/libid.c:894:3: error: array index -1 is before the beginning of the
array [-Werror,-Warray-bounds]
_vtable_vtable->_vtable[-1]= _vtable_vtable;
^ ~~
src/libid.c:154:5: note: array '_vtable' declared here
oop _vtable[0];
^
src/libid.c:897:3: error: array index -1 is before the beginning of the
array [-Werror,-Warray-bounds]
_vtable_vtable->vtable.bindings->_vtable[-1]= _vector_vtable;
^ ~~
src/libid.c:154:5: note: array '_vtable' declared here
oop _vtable[0];
^
src/libid.c:898:3: error: array index -1 is before the beginning of the
array [-Werror,-Warray-bounds]
_vector_vtable->vtable.bindings->_vtable[-1]= _vector_vtable;
^ ~~
src/libid.c:154:5: note: array '_vtable' declared here
oop _vtable[0];
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
I'll admit that my experience with C is rudimentary, which might mean I
should even try to be playing with this stuff. But oh boy, do I want to
play wth it.
If this is not the latest version of the code, or if these projects are now
being supported elsewhere, please let me know where to look. Thanks!
I've only recently discovered VPRI and FONC. I spent a couple of nights
this week trying to compile the source I obtained from this SVN:
`svn checkout http://piumarta.com/svn2/idst/tags/idst-376 fonc-stable`
My first attempt to run `make` without any custom flags/configuration
resulted in the following error:
/bin/sh -ec 'ln -s ../gc6.7/gc.a .'
cc -Iinclude -DPREFIX='"/usr/local/lib/idc/i386-apple-darwin16.1.0/"' -g
-Wall -Wreturn-type -Werror -fno-common -arch i486 -DNDEBUG
-DSYSARCH=\"i386\" -DSYSOS=\"darwin\" -O3 -march=prescott
-fomit-frame-pointer -falign-functions=16 -funroll-loops -c src/libid.c
-o libid.o
clang: error: optimization flag '-falign-functions=16' is not supported
make[2]: *** [libid.o] Error 1
make[1]: [boot] Error 2 (ignored)
/bin/sh -ec '[ -d stage1 ] || mkdir stage1'
/bin/sh -ec 'for dir in id st80 idc; do ( echo $dir; cd $dir;
/Applications/Xcode.app/Contents/Developer/usr/bin/make IDC="../boot/idc
-B../boot/ -O" BIN="../stage1/" ); done'
id
make[2]: Nothing to be done for `all'.
st80
../boot/idc -B../boot/ -O -k -c _object.st -o ../stage1/_object.o
../boot/idc: line 242: ../boot/idc1: No such file or directory
make[2]: *** [../stage1/_object.o] Error 127
make[1]: *** [stage1] Error 2
make: *** [all] Error 2
So I cleaned and then ran `make config` and forced the flags to not include
`-falign-functions=16`, cleaned, like so:
`make config CC="g++" O3FLAGS="-O3 -march=prescott -fomit-frame-pointer
-funroll-loops" PGFLAGS="-O3 -march=prescott -funroll-loops"`
Followed by `make`, which threw tons of errors like this:
src/libid.c:894:3: error: array index -1 is before the beginning of the
array [-Werror,-Warray-bounds]
_vtable_vtable->_vtable[-1]= _vtable_vtable;
^ ~~
src/libid.c:154:5: note: array '_vtable' declared here
oop _vtable[0];
^
src/libid.c:897:3: error: array index -1 is before the beginning of the
array [-Werror,-Warray-bounds]
_vtable_vtable->vtable.bindings->_vtable[-1]= _vector_vtable;
^ ~~
src/libid.c:154:5: note: array '_vtable' declared here
oop _vtable[0];
^
src/libid.c:898:3: error: array index -1 is before the beginning of the
array [-Werror,-Warray-bounds]
_vector_vtable->vtable.bindings->_vtable[-1]= _vector_vtable;
^ ~~
src/libid.c:154:5: note: array '_vtable' declared here
oop _vtable[0];
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
I'll admit that my experience with C is rudimentary, which might mean I
should even try to be playing with this stuff. But oh boy, do I want to
play wth it.
If this is not the latest version of the code, or if these projects are now
being supported elsewhere, please let me know where to look. Thanks!
--
Eric
Eric