Open GeorginaBenson opened 6 years ago
As a temporary workaround (via @z-gu, paraphrased): "Install 32-bit libgcc: sudo sudo apt-get install gcc-multilib
. It is likely that apt-get may report an error. In which case, the required library is still installed. However, this will make the apt-get package manager unusable due to a known Ubuntu bug. To fix this: Run sudo dpkg --remove libc6-amd64:i386 libc6-dev-amd64:i386
then run sudo apt-get -f install
. Now apt-get should be usable again."
I have a fedora laptop, so I installed gcc glibc-devel according to fedora this is the equivalent. However, now when I run make it says command not found
bison -t -v sf.y make: bison: Command not found make: *** [Makefile:103: sf.tab.c] Error 127
Have now installed bison.
Make now runs bit with a lot of warnings:
bison -t -v sf.y
sf.y:315.9-14: warning: symbol T_MACL redeclared [-Wother]
%token T_MACL
^^^^^^
sf.y: warning: 2 nonterminals useless in grammar [-Wother]
sf.y: warning: 4 rules useless in grammar [-Wother]
sf.y:391.17-21: warning: nonterminal useless in grammar: ruimm [-Wother]
%type
This is a result of the -m32
flag which we currently require.
Ran make in sim and got the following error:
gcc -g -DSF_L_ENDIAN -Wall -g -m32 -O0 -c randgen.c In file included from /usr/include/features.h:447:0, from /usr/include/bits/libc-header-start.h:33, from /usr/include/math.h:27, from randgen.c:38: /usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
include <gnu/stubs-32.h>
compilation terminated. make: *** [Makefile:79: randgen.o] Error 1
Having changed to correct HOST and SUNFLOWERROO