For changes like this you need to follow proper bootstrap sequence:
)boot $bootStrapMode := true
)compile fspace.spad
)boot $bootStrapMode := false
)compile fspace.spad
When developing similar changes you need to recompile all things
which depend on change and which you want to use, directly or
indirectly.
Full build takes care of bootstrapping and recompiles everything, so
after that things works in expected way.
And yes, if I try to compile 'fspace.spad' using similar command to yours
(I never compile things in source directory which you did), then
I see the same error. And no, recompiling 'fspace.spad' from
current trunk using new FriCAS works fine.
--
Waldek Hebisch