Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23781 - sparc32 2.4.x kernel will not compile with smp, os revision gentoo 1.4-rc3
Summary: sparc32 2.4.x kernel will not compile with smp, os revision gentoo 1.4-rc3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: Sparc Linux
: High blocker
Assignee: Keith M Wesolowski (RETIRED)
URL: http://65.102.165.169/cgi-bin/cgi/cvs...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-30 14:45 UTC by a-wall
Modified: 2003-09-28 19:41 UTC (History)
1 user (show)

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


Attachments
Ignore btfixups in discarded sections (24-btfix-exit.diff,642 bytes, patch)
2003-08-31 22:11 UTC, Keith M Wesolowski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description a-wall 2003-06-30 14:45:05 UTC
configure and compile a 2.4 kernel on an ss20 with dual ross cpus
fails in linking stage.

Reproducible: Always
Steps to Reproduce:
1.compile any 2.4 kernel on a sparc32 system with smp enabled
2.
3.

Actual Results:  
--end-group -o vmlinux.o
objdump -x vmlinux.o | ./btfixupprep > btfix.s
Wrong use of 'smp_processor_id' in '.text.exit' section. It can be only used in
.text, .fixup and .text.init
make[1]: *** [btfix.s] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.21/arch/sparc/boot'
make: *** [_dir_arch/sparc/boot] Error 2

Expected Results:  
a working sparc32 kernel of the 2.4 series preferably 2.4.21



I have tried vanilla gentoo and redh*t sources for 2.4.20-2.4.21


           SMCC SPARCstation 10/20 UP/MP POST version VRV3.45 (09/11/95)


CPU_#0       HyperSPARC ROSS RT620/RT625         0x00040000 Bytes ECache
CPU_#2       HyperSPARC ROSS RT620/RT625         0x00040000 Bytes ECache


SPARCstation 20 MP (2 X RT625), No Keyboard
ROM Rev. 2.25R hyperSPARC, 256 MB memory installed
Comment 1 a-wall 2003-07-02 05:35:45 UTC
assembly issue more referance at http://lxr.linux.no/ident?a=sparc&i=smp_processor_id

Comment 2 Keith M Wesolowski (RETIRED) gentoo-dev 2003-08-31 22:11:53 UTC
Created attachment 16888 [details, diff]
Ignore btfixups in discarded sections

Er, yes, assembly issue...  Well, the situation is indeed much more complex. 
Fortunately you can avoid all that and simply smoke this patch, which will have
a most salubrious effect on your kernel's build process.  If indeed your
kernel's build process returns to its robust and vigorous form, I should be
most appreciative of your response, that I might pass the news of its favorable
well-being to the kernel lists; and so the patch might be included in upcoming
releases and others' kernels' build processes might also enjoy its many
benefits.
Comment 3 Keith M Wesolowski (RETIRED) gentoo-dev 2003-09-28 19:41:12 UTC
Dave Miller has accepted this fix for 2.4.23 and 2.6.