Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compile kernel error with 2.4.25 or 2.4.24-r1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
labrador
Guru
Guru


Joined: 04 Oct 2003
Posts: 316

PostPosted: Sat Mar 06, 2004 4:43 am    Post subject: compile kernel error with 2.4.25 or 2.4.24-r1 Reply with quote

I've emerged sparc sources with:

USE=ultra1 emerge sparc-sources-2.4.25.ebuild

I use the same .config as before with .23, with just some changes to ncpfs
support. I think I also added an option to catch kernel buffer overflow
(maybe that is where this is coming from).

When doing make vmlinux I get this error:

Code:
ld -m elf64_sparc -T arch/sparc64/vmlinux.lds arch/sparc64/kernel/head.o arch/sparc64/k ernel/init_task.o init/main.o init/version.o init/do_mounts.o \
        --start-group \
        arch/sparc64/kernel/kernel.o arch/sparc64/mm/mm.o kernel/kernel.o mm/mm.o fs/fs .o ipc/ipc.o arch/sparc64/math-emu/math-emu.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net. o drivers/char/drm/drm.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/sbus/sbu s_all.o drivers/video/video.o drivers/usb/gadget/built-in.o drivers/media/media.o crypt o/crypto.o \
        net/network.o \
        grsecurity/grsec.o \
        /usr/src/linux-2.4.25-sparc/lib/lib.a /usr/src/linux-2.4.25-sparc/lib/lib.a /us r/src/linux-2.4.25-sparc/arch/sparc64/prom/promlib.a /usr/src/linux-2.4.25-sparc/arch/s parc64/lib/lib.a \
        --end-group \
        -o vmlinux
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 `run_init_process':
: undefined reference to `_mcount'
init/main.o(.text+0xc8): 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): more undefined references to `_mcount' follow
make: *** [vmlinux] Error 1


Anyone have an idea what is wrong?
Back to top
View user's profile Send private message
labrador
Guru
Guru


Joined: 04 Oct 2003
Posts: 316

PostPosted: Wed Mar 10, 2004 7:45 pm    Post subject: It was MCONFIG option in .config Reply with quote

I figured it out on my own. It was a kernel debug option for catching buffer overflow. I guess it doesn't work all by it's lonesome, so I just disabled that option and then the kernel compiled fine.

# MCONFIG=not set

is the way to go...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum