Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35064 - Error compiling vmlinux on Ultra1 with Creator 3D
Summary: Error compiling vmlinux on Ultra1 with Creator 3D
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High major (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-04 09:15 UTC by Labrador
Modified: 2006-02-04 06:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Labrador 2003-12-04 09:15:49 UTC
Using same .config I had for 2.4.22, I tried to make vmlinux for 2.4.23.

This error occurs:

sparc64-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.4.23-sparc/include -Wall -Wstr
ict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common  -m64 -pipe -
mno-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g
7 -Wno-sign-compare -Wa,--undeclared-regs -pg   -nostdinc -iwithprefix include -
DKBUILD_BASENAME=ffb_drv  -c -o ffb_drv.o ffb_drv.c
In file included from drmP.h:75,
                 from ffb_drv.c:9:
drm_os_linux.h:16: warning: #warning the author of this code needs to read up on
 list_entry
In file included from drm_dma.h:33,
                 from ffb_drv.c:334:
drm_os_linux.h:16: warning: #warning the author of this code needs to read up on
 list_entry
ffb_drv.c:386: redefinition of `ffb_options'
drm_drv.h:138: `ffb_options' previously defined here
{standard input}: Assembler messages:
{standard input}:3559: Error: symbol `ffb_options' is already defined
make[4]: *** [ffb_drv.o] Error 1
make[4]: Leaving directory `/usr/src/linux-2.4.23-sparc/drivers/char/drm'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.23-sparc/drivers/char/drm'
make[2]: *** [_subdir_drm] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.23-sparc/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.23-sparc/drivers'
make: *** [_dir_drivers] Error 2


Reproducible: Always
Steps to Reproduce:
1.make vmlinux
2.
3.

Actual Results:  
Error message is in details

Expected Results:  
give me vmlinux.


I can send in my .config if needed.
Comment 1 Ciaran McCreesh 2003-12-04 09:51:48 UTC
Does it compile if you unset all of the following?

# CONFIG_DRM_NEW is not set
# CONFIG_DRM_FFB is not set
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
Comment 2 Labrador 2003-12-04 12:42:50 UTC
Yes, if the DRM set of options is not included in the kernel,
it will compile fine.  It did work before, so should I
fall back to the .22 code in DRM or will there be a patch?
Comment 3 Ciaran McCreesh 2003-12-04 12:57:00 UTC
I don't know of a fix currently, but I'm going to have a go at one (unless
wesolows beats me to it, of course...). In the mean time, either stick with .22
(really not recommended because of the local root exploit) or go without DRM.
Comment 4 Ciaran McCreesh 2003-12-04 17:13:48 UTC
Looks like davem's already fixed this, but it didn't make it into the tree.
Please try the patch from:

http://marc.theaimsgroup.com/?l=linux-kernel&m=106991880307012&w=2
Comment 5 Jason Wever (RETIRED) gentoo-dev 2003-12-06 11:54:21 UTC
Patch has been added to sparc-sources-2.4.23-r1

Currently, it's marked with the ~sparc keyword, so after you sync, you may need the following command if you aren't using ACCEPT_KEYWORDS in make.conf

ACCEPT_KEYWORDS="~sparc" emerge =sys-kernel/sparc-sources-2.4.23-r1