Other GCC-3.5 compilation errors
Hi.
I've got a SparcStation20 running Debian, and I'm in the process of upgrading it to run using Debian's 'unstable' branch, and I'd also like to get it running the 2.6 kernel. I've just sent a couple of patches to the list fixing two small problems in regards to using the GCC-3.5 compiler and the current BK kernel, and there are at least three more files needing fixing:
arch/sparc/kernel/signal.c: line 1133: Invalid lvalue in assignment arch/sparc/kernel/sun4m_smp.c: line 99: Too few arguments in init_idle() arch/sparc/kernel/sun4d_smp.c: line 103: Too few arguments in init_idle()
The signal.c error looks like something in the get_user() macro needs tweaking. I haven't looked too much at the init_idle() problem, though I guess just stuffing in some arguments would help, and even better solution would be using correct and valid arguments as well. :-) There could also be a kernel configuration problem that has tripped me up here as well, as these results are coming from my first kernel build on Sparc.
A bit of searching on Debian's mailing list suggests that the SMP stuff doesn't yet work, and my own experience shows that GCC-3.5 compilation needs some help. I'm guessing that people are sticking with GCC-3.3 for kernel compilation, or is the common suggestion using an older compiler like gcc-2.95? Any other tips, tricks, or suggestions regarding compilers that people care to pass along?
Thanks in advance.
Art Haas
Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822
Quoted 7 lines · Art Haas
arch/sparc/kernel/sun4m_smp.c: line 99: Too few arguments ininit_idle()arch/sparc/kernel/sun4d_smp.c: line 103: Too few arguments ininit_idle()The
signal.cerror looks like something in theget_user()macro needs tweaking. I haven't looked too much at theinit_idle()problem, though I guess just stuffing in some arguments would help, and even better solution would be using correct and valid arguments as well. :-)
SMP doesn't build, period. I've been applying patches over the last few weeks, and I have patches currently that make it build and _almost_ boot. These will be applied when it boots to userland.
Quoted 4 lines
needs some help. I'm guessing that people are sticking with GCC-3.3 for kernel compilation, or is the common suggestion using an older compiler like gcc-2.95? Any other tips, tricks, or suggestions regarding compilers that people care to pass along?
I use 3.3.3. 3.2.3 is also known to work well. 3.4 and 3.5 are more or less completely untested.
For those using 3.4+, does it get init_thread_union right? 3.3 does not, so I'm probably going to change it to __attribute__(aligned(THREAD_SIZE)) __attribute__(section(".text")).
Signature · 1 line
Keith M Wesolowski