* Setup a signal frame.
@ 2000-12-07 15:59 Carsten Langgaard
2001-01-01 5:41 ` Simple problem with second stage MIPS GCC compiler Steven J. Hill
2001-11-24 3:51 ` Philips Nino pre-compiled kernel image available Steven J. Hill
0 siblings, 2 replies; 4+ messages in thread
From: Carsten Langgaard @ 2000-12-07 15:59 UTC (permalink / raw)
To: linux-mips
I have a question regarding the setup_frame function in
arch/mips/kernel/signal.c.
If the setup fails we send a SIGSEGV to the current process, but before
doing that we check if signr == SIGSEGV, and if so install the default
handler.
But isn't we sending a SIGSEGV signal, and therefore always should
install the default handler and not check if the original signal was
SIGSEGV ?
In kernel 2.2.12 we always used do_exit(SIGSEGV) if the setup failed,
why has this changed in the 2.4.0 kernel ?
/Carsten
--
_ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com
|\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527
| \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555
TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556
Denmark http://www.mips.com
^ permalink raw reply [flat|nested] 4+ messages in thread* Simple problem with second stage MIPS GCC compiler...
2000-12-07 15:59 Setup a signal frame Carsten Langgaard
@ 2001-01-01 5:41 ` Steven J. Hill
2001-01-01 14:22 ` Joe deBlaquiere
2001-11-24 3:51 ` Philips Nino pre-compiled kernel image available Steven J. Hill
1 sibling, 1 reply; 4+ messages in thread
From: Steven J. Hill @ 2001-01-01 5:41 UTC (permalink / raw)
To: linux-mips
Well, I almost have a complete toolchain. I succesfully got binutils,
first stage GCC-2.95.2 and GLIBC-2.2 installed just fine. I am having
problems with rebuilding GCC. Below is the configuration and make
directives that I am currently using along with the output. I have
verified that the header files are in /usr/local/mips/mipsel-linux-include.
Any help or thoughts are need and appreciated. Yes, I read the mailing
list archives. TIA.
-Steve
*************************************************************
AR=mipsel-linux-ar RANLIB=mipsel-linux-ranlib ../gcc-2.95.2/configure
--prefix=/usr/local/mips --target=mipsel-linux i686-pc-linux-gnu --enable-shared
--enable-threads --enable-languages=c
make LANGUAGES=c ALL_TARGET_MODULES= CONFIGURE_TARGET_MODULES=
INSTALL_TARGET_MODULES= SUBDIRS="libiberty gcc"
*************************************************************
make[2]: Leaving directory `/data/mips-stuff/build-gcc2/gcc/intl'
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3
_ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf
_fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi
_fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp
_varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit
_ctors _pure; \
do \
echo ${name}; \
/data/mips-stuff/build-gcc2/gcc/xgcc -B/data/mips-stuff/build-gcc2/gcc/
-B/usr/local/mips/mipsel-linux/bin/ -I/usr/local/mips/mipsel-linux/include -O2
-DCROSS_COMPILE -DIN_GCC -g -O2 -I./include -fPIC -g1 -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include -c -DL${name} \
../../gcc-2.95.2/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
mipsel-linux-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
../../gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory
../../gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/data/mips-stuff/build-gcc2/gcc'
make: *** [all-gcc] Error 2
--
Steven J. Hill - Embedded SW Engineer
Public Key: 'finger sjhill@mail.cotw.com'
FPR1: E124 6E1C AF8E 7802 A815
FPR2: 7D72 829C 3386 4C4A E17D
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Simple problem with second stage MIPS GCC compiler...
2001-01-01 5:41 ` Simple problem with second stage MIPS GCC compiler Steven J. Hill
@ 2001-01-01 14:22 ` Joe deBlaquiere
0 siblings, 0 replies; 4+ messages in thread
From: Joe deBlaquiere @ 2001-01-01 14:22 UTC (permalink / raw)
To: Steven J. Hill; +Cc: linux-mips
The problem you have is that gcc doesn't know where the glibc headers
are. You probably need to pass
"--with-includes=/usr/local/mips/mipsel-linux-include" or alternatively
put the headers in {prefix}/sys-include .
There is also another list for cross compiling with gcc
(crossgcc@sources.redhat.com) which might give more informative answers
than the simple one I have...
good luck with it!
Steven J. Hill wrote:
> Well, I almost have a complete toolchain. I succesfully got binutils,
> first stage GCC-2.95.2 and GLIBC-2.2 installed just fine. I am having
> problems with rebuilding GCC. Below is the configuration and make
> directives that I am currently using along with the output. I have
> verified that the header files are in /usr/local/mips/mipsel-linux-include.
> Any help or thoughts are need and appreciated. Yes, I read the mailing
> list archives. TIA.
>
> -Steve
>
> *************************************************************
> AR=mipsel-linux-ar RANLIB=mipsel-linux-ranlib ../gcc-2.95.2/configure
> --prefix=/usr/local/mips --target=mipsel-linux i686-pc-linux-gnu --enable-shared
> --enable-threads --enable-languages=c
>
> make LANGUAGES=c ALL_TARGET_MODULES= CONFIGURE_TARGET_MODULES=
> INSTALL_TARGET_MODULES= SUBDIRS="libiberty gcc"
>
> *************************************************************
> make[2]: Leaving directory `/data/mips-stuff/build-gcc2/gcc/intl'
> rm -f tmplibgcc2.a
> for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3
> _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf
> _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi
> _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp
> _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit
> _ctors _pure; \
> do \
> echo ${name}; \
> /data/mips-stuff/build-gcc2/gcc/xgcc -B/data/mips-stuff/build-gcc2/gcc/
> -B/usr/local/mips/mipsel-linux/bin/ -I/usr/local/mips/mipsel-linux/include -O2
> -DCROSS_COMPILE -DIN_GCC -g -O2 -I./include -fPIC -g1 -DHAVE_GTHR_DEFAULT
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../gcc-2.95.2/gcc
> -I../../gcc-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include -c -DL${name} \
> ../../gcc-2.95.2/gcc/libgcc2.c -o ${name}.o; \
> if [ $? -eq 0 ] ; then true; else exit 1; fi; \
> mipsel-linux-ar rc tmplibgcc2.a ${name}.o; \
> rm -f ${name}.o; \
> done
> _muldi3
> .../../gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory
> .../../gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or directory
> make[1]: *** [libgcc2.a] Error 1
> make[1]: Leaving directory `/data/mips-stuff/build-gcc2/gcc'
> make: *** [all-gcc] Error 2
--
Joe deBlaquiere
Red Hat, Inc.
307 Wynn Drive
Huntsville AL, 35805
voice : (256)-704-9200
fax : (256)-837-3839
^ permalink raw reply [flat|nested] 4+ messages in thread
* Philips Nino pre-compiled kernel image available...
2000-12-07 15:59 Setup a signal frame Carsten Langgaard
2001-01-01 5:41 ` Simple problem with second stage MIPS GCC compiler Steven J. Hill
@ 2001-11-24 3:51 ` Steven J. Hill
1 sibling, 0 replies; 4+ messages in thread
From: Steven J. Hill @ 2001-11-24 3:51 UTC (permalink / raw)
To: linux-mips, debian-mips
Greetings.
I have uploaded a pre-compiled kernel image for the Philips Nino to
my FTP site. It is the most recent kernel from the SGI MIPS kernel
with a 512KB ramdisk image linked into it containing a stand alone
shell. Simply upload to your Nino and use the PocketBSD bootloader
to boot with. It is available at:
ftp://ftp.cotw.com/Nino/kernel/vmlinux.bz2
-Steve
--
Steven J. Hill - Embedded SW Engineer
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-24 4:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-07 15:59 Setup a signal frame Carsten Langgaard
2001-01-01 5:41 ` Simple problem with second stage MIPS GCC compiler Steven J. Hill
2001-01-01 14:22 ` Joe deBlaquiere
2001-11-24 3:51 ` Philips Nino pre-compiled kernel image available Steven J. Hill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox