This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

powerpc eabi installation and compilation


Thanks a lot Andrew and Nick for your help.

As you suggested me, I created a new directory (a "clean" one) and I have no
problem any more. But I didn't succeed in compiling my application which had
no problem under Linux Synthetic Target (i386-elf-gcc)...

I think I forgot a option in my compilation line or maybe I have an error in
my installation but I don't see why.

Just under, you can see what I did with some comments... It's a good way to
summarize my installation and my compilation line.

My problems during compilation are at the end. If you can translate, explain
it to me, it would be great. Thanks

Thanks by advance.



$$$$$$$$$$$$$$$$$$$$$$$$$$$ LET's GO $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$



****************************************************************************
**********************
[FR]
Je commence l'installation vierge ci-dessous.
Le répertoire cible est /opt/ecos.ppc
[ENG]
I start my eCos installation with lines just under.
The target repertory is /opt/ecos.ppc
****************************************************************************
**********************

[root@p00012049 opt]# mkdir ecos.ppc
[root@p00012049 opt]# cd /opt/matthieu/ECOS; sh ecos-install.tcl
/opt/ecos.ppc powerpc-eabi
[root@p00012049 ECOS]# mkdir /root/ecos.ppc; cd /opt/ecos.ppc
[root@p00012049 ecos.ppc]# tar -C /root/ecos.ppc -xf
ecos-2.0b1/tools/bin/platforms.tar
[root@p00012049 ecos.ppc]# export
ECOS_REPOSITORY=/opt/ecos.ppc/ecos-2.0b1/packages
[root@p00012049 ecos.ppc]# export
PATH=.:/opt/ecos.ppc/gnutools/powerpc-eabi/bin:/opt/ecos.ppc/ecos-2.0b1/tool
s/bin:$PATH
[root@p00012049 ecos.ppc]# mkdir configurations
[root@p00012049 ecos.ppc]# cd configurations; mkdir ppc.psim.manu
[root@p00012049 configurations]# cd ppc.psim.manu
[root@p00012049 ppc.psim.manu]# ecosconfig new psim default
[root@p00012049 ppc.psim.manu]# ecosconfig tree

****************************************************************************
**********************
[FR]
Voilà pour l'installation d'eCos;
Aucun probleme n'est apparu.
La suite correspond aux tests que Nick m'a demandé.
Toutefois je n'ai plus de problème depuis que sur les conseils d'Andrew j'ai
tout réinstallé dans un répertoire clean
[ENG]
Done for eCos installation;
No problem.
Next you can see results of tests that Nick asked me.
But there is no problem any more since my new installation in a clean
directory as Andrew suggested me. Thanks
****************************************************************************
**********************

[root@p00012049 ppc.psim.manu]# pwd

/opt/ecos.ppc/configurations/ppc.psim.manu

[root@p00012049 ppc.psim.manu]# echo $ECOS_REPOSITORY

/opt/ecos.ppc/ecos-2.0b1/packages

[root@p00012049 ppc.psim.manu]# echo $PATH           

/opt/ecos.ppc/gnutools/powerpc-eabi/bin:.:/opt/ecos.ppc/ecos-2.0b1/tools/bin
:/usr/local/sbin:/sbin:/usr/sbin:
/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin

[root@p00012049 ppc.psim.manu]# ll

total 428
-rw-r--r--    1 root     root       386965 aoû  4 17:14 ecos.ecc
drwxr-xr-x    3 root     root         4096 aoû  4 17:14 error
drwxr-xr-x    4 root     root         4096 aoû  4 17:14 hal
drwxr-xr-x    3 root     root         4096 aoû  4 17:14 infra
drwxr-xr-x    5 root     root         4096 aoû  4 17:17 install
drwxr-xr-x    5 root     root         4096 aoû  4 17:14 io
drwxr-xr-x    3 root     root         4096 aoû  4 17:14 isoinfra
drwxr-xr-x    3 root     root         4096 aoû  4 17:14 kernel
drwxr-xr-x    3 root     root         4096 aoû  4 17:14 language
-rw-r--r--    1 root     root         5051 aoû  4 17:14 makefile
drwxr-xr-x    3 root     root         4096 aoû  4 17:14 services

[root@p00012049 ppc.psim.manu]# make tests 1>tmp 2>tmp ; head -n 10 tmp ;
echo "----------------------" ; tail -n 10 tmp

