Re: cross compiling of bash for 8xx

3 messages, 3 authors, 2000-05-24 · open the first message on its own page

Re: cross compiling of bash for 8xx

From: Marcus Sundberg <hidden>
Date: 2000-05-20 20:04:56

"RAJESH.B.V" [off-list ref] writes:
Hi All,
I'm a newbie entered into this Linux world and working on mbx860...
i'm able to build the kernel and succeeded in running it.
But when i try to compile the applications like Bash and all i'm getting
some problem with shared libraries.
i'm using the compiler  powerpc-linux-gcc with version 2.95.2 and glibc
with version 1.99
if i compile with static libraries it is fine.
When compiling   Bash-2.03 when i try to configure with the command
" CC=powerpc-linux-gcc ./configure --target=860 " it is giving error when
it is searching to configure for  "getpgrep".
so the configure is exiting..
--target is wrong here.

--build is the environment you are compiling on.
--host is the environment the program(s) will run on.
--target is afaik only applicable for binutils, gcc and gdb, and
specifies the system to generate code for (debug in the case of gdb).
And when i compile the ping application it is compiling well and when i try
to run it on my mbx860 board it is displaying an error that
"shared library libc.s0.6 is not found. failed to open libc.so.6"
but actually that lib file is there in the /lib path.

can any one suggest me the solutions for the above..
Is there any site providing  the minimal root file system Disk Image with
libc-6 to download.
The ping problem sounds like either a broken development environment
and/or a broken runtime environment, hard to tell what the problem
is there. strace and LD_DEBUG=help are your friends.

As for cross compiling bash and other autoconf using applications
I've been using a handy little wrapper script for configure. It's
attached to this mail.

//Marcus

Re: cross compiling of bash for 8xx

From: RAJESH.B.V <hidden>
Date: 2000-05-24 06:54:59

Hi Marcus,

Thank you for providing the script to compile bash.

Now i am able to compile the bash with some changes.
it gave some error while compiling the  malloc to choose from gnu_malloc
or   gcc_malloc
So i turned off both the options and compiled.
But still it is not executing.
After completing all the checkings at the boot time the board is hanging
without giving the prompt.
I have compiled one more shell called "sash" and able to execute it.
At the same time i have compiled the Busybox and it is also executing under
Sash shell.
I found some binaries which are for PPC8xx at  mvista.com site. From that
site also i have downloaded the bash binary and failed to get the shell.
I did not able to understand why some binaries are executing which are
compiled with the same compiler and some are not...
I am using GCC version 2.95.2 and Glibc version 2.
I checked both the binaries which are working and failed with a hex editor .
They were showing the same shared libraries  as    " /lib/ld.so.1"
and using some  #defines in   "libc.so.6."

Will be there any difference between the binaries compiled with cross
compiler and straight compiler. i feel there should not be.

Thanks in regards,
--Rajesh







At 10:04 PM 5/20/00 +0200, you wrote:
"RAJESH.B.V" [off-list ref] writes:
quoted
Hi All,
I'm a newbie entered into this Linux world and working on mbx860...
i'm able to build the kernel and succeeded in running it.
But when i try to compile the applications like Bash and all i'm getting
some problem with shared libraries.
i'm using the compiler  powerpc-linux-gcc with version 2.95.2 and glibc
with version 1.99
if i compile with static libraries it is fine.
When compiling   Bash-2.03 when i try to configure with the command
" CC=powerpc-linux-gcc ./configure --target=860 " it is giving error when
it is searching to configure for  "getpgrep".
so the configure is exiting..
--target is wrong here.

--build is the environment you are compiling on.
--host is the environment the program(s) will run on.
--target is afaik only applicable for binutils, gcc and gdb, and
specifies the system to generate code for (debug in the case of gdb).
quoted
And when i compile the ping application it is compiling well and when i try
to run it on my mbx860 board it is displaying an error that
"shared library libc.s0.6 is not found. failed to open libc.so.6"
but actually that lib file is there in the /lib path.

can any one suggest me the solutions for the above..
Is there any site providing  the minimal root file system Disk Image with
libc-6 to download.
The ping problem sounds like either a broken development environment
and/or a broken runtime environment, hard to tell what the problem
is there. strace and LD_DEBUG=help are your friends.

As for cross compiling bash and other autoconf using applications
I've been using a handy little wrapper script for configure. It's
attached to this mail.

//Marcus


