Couldn't find sparc64-linux-gcc
Hello,
I'm experiencing difficulties that can't compile using kernel-source-2.2.16-3.sparc.rpm on RH6.2sparc.
I have done following procedure.
# rpm -ivh kernel-headers-2.2.16-3.sparc.rpm # rpm -ivh kernel-source-2.2.16-3.sparc.rpm # cd /usr/src/linux # ln -s /usr/src/linux/include/asm-sparc64 /usr/include/asm/asm-sparc64 # make mrproper # make menuconfig # make vmlinux sparc64-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.2.16/include -Wall -Wstrict-prototypes -O2 -fomit-frame-point er -D__SMP__ -pipe -mno-fpu -mtune=ultrasparc -mmedlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-comp are -c -o init/main.o init/main.c /bin/bash: sparc64-linux-gcc: command not found make: *** [init/main.o] Error 127
According to mailinglist,sparc64-linux-gcc exist in /usr/local/bin, but not found.
Does anyone know complete way to compile linux-kernel with kernel-sources rpm ?
___________________________________________________________________
Taku Yamamoto
MailTo: [email protected]
-
To unsubscribe from this list: send the line "unsubscribe ultralinux" in the body of a message to [email protected]
Quoted 4 lines · YAMAMOTO Taku
I'm experiencing difficulties that can't compile using kernel-source-2.2.16-3.sparc.rpm on RH6.2sparc.
/bin/bash: sparc64-linux-gcc: command not found
Very simple ... install the "egcs64" package, which is egcs64-19980921-4.sparc.rpm for RH 6.2 ... this contains the 64-bit compiler necesary for compiling the sparc64 kernel.
-
To unsubscribe from this list: send the line "unsubscribe ultralinux" in the body of a message to [email protected]
Hello Joshua-san,
Quoted 3 lines
Very simple ... install the "egcs64" package, which is egcs64-19980921-4.sparc.rpm for RH 6.2 ... this contains the 64-bit compiler necesary for compiling the sparc64 kernel.
Thank you,this info is very useful for me.
But I have another question.I don't know how to do against following error msg.
-----
[root@xxx linux-2.2.16rh]# rpm -ivh /home/yamamoto/archives/kernel/kernel-headers-2.2.16-3.sparc.rpm
kernel-headers ##################################################
You must create /usr/include/asm/asm-sparc* symlinks first.
-----
Because I couldn't compile apache source after install new compiled kernel.Apache's error msg is follows,
-----/usr/include/bits/ioctl-types.h:25: asm/ioctls.h: No such file or directory
In file included from /usr/include/signal.h:300,
from ../include/ap_config.h:1108,
from ../include/httpd.h:71,
from ap_snprintf.c:61:
/usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No such file or directory
In file included from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from ../include/ap_config.h:1131,
from ../include/httpd.h:71,
from ap_snprintf.c:61:/usr/include/linux/errno.h:4: asm/errno.h: No such file or directory make[3]: *** [ap_snprintf.o] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.12/src' make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.12'
make: *** [build] Error 2
-----
Thanks in advance.
___________________________________________________________________
Taku Yamamoto
MailTo: [email protected]
-
To unsubscribe from this list: send the line "unsubscribe ultralinux" in the body of a message to [email protected]
Quoted 5 lines · YAMAMOTO Taku
[root@xxx linux-2.2.16rh]# rpm -ivh
/home/yamamoto/archives/kernel/kernel-headers-2.2.16-3.sparc.rpmkernel-headers ##################################################
You must create/usr/include/asm/asm-sparc*symlinks first.
Hmm... look at the kernel source rpm's specfile to see why it would give this error.
Quoted 2 lines
/usr/include/bits/ioctl-types.h:25:asm/ioctls.h: No such file or directory
Look in /usr/include/asm and see if it's contents are fishy. It sounds like you may need to do something like go into /usr/include and run:
ln -s /usr/src/linux/include/asm-sparc asm
... or something like that.
Quoted 1 line
/usr/include/bits/sigcontext.h:28:asm/sigcontext.h: No such file or directory
Same problem again...
Quoted 1 line
/usr/include/linux/errno.h:4:asm/errno.h: No such file or directory
... and again ...
See if the problem is obvious and fixable... if you continue to have problems with this, drop me and email and we'll go from there I guess... -
To unsubscribe from this list: send the line "unsubscribe ultralinux" in the body of a message to [email protected]