64位CentOS安装32位开发环境编译Nachos
参考http://stackoverflow.com/questions/7412548/gnu-stubs-32-h-no-such-file-or-directory
1.On CentOS 5.8, yum install glibc-devel.i386
On CentOS 6.3, yum install glibc-devel.i686
.
2.On CentOS 5 you will need to do yum install libstdc++-devel.i386
On CentOS 6 you will need to do yum install libstdc++-devel.i686
然后修改Nachos的makefile.common文件
CFLAGS = -g -Wall -Wshadow -m32 $(INCPATH) $(DEFINES) $(HOST) -DCHANGED
CPP= gcc -E -m32
CC = g++ -m32
LD = g++ -m32
AS = as --32
即把编译链接所有的命令都加上强制32位的选项。