Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4088 - memtest86 doesn't compile with gcc-3.1
Summary: memtest86 doesn't compile with gcc-3.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
: 5378 5916 8315 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-24 06:54 UTC by Hanno Böck
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
memtest86-gcc-fix.diff (memtest86-gcc-fix.diff,1.74 KB, text/plain)
2002-09-02 07:41 UTC, Hanno Böck
Details
memtest86-3.0.ebuild (memtest86-3.0.ebuild,1.73 KB, text/plain)
2002-09-25 03:06 UTC, Hanno Böck
Details
memtest86-3.0.ebuild (memtest86-3.0.ebuild,983 bytes, text/plain)
2002-10-06 09:55 UTC, Hanno Böck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2002-06-24 06:54:34 UTC
I get these errors:
test.c:12: conflicting types for 'v'
test.h:280: previous declaration of 'v'
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2002-06-27 00:29:19 UTC
okay, i;ll take this one
Comment 2 Andrew Sayman 2002-07-22 01:59:17 UTC
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 .
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2002-08-01 17:46:51 UTC
*** Bug 5378 has been marked as a duplicate of this bug. ***
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2002-08-03 04:46:06 UTC
*** Bug 5916 has been marked as a duplicate of this bug. ***
Comment 5 Hanno Böck gentoo-dev 2002-09-02 07:41:30 UTC
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.
Comment 6 Hanno Böck gentoo-dev 2002-09-02 16:16:05 UTC
The Homepage URL in the ebuild is wrong, should be updated when this one gets fixed.
It is now at
www.memtest86.com
Comment 7 Matthew Kennedy (RETIRED) gentoo-dev 2002-09-24 18:43:05 UTC
*** Bug 8315 has been marked as a duplicate of this bug. ***
Comment 8 Hanno Böck gentoo-dev 2002-09-25 03:05:31 UTC
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)
Comment 9 Hanno Böck gentoo-dev 2002-09-25 03:05:31 UTC
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)
Comment 10 Hanno Böck gentoo-dev 2002-09-25 03:06:14 UTC
Created attachment 4160 [details]
memtest86-3.0.ebuild
Comment 11 Matthew Kennedy (RETIRED) gentoo-dev 2002-09-25 10:00:03 UTC
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
Comment 12 Matthew Kennedy (RETIRED) gentoo-dev 2002-09-25 10:01:56 UTC
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
Comment 13 Hanno Böck gentoo-dev 2002-09-25 15:08:10 UTC
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.
Comment 14 Hanno Böck gentoo-dev 2002-10-06 09:55:14 UTC
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?
Comment 15 Matthew Kennedy (RETIRED) gentoo-dev 2002-10-06 14:51:39 UTC
i commited this ebuild. no word from upstream yet.