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

Re: problems compiling kernel 2.4.21 on unstable



On Sat, Aug 23, 2003 at 10:23:17PM +0200, Paul R wrote:
> Hi
> I have a problem with compiling kernel on my Sun Blade 100 with 
> Debian unstable...I'm getting this
> 
> init/main.o(.text+0x8): In function `check_bugs':
> : undefined reference to `_mcount'
> init/main.o(.text+0x28): In function `rest_init':
> : undefined reference to `_mcount'
> init/main.o(.text+0x68): In function `init':
> : undefined reference to `_mcount'
> init/main.o(.text.init+0x10): In function `profile_setup':
> : undefined reference to `_mcount'
> init/main.o(.text.init+0x6c): In function `checksetup':
> : undefined reference to `_mcount'
> init/main.o(.text.init+0x10c): more undefined references to 
> `_mcount' follow
> make[1]: *** [vmlinux] B??d 1
> make[1]: Leaving directory `/usr/src/linux-2.4.21'
> make: *** [stamp-build] error 2
> 
> after gcc -v I have
> Reading specs from /usr/lib/gcc-lib/sparc-linux/3.3.2/specs
> Configured with: ../src/configure -v --enable-
> languages=c,c++,java,f77,pascal,objc,ada,treelang --
> prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --
> with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --
> with-system-zlib --enable-nls --without-included-gettext --
> enable-__cxa_atexit --enable-clocale=gnu --enable-debug --
> enable-java-gc=boehm --enable-java-awt=xlib --with-cpu=v7 --
> enable-objc-gc sparc-linux
> Thread model: posix
> gcc version 3.3.2 20030812 (Debian prerelease)
> 
> I hope someone can solve my problem
> 
> Regards,
> Pawel Rostkowski
>
This is not related to debian-sparc or debian, the Linux kernel version 
2.4 as you can read in the Documentation in source tree is tested with
gcc version 2.95.

gcc 3.3 is not the best compiler for this kernel, because few warnings
of gcc 2.95, 3.0, 3.1 and 3.2 now are consedered as errors in this
version.

Try to apt-get install gcc version 2.95 and recompile the kernel with
this compiler.

Regards

 

-- 

Franco (nextime) Lanza - i-m-c.it
Network Admin
tel: +39 339 8125940
tel: +39 347 3243736
Milano - Italy

you can download my public key at:
http://danex.i-m-c.it/nextime.asc || Key Servers
Key fingerprint = E4EF A5B7 7B93 0499 2832  D375 F437 D880 83D5 E711
-----------------------------------

Attachment: pgpg5mkFl0aqz.pgp
Description: PGP signature


Reply to: