> -----Message d'origine-----
> De : [email protected] [mailto:uclinux-dev-
> [email protected]] De la part de Greg Ungerer
> Envoyé : vendredi 20 mars 2009 06:58
> À : uClinux development list
> Objet : Re: [uClinux-dev] uClinux on Coldfire - errors when building
> theuser source tree (gdb)
> 
> Hi Damien,
> 
> Courousse, Damien wrote:
> > Dear uClinux developers,
> >
> > I am new to uClinux, (but not to embedded development and linux).
> > I want to use uClinux on a Coldfire board (the board M5234BCC from
> Freescale, processor Coldfire MCF5234).
> > I have installed the uClinux distribution v20080808 patched with the
> patch from 20090112, and the m68k toolchain version m68k-uclinux-20061214.
> > 1/ is a general question about uClibc and uC-libc
> > 2/ are compilation errors in uClinux-dist/user/gdb
> >
> > 1/ uClibc or uC-libc
> > I have setup uClinux to build built along with uClibc; I have seen that
> uC-libc would also be a good choice, especially because I am using a
> m68knommu architecture.
> > I have RTFM and I have read that uC-libc is recommended for m68k
> architectures, that it provides a smaller footprint that uClibc, but do
> not see any other obvious reason to choose between these two libraries.
> > Do some of you have some experience on this point? What would you
> recommend?
> 
> For modern kernels, I always use uClibc. So in other words if
> compiling for a 2.6.x kernel, use uClibc. uC-libc is smaller, but
> it is also much older, and not really actively maintained.
> 
> Regards
> Greg
 
Thanks Greg for replying,

With the last toolchain from CodeSourcery, the 2.6 kernel and uClibc, 
everything is now fine.

Best regards,
Damien