Attachment Converted: "C:\rajmail\Eudora\attach\acwppc"
--
-------------------------------+-----------------------------------
       Marcus Sundberg        |       Phone: +46 707 452062
 Embedded Systems Consultant  |      Email: marcus@cendio.se
      Cendio Systems AB       |       http://www.cendio.com
******************************************************************

 B.V. Rajesh

 RENDEZVOUS ON CHIP (I) PVT.LTD.
 VOICE: ph:040-7742606 ( Extn )- 306
 mailto:rajeshbv@trinc.com
 Web Page  :   http://www.trinc.com
 ******************************************************************


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

RE: cross compiling of bash for 8xx

From: Jason Wohlgemuth <hidden>
Date: 2000-05-24 12:58:17

Rajesh,

Did you also download the pre-built 8xx glibc 2.1?  If I were you, I would
try and use all the pre-built binaries and executables from mvista to make
sure everything is working, then attempt to build everything yourself.
Building everything yourself just takes a significant amount of time and has
a couple gotchas.

Good luck,
Jason

-----Original Message-----
From: owner-linuxppc-embedded@lists.linuxppc.org
[mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of
RAJESH.B.V
Sent: Wednesday, May 24, 2000 2:55 AM
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: cross compiling of bash for 8xx



Hi Marcus,

Thank you for providing the script to compile bash.

Now i am able to compile the bash with some changes.
it gave some error while compiling the  malloc to choose from gnu_malloc
or   gcc_malloc
So i turned off both the options and compiled.
But still it is not executing.
After completing all the checkings at the boot time the board is hanging
without giving the prompt.
I have compiled one more shell called "sash" and able to execute it.
At the same time i have compiled the Busybox and it is also executing under
Sash shell.
I found some binaries which are for PPC8xx at  mvista.com site. From that
site also i have downloaded the bash binary and failed to get the shell.
I did not able to understand why some binaries are executing which are
compiled with the same compiler and some are not...
I am using GCC version 2.95.2 and Glibc version 2.
I checked both the binaries which are working and failed with a hex editor .
They were showing the same shared libraries  as    " /lib/ld.so.1"
and using some  #defines in   "libc.so.6."

Will be there any difference between the binaries compiled with cross
compiler and straight compiler. i feel there should not be.

Thanks in regards,
--Rajesh







At 10:04 PM 5/20/00 +0200, you wrote:
"RAJESH.B.V" [off-list ref] writes:
quoted
Hi All,
I'm a newbie entered into this Linux world and working on mbx860...
i'm able to build the kernel and succeeded in running it.
But when i try to compile the applications like Bash and all i'm getting
some problem with shared libraries.
i'm using the compiler  powerpc-linux-gcc with version 2.95.2 and glibc
with version 1.99
if i compile with static libraries it is fine.
When compiling   Bash-2.03 when i try to configure with the command
" CC=powerpc-linux-gcc ./configure --target=860 " it is giving error when
it is searching to configure for  "getpgrep".
so the configure is exiting..
--target is wrong here.

--build is the environment you are compiling on.
--host is the environment the program(s) will run on.
--target is afaik only applicable for binutils, gcc and gdb, and
specifies the system to generate code for (debug in the case of gdb).
quoted
And when i compile the ping application it is compiling well and when i
try
quoted
to run it on my mbx860 board it is displaying an error that
"shared library libc.s0.6 is not found. failed to open libc.so.6"
but actually that lib file is there in the /lib path.

can any one suggest me the solutions for the above..
Is there any site providing  the minimal root file system Disk Image with
libc-6 to download.
The ping problem sounds like either a broken development environment
and/or a broken runtime environment, hard to tell what the problem
is there. strace and LD_DEBUG=help are your friends.

As for cross compiling bash and other autoconf using applications
I've been using a handy little wrapper script for configure. It's
attached to this mail.

//Marcus


Attachment Converted: "C:\rajmail\Eudora\attach\acwppc"
--
-------------------------------+-----------------------------------
       Marcus Sundberg        |       Phone: +46 707 452062
 Embedded Systems Consultant  |      Email: marcus@cendio.se
      Cendio Systems AB       |       http://www.cendio.com
******************************************************************

 B.V. Rajesh

 RENDEZVOUS ON CHIP (I) PVT.LTD.
 VOICE: ph:040-7742606 ( Extn )- 306
 mailto:rajeshbv@trinc.com
 Web Page  :   http://www.trinc.com
 ******************************************************************


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help