make -r -C hal/powerpc/arch/v2_0b1 headers
make[1]: Entre dans le répertoire
`/opt/ecos.ppc/configurations/ppc.psim.manu/hal/powerpc/arch/v2_0b1'
make[1]: Rien à faire pour `headers'.
make[1]: Quitte le répertoire
`/opt/ecos.ppc/configurations/ppc.psim.manu/hal/powerpc/arch/v2_0b1'
make -r -C hal/powerpc/ppc60x/v2_0b1 headers
make[1]: Entre dans le répertoire
`/opt/ecos.ppc/configurations/ppc.psim.manu/hal/powerpc/ppc60x/v2_0b1'
make[1]: Rien à faire pour `headers'.
make[1]: Quitte le répertoire
`/opt/ecos.ppc/configurations/ppc.psim.manu/hal/powerpc/ppc60x/v2_0b1'
make -r -C hal/powerpc/sim/v2_0b1 headers
make[1]: Entre dans le répertoire
`/opt/ecos.ppc/configurations/ppc.psim.manu/hal/powerpc/sim/v2_0b1'
----------------------
make[1]: Quitte le répertoire
`/opt/ecos.ppc/configurations/ppc.psim.manu/language/c/libm/v2_0b1'
make -r -C io/wallclock/v2_0b1 tests
make[1]: Entre dans le répertoire
`/opt/ecos.ppc/configurations/ppc.psim.manu/io/wallclock/v2_0b1'
make[1]: Rien à faire pour `tests'.
make[1]: Quitte le répertoire
`/opt/ecos.ppc/configurations/ppc.psim.manu/io/wallclock/v2_0b1'
make -r -C error/v2_0b1 tests
make[1]: Entre dans le répertoire
`/opt/ecos.ppc/configurations/ppc.psim.manu/error/v2_0b1'
make[1]: Rien à faire pour `tests'.
make[1]: Quitte le répertoire
`/opt/ecos.ppc/configurations/ppc.psim.manu/error/v2_0b1'
tests finished

****************************************************************************
**********************
[FR]
J'ai aussi compilé un autre eCos Psim à l'aide de configtool cette fois.
Il se trouve dans /opt/ecos.ppc/configurations/ppc.psim.auto
Je tente ensuite de compiler mon application qui ne générait aucune erreur
sous Linux Synthetic Target;
Les erreurs (ci-dessous) sont donc dues (pour moi) soit à ma réinstallation,
soit à la compilation powerpc-eabi...
[ENG]
I compiled too another eCos PPC version with configtool this time.
It's localised in /opt/ecos.ppc/configurations/ppc.psim.auto
I try then to compile my application which did no error under Linux
Synthetic Target;
Errors of ppc version (just under) can be explain only (for me) by my new
installation or by powerpc-eabi compil...
****************************************************************************
**********************

[root@p00012049 ppc.psim.auto]# cd ../../applications/otr
[root@p00012049 otr]# echo "---- debut script ----"; cat compiler.exe; echo
"----- fin script -----"

---- debut script ----
#!/bin/sh
clear
powerpc-eabi-gcc -g
-I/opt/ecos.ppc/configurations/ppc.psim.auto/ecos_install/include/
-L/opt/ecos.ppc/configurations/ppc.psim.auto/ecos_install/lib/ -Ttarget.ld
-nostdlib -DECOS -DECOS_MALLOC -DECOS_TRACE *.c -o tester.exe
echo "Compilation OTR ECOS PPC pour noyau restreint terminé."
echo
----- fin script -----

[root@p00012049 otr]# echo "---- Debut compilation ----"; compiler.exe; echo
"----- Fin compilation -----"

---- Debut compilation ----
test_main.c: In function `init_mf_lgb_radio':
test_main.c:297: warning: extern declaration of `cyg_error_get_errno_p'
doesn't match global one
/opt/ecos.ppc/gnutools/powerpc-eabi/bin/../lib/gcc-lib/powerpc-eabi/3.2.1/..
/../../../powerpc-eabi/bin/ld: warning: no memory region specified for
section `.eh_frame'
/opt/ecos.ppc/gnutools/powerpc-eabi/bin/../lib/gcc-lib/powerpc-eabi/3.2.1/..
/../../../powerpc-eabi/bin/ld: section .eh_frame [00003200 -> 0000336f]
overlaps section .text [00003200 -> 00027c67]
collect2: ld returned 1 exit status
Compilation OTR ECOS PPC pour noyau restreint terminé.
----- Fin compilation -----

[root@p00012049 otr]# 

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]