AFAIK, TS-Linux/Debian for the TS7xxx uses glibc 2.3.2, so compiling a
dynamic linked app with 2.4.3 and trying to run it on a machine using
2.3.2 _should_ blow up and not run :)
Check your crosscompiller, there are two versions on TS's site, and
make sure you get the one with the same version of glib as what you
have. To check glibc run 'ls /lib/libc*' you should find a file called
libc-<version>.so
Jason
Seano wrote:
A bit of followup, not sure if it helps:
I have another hello world program that does run.
When I run 'file', I get the following:
'object.o: ELF 32-bit LSB relocatable, ARM, version 1, for GNU/Linux
2.4.3, dynamically linked (uses shared libs), not stripped'
So it looks like the differences are:
1. 'for GNU/Linux 2.4.3'
2. 'dynamically linked (uses shared libs)
I'm going to try and find out how to build the other file so it has the
same 'file' output.
If I have an success (I haven't had much success at all getting this
platform to do anything but 'hello world') I will post more.
On 5/16/07,
Seano <>
wrote:
I
am having a similar problem. Well, the same problem. I was trying to
use the gps_pps code from the files section of the site and get that
error. However, I can see when I run 'make' that it is calling out to
the proper cross compiler.
Further, I tried the 'file' command you just mentioned and I get the
following output:
'object.o: ELF 32-bit LSB relocatable, ARM, version 1, not stripped'
So mine is for the ARM, but there must be something different about it.
On 5/16/07, Yan Seiner <> wrote:
--- In ts-7000%40yahoogroups.com,
"hein_piet" m("...","hein_piet");"><> wrote:
>
> I've troubles running applications on my TS-7400 board*. When I
> compile example code (hello world) on my Debian etch machine (gcc
-o
> hello hello.c) I can run it with no troubles. Then I transfer the
file
> via ftp to the TS board and change the permissions (chmod +x
./hello).
> But when I try to execute it, the TS board returns an error:
>
> ./hello: 1: Syntax error: "(" unexpected
>
> What can I do to solve this problem?
> Is it possible to install gcc under TS-Linux? (if so, how? apt-get
is
> not part of the busybox..)
>
> *BTW: My board has no problem running the pre-compiled applications
> available on the embeddedarm server.
>
Your desktop is an x86 machine - basically an Intel
Pentium compatible.
The TS7xx0 boards are ARM machines - completely different from an
Intel Pentium.
You need to get and install a cross-compiler. Google for crosscompile
and read up on it.
Then download the toolchain from the TS website.
The command 'file' will tell you which architecture a particular
program is built for; 'man file' for more info.
HTH,
--Yan
__._,_.___
SPONSORED LINKS
__,_._,___
|
|