[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: kernel 2.4.x compile failure on Ultra 1



I think a came across this problem as well. Try compiling the kernel with
SMP, i think the atomic_dec_and_lock only gets exported when SMP is being
used. Unfortunately I run accross more problems later on when trying to
compile 2.4.9, hopefully you have more luck.

Good luck,
Ben

> -----Original Message-----
> From: Noah L. Meyerhans [mailto:frodo@morgul.net]
> Sent: woensdag 12 september 2001 00:59
> To: debian-sparc@lists.debian.org
> Subject: kernel 2.4.x compile failure on Ultra 1
>
>
> Hi folks.  I'm having a problem compiling Linux 2.4.8 and .9 on my
> Ultra1 running sid.  I've tried the debianized kernel-source packages,
> as well as the source from kernel.org, with the same results.
>
> The compiler error, which occurs pretty late in the build process, is
> this:
>
> sparc64-linux-gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.9/include
> -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -m64 -pipe -mno-fpu -mcpu=ultrasparc
> -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7
> -Wno-sign-compare -Wa,--undeclared-regs    -DEXPORT_SYMTAB -c
> sparc64_ksyms.csparc64_ksyms.c:166: `atomic_dec_and_lock' undeclared
> here (not in a function)
> sparc64_ksyms.c:166: initializer element is not constant
> sparc64_ksyms.c:166: (near initialization for
> `__ksymtab_atomic_dec_and_lock.value')
> make[2]: *** [sparc64_ksyms.o] Error 1
> make[2]: Leaving directory
> `/usr/src/kernel-source-2.4.9/arch/sparc64/kernel'
> make[1]: *** [_dir_arch/sparc64/kernel] Error 2
> make[1]: Leaving directory `/usr/src/kernel-source-2.4.9'
> make: *** [stamp-build] Error 2
>
> sparc64-linux-gcc --version gives:
> 3.0.2.
>
> Am I using the wrong compiler?  This doesn't seem like a compiler
> incompatibility, but maybe...
>
> Thanks in advance.
> noah
>
> --
>  _______________________________________________________
> | Web: http://web.morgul.net/~frodo/
> | PGP Public Key: http://web.morgul.net/~frodo/mail.html
>




***************************DISCLAIMER***********************************
Deze e-mail is uitsluitend bestemd voor de geadresseerde(n). 
Verstrekking aan en gebruik door anderen is niet toegestaan.
KPN N.V. sluit iedere aansprakelijkheid uit die voortvloeit uit
elektronische verzending.

This e-mail is intended exclusively for the addressee(s), and may
not be passed on to, or made available for use by any person 
other than the addressee(s).
KPN N.V. rules out any and every liability resulting from any
electronic transmission.
************************************************************************



Reply to: