2016-12-14

I am trying to compile OpenFirmware for an arm board, using my Fedora 23 KDE computer for the purpose.

When following the directions given at: https://www.openfirmware.info/Building_OFW_for_ARM

i could install thinks as the OF project calls for, but when i go to ../arm/mmp2/build and i try to launch Make from that location on Konsole, i get a massive amount of errors. I know i'm trying to build something that looks antique with a modern system, but does exist any manner of enable my computer to compile this and generate a rom file?

This is what i get when trying this job after Make..

[madscientist@localhost arm]$ cd mmp2

[madscientist@localhost mmp2]$ ls

addrs.fth config.fth fw.bth make-sdkit.sh physaddr.fth sdkit.fth timer.fth

apbc.fth ddr_elpida_512m.fth galcore.fth mdma.fth pmua.fth sdkit.sh twsi.fth

boardgpio.fth devices.fth gpio.fth mfpr.fth probemem.fth sdregs.fth twsi-node.fth

boardtwsi.fth dma.fth hash.fth mmp2.bth random.fth showirqs.fth twsi-package.fth

boot.fth draminit.fth hwaddrs.fth mmuon.fth rawboot.fth soc-config.fth uart.fth

build dramrecal.fth initmmu.fth ntim_mmp2_nand_cforth_ddr_elpida_512m.fth rootnode.fth socregs.fth ulpiphy.fth

cforth.bth dsi.fth irq.fth ntim_mmp2_nand_ofw_ddr_elpida_512m.fth rtc.fth sp.bth virtaddr.fth

clocks-complex.fth fast-scroll.patch keypad.fth ntim_mmp2_nand_ofwonly_ddr_elpida_512m.fth sdhcimmp2.fth spimaster.fth wakeups.fth

clockset.fth fuse.fth lcdcfg.fth ntim_mmp2_nand_uboot_ddr_elpida_512m.fth sdkit-arm sspspi.fth watchdog.fth

clocks.fth fusepgm.fth lcd.fth ofw.bth sdkit-arm.tgz thermal.fth

[madscientist@localhost mmp2]$ cd build

[madscientist@localhost build]$ make

make[1]: Entering directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux'

cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/wrapper.c -o wrapper.o

In file included from /usr/include/features.h:389:0,

from /usr/include/stdio.h:27,

from ../../../forth/wrapper/wrapper.c:55:

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

compilation terminated.

Makefile:56: recipe for target 'wrapper.o' failed

make[1]: *** [wrapper.o] Error 1

make[1]: Leaving directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux'

Makefile:25: recipe for target '../../../x86/Linux/forth' failed

make: *** [../../../x86/Linux/forth] Error 2

[madscientist@localhost build]$ make -i

make[1]: Entering directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux'

cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/wrapper.c -o wrapper.o

In file included from /usr/include/features.h:389:0,

from /usr/include/stdio.h:27,

from ../../../forth/wrapper/wrapper.c:55:

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

compilation terminated.

Makefile:56: recipe for target 'wrapper.o' failed

make[1]: [wrapper.o] Error 1 (ignored)

cc -c -O -g -m32 -DTARGET_X86 ../../../forth/wrapper/logger.c -o logger.o

In file included from /usr/include/features.h:389:0,

from /usr/include/stdio.h:27,

from ../../../forth/wrapper/logger.c:16:

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

compilation terminated.

Makefile:56: recipe for target 'logger.o' failed

make[1]: [logger.o] Error 1 (ignored)

cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/adler32.c -o adler32.o

In file included from /usr/include/features.h:389:0,

from /usr/include/sys/types.h:25,

from ../../../forth/wrapper/zip/zconf.h:364,

from ../../../forth/wrapper/zip/zlib.h:34,

from ../../../forth/wrapper/zip/zutil.h:22,

from ../../../forth/wrapper/zip/adler32.c:8:

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

compilation terminated.

Makefile:59: recipe for target 'adler32.o' failed

make[1]: [adler32.o] Error 1 (ignored)

cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/compress.c -o compress.o

In file included from /usr/include/features.h:389:0,

from /usr/include/sys/types.h:25,

from ../../../forth/wrapper/zip/zconf.h:364,

from ../../../forth/wrapper/zip/zlib.h:34,

from ../../../forth/wrapper/zip/compress.c:9:

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

compilation terminated.

Makefile:59: recipe for target 'compress.o' failed

make[1]: [compress.o] Error 1 (ignored)

cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/crc32.c -o crc32.o

In file included from /usr/include/features.h:389:0,

from /usr/include/sys/types.h:25,

from ../../../forth/wrapper/zip/zconf.h:364,

from ../../../forth/wrapper/zip/zlib.h:34,

from ../../../forth/wrapper/zip/zutil.h:22,

from ../../../forth/wrapper/zip/crc32.c:29:

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

compilation terminated.

Makefile:59: recipe for target 'crc32.o' failed

make[1]: [crc32.o] Error 1 (ignored)

cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/deflate.c -o deflate.o

In file included from /usr/include/features.h:389:0,

from /usr/include/sys/types.h:25,

from ../../../forth/wrapper/zip/zconf.h:364,

from ../../../forth/wrapper/zip/zlib.h:34,

from ../../../forth/wrapper/zip/zutil.h:22,

from ../../../forth/wrapper/zip/deflate.h:16,

from ../../../forth/wrapper/zip/deflate.c:52:

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

compilation terminated.

Makefile:59: recipe for target 'deflate.o' failed

make[1]: [deflate.o] Error 1 (ignored)

cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/trees.c -o trees.o

In file included from /usr/include/features.h:389:0,

from /usr/include/sys/types.h:25,

from ../../../forth/wrapper/zip/zconf.h:364,

from ../../../forth/wrapper/zip/zlib.h:34,

from ../../../forth/wrapper/zip/zutil.h:22,

from ../../../forth/wrapper/zip/deflate.h:16,

from ../../../forth/wrapper/zip/trees.c:37:

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

compilation terminated.

Makefile:59: recipe for target 'trees.o' failed

make[1]: [trees.o] Error 1 (ignored)

cc -c -O -g -m32 -DTARGET_X86 -I../../../forth/wrapper/zip ../../../forth/wrapper/zip/zutil.c -o zutil.o

In file included from /usr/include/features.h:389:0,

from /usr/include/sys/types.h:25,

from ../../../forth/wrapper/zip/zconf.h:364,

from ../../../forth/wrapper/zip/zlib.h:34,

from ../../../forth/wrapper/zip/zutil.h:22,

from ../../../forth/wrapper/zip/zutil.c:8:

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory

compilation terminated.

Makefile:59: recipe for target 'zutil.o' failed

make[1]: [zutil.o] Error 1 (ignored)

cc -m32 -o forth wrapper.o logger.o adler32.o compress.o crc32.o deflate.o inflate.o trees.o zutil.o

cc: error: wrapper.o: No such file or directory

cc: error: logger.o: No such file or directory

cc: error: adler32.o: No such file or directory

cc: error: compress.o: No such file or directory

cc: error: crc32.o: No such file or directory

cc: error: deflate.o: No such file or directory

cc: error: trees.o: No such file or directory

cc: error: zutil.o: No such file or directory

Makefile:43: recipe for target 'forth' failed

make[1]: [forth] Error 1 (ignored)

make[1]: Leaving directory '/home/madscientist/Desktop/openfirmware/cpu/x86/Linux'

./build ofw.rom

./build: line 85: /home/madscientist/Desktop/openfirmware/cpu/x86/Linux/forth: No such file or directory

Makefile:22: recipe for target 'ofw.rom' failed

make: [ofw.rom] Error 127 (ignored)

sed: can't read ../../build/*.tag: No such file or directory

sed: can't read *.tag: No such file or directory

[madscientist@localhost build]$ https://www.openfirmware.info/Building_OFW_for_ARM

Show more