I get these errors: test.c:12: conflicting types for 'v' test.h:280: previous declaration of 'v'
okay, i;ll take this one
I have this same problem. Here is the full output from me. I'm using gcc3.1-r6 emerge memtest86 Calculating dependencies \ ...done! >>> emerge sys-apps/memtest86-3.0 to / >>> md5 ;-) memtest86-3.0.tar.gz >>> Unpacking source... >>> Unpacking memtest86-3.0.tar.gz >>> Source unpacked. gcc -E -traditional head.S -o head.s gcc -c -fPIC -Wall -g -O2 -fno-strict-aliasing reloc.c gcc -c -Wall -march=i486 -O -fomit-frame-pointer -fno-builtin -fPIC main.c gcc -c -Wall -march=i486 -O -fomit-frame-pointer -fno-builtin test.c test.c:12: conflicting types for `v' test.h:280: previous declaration of `v' make: *** [test.o] Error 1 make: *** Waiting for unfinished jobs.... as -o head.o head.s gcc -c -Wall -march=i486 -O -fomit-frame-pointer -fno-builtin test.c test.c:12: conflicting types for `v' test.h:280: previous declaration of `v' make: *** [test.o] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 1, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/sys-apps/memtest86/memtest86-3.0.ebuild .
*** Bug 5378 has been marked as a duplicate of this bug. ***
*** Bug 5916 has been marked as a duplicate of this bug. ***
Created attachment 3593 [details] memtest86-gcc-fix.diff This patch seems to fix the issue. Can you please check it, as i am not so familiar with the c-typedef and struct stuff. The problem seems to be that the vars-struct was defined twice.
The Homepage URL in the ebuild is wrong, should be updated when this one gets fixed. It is now at www.memtest86.com
*** Bug 8315 has been marked as a duplicate of this bug. ***
Hello, There still seem to be some errors in the ebuild. I have attached a fixed one, mkennedy, can you please apply it? Following things are fixed: - missing Header-line added - Webpage-URL updated - CCFLAGS-Parameter removed (it doesn't compile with your CFLAGS - just use the one that the Makefile wants) Now it compiles fine on a 1.4/GCC 3.2-System. There still seem to be some issues with the pkg_setup-script, which shows errors on my system (without a seperate boot-partition). It shows the grep-helpscreen and my fstab (is that the right behaviour?): Aufruf: grep [OPTION]... MUSTER [DATEI]... »grep --help« gibt Ihnen mehr Informationen. /dev/hda6 on / type ext3 (rw,noatime) proc on /proc type proc (rw) none on /dev type devfs (rw) tmpfs on /mnt/.init.d type tmpfs (rw,mode=0644,size=1024k) /dev/hda1 on /mnt/win type vfat (rw)
Hello, There still seem to be some errors in the ebuild. I have attached a fixed one, mkennedy, can you please apply it? Following things are fixed: - missing Header-line added - Webpage-URL updated - CCFLAGS-Parameter removed (it doesn't compile with your CFLAGS - just use the one that the Makefile wants) Now it compiles fine on a 1.4/GCC 3.2-System. There still seem to be some issues with the pkg_setup-script, which shows errors on my system (without a seperate boot-partition). It shows the grep-helpscreen and my fstab (is that the right behaviour?): Aufruf: grep [OPTION]... MUSTER [DATEI]... »grep --help« gibt Ihnen mehr Informationen. /dev/hda6 on / type ext3 (rw,noatime) proc on /proc type proc (rw) none on /dev type devfs (rw) tmpfs on /mnt/.init.d type tmpfs (rw,mode=0644,size=1024k) /dev/hda1 on /mnt/win type vfat (rw)
Created attachment 4160 [details] memtest86-3.0.ebuild
okay sorry about that... i was playing with this bug for a few hours yesterday and must have committed a dud. hanno, basically the problem here is memtest86 will compile fine with the included patch, however, when you run it (from boot) one of two things happen: * your box reboots (pheonix reported this) * it clears and paints the screen blue, adds some title text with a red background, and then hard freezes.(I get this). Did it actually run for you? Or just compile ok? Matt
I wrote to chris@memtest86.com (the author) about the problem. Haven't heard back yet. But I think what I'll do is install the included memtest86 binary image (suppplied with the source) rather than compile. At least while we wait to hear back. Any objections to this? Matt
mkennedy, you are right. It compiles, but it doesn't run. I have tried to contact the author several times, but he doesn't answer. I have given up. I think till then only solution is taking the binary.
Created attachment 4450 [details] memtest86-3.0.ebuild This one uses the binary for installation. I think we have to use this as long as we don't have a gcc3-fix. mkennedy, did you get any reply from the memtest-author?
i commited this ebuild. no word from upstream yet.