> 
> 
> 
> > 2/ Compilation errors in user/gdb
> >
> > 2-1/ gdb configure
> > During the configuration (build/host), I get the following error
> >
> > "compiler C cannot create executable"
> >
> > I use the following workaround :
> > $ cd user/gdb
> > $ cd host; CC= CFLAGS= ../configure --host=m68k-uclinux-linux --
> build=i686-pc-linux-gnu --target=m68k-uclinux-linux
> > $ touch build
> > $ cd ../../..
> > (then running make to the point where it failed)
> > $ make // make user/gdb_only
> >
> > 2-2/ (gdb) compilation error in gdb/gdb/fork-child.c
> > (...)
> > ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -c -O1 -g -pipe -
> fno-common -fno-builtin -Wall   -DEMBED -msep-data -Dlinux -D__linux__ -
> Dunix -D__uClinux__   -I. -I../../gdb -I../../gdb/config -
> DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -
> I../../gdb/../include/opcode -I../../gdb/../readline/.. -I../bfd -
> I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -
> I../../gdb/../libdecnumber   -DMI_OUT=1  -Wall -Wdeclaration-after-
> statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-
> unused -Wno-switch -Wno-char-subscripts -Werror ../../gdb/fork-child.c
> > cc1: warnings being treated as errors
> > ../../gdb/fork-child.c: In function 'fork_inferior':
> > ../../gdb/fork-child.c:280: warning: implicit declaration of function
> 'fork'
> > make[5]: *** [fork-child.o] Erreur 1
> > make[5]: quittant le répertoire « /gorgy/uClinux-dist/user/gdb/build/gdb
> »
> > make[4]: *** [all-gdb] Erreur 2
> > make[4]: quittant le répertoire « /gorgy/uClinux-dist/user/gdb/build »
> > make[3]: *** [all] Erreur 2
> > make[3]: quittant le répertoire « /gorgy/uClinux-dist/user/gdb/build »
> > make[2]: *** [all] Erreur 2
> > make[2]: quittant le répertoire « /gorgy/uClinux-dist/user/gdb »
> > make[1]: *** [gdb_only] Erreur 2
> > make[1]: quittant le répertoire « /gorgy/uClinux-dist/user »
> > make: *** [user/gdb_only] Erreur 2
> >
> > I temporarily solved the pb with this :
> >
> > $ git diff fork-child.c fork-child-new.c
> > diff --git a/fork-child.c b/fork-child-new.c
> > index 15b8245..0318c76 100644
> > --- a/fork-child-org.c
> > +++ b/fork-child.c
> > @@ -276,9 +276,6 @@ fork_inferior (char *exec_file_arg, char *allargs,
> char **env,
> >       state, this doesn't work.  Also note that the vfork(2) call might
> >       actually be a call to fork(2) due to the fact that autoconf will
> >       ``#define vfork fork'' on certain platforms.  */
> > -  if (pre_trace_fun || debug_fork)
> > -    pid = fork ();
> > -  else
> >      pid = vfork ();
> >
> >    if (pid < 0)
> >
> > What is the right way do fix this?
> >
> > 2-3/ (gdb) compilation error in linux-thread-db.c
> >
> > The error I get is :
> > make[6]: entrant dans le répertoire « /gorgy/uClinux-
> dist/user/gdb/build/gdb »
> > ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -c -O1 -g -pipe -
> fno-common -fno-builtin -Wall   -DEMBED -msep-data -Dlinux -D__linux__ -
> Dunix -D__uClinux__   -I. -I../../gdb -I../../gdb/config -
> DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -
> I../../gdb/../include/opcode -I../../gdb/../readline/.. -I../bfd -
> I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -
> I../../gdb/../libdecnumber   -DMI_OUT=1  -Wall -Wdeclaration-after-
> statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-
> unused -Wno-switch -Wno-char-subscripts -Werror ../../gdb/linux-thread-
> db.c
> > In file included from ../../gdb/linux-thread-db.c:26:
> > ../../gdb/gdb_thread_db.h:38:21: error: pthread.h: Aucun fichier ou
> répertoire de ce type
> > In file included from ../../gdb/linux-thread-db.c:26:
> > (...)
> >
> > If I manually add the include directory /usr/local/m68k-uclinux/include
> I get this :
> > ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -c -O1 -g -pipe -
> fno-common -fno-builtin -Wall   -DEMBED -msep-data -Dlinux -D__linux__ -
> Dunix -D__uClinux__   -I. -I../../gdb -I../../gdb/config -
> DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -
> I../../gdb/../include/opcode -I../../gdb/../readline/.. -I../bfd -
> I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -
> I../../gdb/../libdecnumber   -DMI_OUT=1  -Wall -Wdeclaration-after-
> statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-
> unused -Wno-switch -Wno-char-subscripts -Werror ../../gdb/linux-thread-
> db.c -I/usr/local/m68k-uclinux/include
> > cc1: warnings being treated as errors
> > In file included from ../../gdb/defs.h:952,
> >                  from ../../gdb/linux-thread-db.c:21:
> > /usr/local/m68k-uclinux/include/stdlib.h:494: warning: '__malloc__'
> attribute ignored
> >
> > I am not sure which pthread.h file I should refer to. Furthermore, I
> have read on the internet that some people could not build gdb 6.8 without
> thread support enabled (http://www.nabble.com/threads-2552%3A-gdb-6.8-
> fails-to-build-without-thread-support-tt20435825.html#a20435825).
> > Do you get an idea how to fix this?
> >
> >
> > Thanks for your help,
> > Best regards,
> > Damien
> >
> >
> >
> > Damien Couroussé
> > LOGICA - Business Division KLS
> > 5, rue de l'Octant
> > F-38433 Echirolles
> > 04 76 20 45 41
> >
> >
> > Please help Logica to respect the environment by not printing this email
> /  Merci d'aider Logica à préserver l'environnement en évitant d'imprimer
> ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so
> Logica dabei die Umwelt zu schuetzen  /  Por favor ajude a Logica a
> respeitar o ambiente não imprimindo este correio electrónico.
> >
> >
> >
> > This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender. Thank you.
> >
> >
> > _______________________________________________
> > uClinux-dev mailing list
> > [email protected]
> > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> > This message was resent by [email protected]
> > To unsubscribe see:
> > http://mailman.uclinux.org/mailman/options/uclinux-dev
> >
> 
> --
> ------------------------------------------------------------------------
> Greg Ungerer  --  Principal Engineer        EMAIL:     [email protected]
> SnapGear, a McAfee Company                  PHONE:       +61 7 3435 2888
> 825 Stanley St,                             FAX:         +61 7 3891 3630
> Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev


Please help Logica to respect the environment by not printing this email  /  
Merci d'aider Logica à préserver l'environnement en évitant d'imprimer ce mail 
/  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei 
die Umwelt zu schuetzen  /  Por favor ajude a Logica a respeitar o ambiente não 
imprimindo este correio electrónico.



This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.


_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to