* Run the cross-compiled program.
@ 2000-12-20 10:09 kjlin
2000-12-20 10:09 ` kjlin
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: kjlin @ 2000-12-20 10:09 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]
Can anyone point out which step i done wrong in the process of cross-compiling an program with the -static option?
I made the cross-compile toolkit by myself.
All the source code and patches for cross-compile were downloaded from the SGI ftp site.
The version is as following:
cross-binutils = version 2.10.90
cross-gcc = version 2.96 20000707
cross-usable glibc = libc-2.1.90
The cross-compile toolkits building process is ok!
I used the cross-compiler to compile a program with the " -static " option in the host and then ran it on the target.
But i got the error message:
# ./a.out
FATAL: kernel too old
Aborted
Where i be trapped?
My host system is x86 running linux-2.2.14(Redhat 6.2).
My target system is an embedded mips board running linux-2.2.14 and shell is the statically linked ash binary from a lib-2.6.0 filesystem(kernel version unknown).
By the way, i builded the cross-usable glibc-2.1.90 with configure "--enable-kernel=2.2.14".
Thanx,
KJ from kj.lin@viditec-netmedia.com.tw
[-- Attachment #2: Type: text/html, Size: 1593 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Run the cross-compiled program.
2000-12-20 10:09 Run the cross-compiled program kjlin
@ 2000-12-20 10:09 ` kjlin
2000-12-20 22:54 ` Nicu Popovici
2000-12-21 2:39 ` Keith M Wesolowski
2 siblings, 0 replies; 6+ messages in thread
From: kjlin @ 2000-12-20 10:09 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]
Can anyone point out which step i done wrong in the process of cross-compiling an program with the -static option?
I made the cross-compile toolkit by myself.
All the source code and patches for cross-compile were downloaded from the SGI ftp site.
The version is as following:
cross-binutils = version 2.10.90
cross-gcc = version 2.96 20000707
cross-usable glibc = libc-2.1.90
The cross-compile toolkits building process is ok!
I used the cross-compiler to compile a program with the " -static " option in the host and then ran it on the target.
But i got the error message:
# ./a.out
FATAL: kernel too old
Aborted
Where i be trapped?
My host system is x86 running linux-2.2.14(Redhat 6.2).
My target system is an embedded mips board running linux-2.2.14 and shell is the statically linked ash binary from a lib-2.6.0 filesystem(kernel version unknown).
By the way, i builded the cross-usable glibc-2.1.90 with configure "--enable-kernel=2.2.14".
Thanx,
KJ from kj.lin@viditec-netmedia.com.tw
[-- Attachment #2: Type: text/html, Size: 1593 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Run the cross-compiled program.
2000-12-20 10:09 Run the cross-compiled program kjlin
2000-12-20 10:09 ` kjlin
@ 2000-12-20 22:54 ` Nicu Popovici
2000-12-21 2:39 ` Keith M Wesolowski
2 siblings, 0 replies; 6+ messages in thread
From: Nicu Popovici @ 2000-12-20 22:54 UTC (permalink / raw)
To: kjlin, linux-mips
Hello,
I am very interested in getting the latest sources for binutils, gcc and
glibc working in cross toolchain for mips. PLease tell me from where did
you took the gcc that you use . Please give me as muche details as you
can.
Regards,
Nicu
kjlin wrote:
> Can anyone point out which step i done wrong in the process of
> cross-compiling an program with the -static option?
> I made the cross-compile toolkit by myself.
> All the source code and patches for cross-compile were downloaded from
> the SGI ftp site.
> The version is as following:
> cross-binutils = version 2.10.90
> cross-gcc = version 2.96 20000707
> cross-usable glibc = libc-2.1.90
> The cross-compile toolkits building process is ok!
> I used the cross-compiler to compile a program with the " -static "
> option in the host and then ran it on the target.
> But i got the error message:# ./a.outFATAL: kernel too old
> Aborted Where i be trapped?
> My host system is x86 running linux-2.2.14(Redhat 6.2).
> My target system is an embedded mips board running linux-2.2.14 and
> shell is the statically linked ash binary from a lib-2.6.0
> filesystem(kernel version unknown).
> By the way, i builded the cross-usable glibc-2.1.90 with configure
> "--enable-kernel=2.2.14".Thanx,KJ from kj.lin@viditec-netmedia.com.tw
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Run the cross-compiled program.
2000-12-20 10:09 Run the cross-compiled program kjlin
2000-12-20 10:09 ` kjlin
2000-12-20 22:54 ` Nicu Popovici
@ 2000-12-21 2:39 ` Keith M Wesolowski
2000-12-22 6:38 ` kjlin
2 siblings, 1 reply; 6+ messages in thread
From: Keith M Wesolowski @ 2000-12-21 2:39 UTC (permalink / raw)
To: kjlin; +Cc: linux-mips
On Wed, Dec 20, 2000 at 06:09:25PM +0800, kjlin wrote:
> Can anyone point out which step i done wrong in the process of
> cross-compiling an program with the -static option? I made the
> cross-compile toolkit by myself.
Be aware of an unrelated problem: statically linked binaries that
attempt to access functions in the nss libraries will crash.
> FATAL: kernel too old
> My target system is an embedded mips board running linux-2.2.14 and
One possibility is that you do not have the proc filesystem available
when running the program. Certain older libc has issues with
detecting version when /proc was not available.
Another possibility is that you somehow got hold of the glibc that I
built, from the same toolkit. That glibc will not run on kernel <
2.3.99.
I guess I don't quite understand why you would want to use kernel 2.2
with glibc 2.2. For embedded purposes, glibc 2.0 will save you a lot
of space; if you just want the newest stuff unconditionally, use
kernel 2.4. The specific libc you are using is rather dated anyway.
While it worked for most purposes it is hardly bug-free. Consider
using CVS glibc, or the glibc from Florian's Debian build environment.
--
Keith M Wesolowski wesolows@chem.unr.edu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Run the cross-compiled program.
2000-12-21 2:39 ` Keith M Wesolowski
@ 2000-12-22 6:38 ` kjlin
2000-12-22 6:38 ` kjlin
0 siblings, 1 reply; 6+ messages in thread
From: kjlin @ 2000-12-22 6:38 UTC (permalink / raw)
To: Keith M Wesolowski; +Cc: linux-mips
----- Original Message -----
> I guess I don't quite understand why you would want to use kernel 2.2
> with glibc 2.2. For embedded purposes, glibc 2.0 will save you a lot
> of space; if you just want the newest stuff unconditionally, use
> kernel 2.4. The specific libc you are using is rather dated anyway.
> While it worked for most purposes it is hardly bug-free. Consider
> using CVS glibc, or the glibc from Florian's Debian build environment.
>
> --
The original system of my embedded mips board is the kernel 2.2 with the
libc-2.0.4.
But the libc-2.0.4 seems not to support POSIX 1003.1c, which cause my
program to fail.
That's the reasion why i want to upgrade the library.
In fact, i prefer to upgrade to libc-2.0.6, but i am not sure whether it
supports POSIX 1003.1c.
On the other hand, i can not find the cross-usable libc-2.0.6 source and
patches or binary tarball for my cross-compiler.
Any suggestions ?
Thanks,
KJ
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Run the cross-compiled program.
2000-12-22 6:38 ` kjlin
@ 2000-12-22 6:38 ` kjlin
0 siblings, 0 replies; 6+ messages in thread
From: kjlin @ 2000-12-22 6:38 UTC (permalink / raw)
To: Keith M Wesolowski; +Cc: linux-mips
----- Original Message -----
> I guess I don't quite understand why you would want to use kernel 2.2
> with glibc 2.2. For embedded purposes, glibc 2.0 will save you a lot
> of space; if you just want the newest stuff unconditionally, use
> kernel 2.4. The specific libc you are using is rather dated anyway.
> While it worked for most purposes it is hardly bug-free. Consider
> using CVS glibc, or the glibc from Florian's Debian build environment.
>
> --
The original system of my embedded mips board is the kernel 2.2 with the
libc-2.0.4.
But the libc-2.0.4 seems not to support POSIX 1003.1c, which cause my
program to fail.
That's the reasion why i want to upgrade the library.
In fact, i prefer to upgrade to libc-2.0.6, but i am not sure whether it
supports POSIX 1003.1c.
On the other hand, i can not find the cross-usable libc-2.0.6 source and
patches or binary tarball for my cross-compiler.
Any suggestions ?
Thanks,
KJ
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-12-22 7:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-20 10:09 Run the cross-compiled program kjlin
2000-12-20 10:09 ` kjlin
2000-12-20 22:54 ` Nicu Popovici
2000-12-21 2:39 ` Keith M Wesolowski
2000-12-22 6:38 ` kjlin
2000-12-22 6:38 ` kjlin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox