Skip to contentSkip to conversation

Unable to compil linux kernel

parisc-linux Bruno Vidal 2 participants 2 messages Oct 10, 2000 – Oct 11, 2000

lore
Share & tools
lore
#0 lore raw

Hi
I succeded to recompile all tools needed for compiling linux kernel. (the problem was only that I was using the wrong target type).
But I've have a strange problem while compiling (I perhaps made a mistake somewhere):
#pwd
/opt/linux_hppa/src/linux/drivers/char

#type gcc
gcc is hashed (/opt/linux_hppa/hppa-linux/bin/gcc)

#file /opt/linux_hppa/hppa-linux/bin/gcc
/opt/linux_hppa/hppa-linux/bin/gcc: PA-RISC1.1 shared executable dynamically linked -not stripped

#gcc --version
2.96

while the "make palo":
#gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o conmakehash conmakehash.c /opt/linux_hppa/lib/gcc-lib/hppa-linux/2.96/../../../../hppa-linux/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
-> that the problem, where this "-lc" comes from ???

#/opt/linux_hppa/lib/gcc-lib/hppa-linux/2.96/../../../../hppa-linux/bin/ld --version GNU ld 2.10.91
Copyright 2000 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty.
Supported emulations:
hppalinux

Thanks

Signature · 3 lines
	Vidal Bruno, (770-4271)
        SSD-HA Team, HP-UX & LINUX Support
	[email protected]
#1 lore raw
Quoted 1 line · Bruno Vidal

-> that the problem, where this "-lc" comes from ???

That's libc.a or libc.so You need to compile and install glibc.

Incidentally, it's often useful to add -v to a failing gcc command line to see exactly how gcc is calling the assembler/linker. For link problems, -Wl,-t also can help.

Signature · 1 line
Linuxcare.  Support for the Revolution.