Portál AbcLinuxu, 5. května 2025 21:43
#define SERIAL_CONSOLE_DEFAULT 1
#define SERIAL_BAUD_RATE 115200
Takže výsledkdem bude memtest86+ s výstupem na sériový port s 115200 baud rate.
zjistil jsem, že memtest nejde zkompilovat ve vyšší verzi gcc než je 4.1.3.
Pod windows jsem tedy zkusil cygwin, ale bohužel má vyšší verzi a starší se mi do něj nepodařilo dostat. Zkusil jsem to tedy pod Mac OS X Lion, ale opět problém s vyšší verzí a popravdě, tam jsem to nechtěl přehrávat, abych si nerozhodil co tam mám. Takže jsem začal zkoušt různé verze liveCD linuxů s nadějí, že by se mi to podařilo buildnout. Ale bez úspěchu. verze, které umí liveCD mají zpravidla vyšší verzi gcc a nepodařilo se mi to přehrát nižší verzí. Verze linuxu, které měli gcc 4.1 a nižší jsem nerozjel kvůli nekompatibilitě s mým notebookem.
Takže jsem asi už skončil ve slepé uličce a nevím jak to teď udělat. Takže moje otázka je jednoduchá - jak to děláte vy, pokud aplikace potřebuje jinou (nižší) verzi gcc? Jaký systém/distribuci používáte? Jaké mám provést kroky, abych mohl memtest86+ V5.01 úspěšně buildnout přes příkaz make. Nenašel by se někdo, kdo by to zkompiloval za mě a poslal mi hotovou verzi?
Díky za pomoc.
Michal
rm -f *.o *.s *.iso memtest.bin memtest memtest_shared \ memtest_shared.bin memtest.iso gcc -E -traditional head.S -o head.s as -32 -o head.o head.s gcc -c -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -fno-strict-aliasing reloc.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o main.o main.c gcc -c -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding test.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o init.o init.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o lib.o lib.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o patn.o patn.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o screen_buffer.o screen_buffer.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o config.o config.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o cpuid.o cpuid.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o linuxbios.o linuxbios.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o pci.o pci.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o memsize.o memsize.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o spd.o spd.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o error.o error.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o dmi.o dmi.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o controller.o controller.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o smp.o smp.c gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o vmem.o vmem.c gcc -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin -ffreestanding random.c ld --warn-constructors --warn-common -static -T memtest_shared.lds \ -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o cpuid.o linuxbios.o pci.o memsize.o spd.o error.o dmi.o controller.o smp.o vmem.o random.o && \ ld -shared -Bsymbolic -T memtest_shared.lds -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o cpuid.o linuxbios.o pci.o memsize.o spd.o error.o dmi.o controller.o smp.o vmem.o random.o objcopy -O binary memtest_shared memtest_shared.bin gcc -E -traditional bootsect.S -o bootsect.s as -32 -o bootsect.o bootsect.s gcc -E -traditional setup.S -o setup.s as -32 -o setup.o setup.s ld -T memtest.bin.lds bootsect.o setup.o -b binary \ memtest_shared.bin -o memtest.bin ld -s -T memtest.lds -b binary memtest_shared.bin -o memtestTakže by to chtělo napsat konkrétní chybu.
sudo apt-get install libc6-dev-i386
v gentoo 64bit mi to gcc-4.9.3 kompiluje hned bez niceho :)
zajimvay je konec Makefile: scp memtest.bin root@192.168.0.12:/srv/tftp/mt86plus
hehe
kdyz ti to nepujde, tak ti to nekam poslu no; ale za odmenu napis odpoved na memtest forum, jak se to ma kompilovat :)
$ make rm -f *.o *.s *.iso memtest.bin memtest memtest_shared \ memtest_shared.bin memtest.iso as -32 -o head.o head.s gcc -c -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -fno-strict-aliasing reloc.c reloc.c:1:0: warning: -fPIC ignored for target (all code is position independent) /* reloc.c - MemTest-86 Version 3.3 ^ gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -c -o main.o main.c main.c:1:0: warning: -fPIC ignored for target (all code is position independent) /* ^ gcc -c -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding test.c test.c:17:20: fatal error: sys/io.h: No such file or directory #include < sys/io.h> ^ compilation terminated. Makefile:57: recipe for target 'test.o' failed make: *** [test.o] Error 1
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.