Hello Franco,

the selection between libc or uclibc is a major one in the SDK.
These are the main "C" libraries and applications have to be compiled 
according to the kernel compilation.
Infact the choose of gnu libc or gnu uclibc has to be made in the first 
steps of the SDK configuration, when you invoke "make menuconfig"
The main selections for the SDK at the beginning of this configuration are:
kind of board: LX816, LX832 etc.
kind of kernel: 2.4.31 or 2.6.15
kind of "C" library: libc or uclibc

If you have a Fox equipped with a SDK set with libc you cannot compile 
applications asking to be compiled versus uclibc and viceversa.

The reason of the existance of uclibc is mainly for size. uclibc is much 
smaller than libc but not so complete as the latter. For a certain 
amount of time old Foxboard have been factory programmed using uclibc to 
have more FLASH space for applications and sometimes users do so to have 
the possibility to fit more data and application code inside the Fox 
(even if now, with the new Foxes with 8MB of FLASH this is not anymore a 
real issue).

Right now the standard SDK and factory programmed fimage for the Fox are 
compuiled against libc so you have to compile your applications against 
libc as well (so issuing in your application directory the command "make 
cris-axis-linux-gnu" before compiling your application. I have seen now 
the reason of the problem since in the article 711 "Compile a C 
application" we refer uclibc as the standard for kernel 2.6.x. This has 
been in the past as above explained but not anymore. I have corrected 
the putdated information and I apologize for any inconvenience we have 
generated .

Thank you for raising this problem so that we could have corrected the 
article info. i hope you have not lost too much time on this and feel 
free to contatc us for any issue .

Best regards,

Roberto Asquini


proton_0305 ha scritto:
>
> To better understand the parse error before "__THROW" in the
> helloworld.c I've done some other tries:
> 1) I installed from scratch all the needed packages in my suse 10.2
> following a topic that I've found on the acme forum
> -> exactly same result and same errors.
>
> 2) I've a new fox LX832, with kernel 2.6.15 so I compiled using the
> option make cris-axis-linux-gnuuclibc before make.
> But if I try to compile using make cris-axis-linux-gnu
> (so for a fox running kernel 2.4.xx) and then make, it compiles
> perfectly both on the vmware debian and the suse installations
>
> So it seems that the problem is related to the gnuuclib compilation
> mode, and I wonder if it is common to all the other fox (2.6.15)
> users.
>
> Please help
>
> ciao
>
> franco
>
> --- In [email protected] <mailto:foxboard%40yahoogroups.com>, 
> "proton_0305" <[EMAIL PROTECTED]> wrote:
> >
> > Hi Rolf,
> > I've exactly the same problem. The strange is that I' using the
> > debian image that I got from the acme website ...
> > Never the less, can you please explain in detail what you did, so I
> > can try the same solution ?
> > thanks a lot for your help
> > franco
> >
> >
> >
> > --- In [email protected] <mailto:foxboard%40yahoogroups.com>, 
> Rolf Schumacher <mailinglist@>
> > wrote:
> > >
> > > ok, I finaly made it.
> > > There were problems with ncurses - it was not proberly installed.
> > >
> > > Just to say there is nothing wrong with SDK.
> > >
> > > Rolf
> > >
> > > Rolf Schumacher wrote:
> > > >
> > > > Thank you for quick answering, John.
> > > > Here is the ls -la info and a 'more .target-makefrag'
> > > >
> > > > [EMAIL PROTECTED]:/home/fox/devboard-R2_01/apps/helloworld$ ls -la
> > > > total 24
> > > > drwxr-xr-x 2 rsc rsc 4096 2007-06-30 22:03 .
> > > > drwxr-xr-x 54 rsc rsc 4096 2007-06-30 08:19 ..
> > > > -rw-r--r-- 1 rsc rsc 80 2007-06-30 08:23 helloworld.c
> > > > -rw-r--r-- 1 rsc rsc 2344 2007-06-30 22:03 helloworld.out
> > > > -rw-r--r-- 1 rsc rsc 206 2007-06-30 08:29 makefile
> > > > -rw-r--r-- 1 rsc rsc 41 2007-06-30 08:36 .target-makefrag
> > > > [EMAIL PROTECTED]:/home/fox/devboard-R2_01/apps/helloworld$
> more .target-
> > makefrag
> > > > AXIS_BUILDTYPE=cris-axis-linux-gnuuclibc
> > > > [EMAIL PROTECTED]:/home/fox/devboard-R2_01/apps/helloworld$
> > > >
> > > > John Crispin wrote:
> > > > >
> > > > > run ls -la in the folder of the hello world code and paste
> the
> > output
> > > > > please
> > > > >
> > > > > Quoting schumacher_rolf <mailinglist@
> > > > <mailto:mailinglist%40august.de>
> > > > > <mailto:mailinglist%40august.de>>:
> > > > >
> > > > > > Instalation of SDK for FOX Board worked smooth on my Debian
> > linux.
> > > > > > Also I'm able to compile and run helloworld using web
> > compilation.
> > > > > >
> > > > > > However, if compile it using the SDK I get lots of error
> > messages.
> > > > > > What would be the next step to narrow a solution?
> > > > > >
> > > > > > Here are the first few error lines:
> > > > > >
> > > > > > In file included from
> > > > > >
> > > > >
> > > > /usr/local/cris/lib/gcc-lib/cris-axis-linux-
> > gnu/3.2.1/include/stdio.h:42,
> > > > > > from helloworld.c:1:
> > > > > >
> > > > >
> > > > /usr/local/cris/lib/gcc-lib/cris-axis-linux-
> > gnu/3.2.1/include/stddef.h:201:
> > > > > > syntax error before "typedef"
> > > > > >
> > > > >
> > > > /usr/local/cris/lib/gcc-lib/cris-axis-linux-
> > gnu/3.2.1/include/stdio.h:44:25:
> > > > > > bits/types.h: No such file or directory
> > > > > >
> > > > >
> > > > /usr/local/cris/lib/gcc-lib/cris-axis-linux-
> > gnu/3.2.1/include/stdio.h:73:19:
> > > > > > libio.h: No such file or directory
> > > > > > In file included from helloworld.c:1:
> > > > > >
> > > > >
> > > > /usr/local/cris/lib/gcc-lib/cris-axis-linux-
> > gnu/3.2.1/include/stdio.h:88:
> > > > > > parse error before "fpos_t"
> > > > > >
> > > > >
> > > > /usr/local/cris/lib/gcc-lib/cris-axis-linux-
> > gnu/3.2.1/include/stdio.h:137:28:
> > > > > > bits/stdio_lim.h: No such file or directory
> > > > > >
> > > > >
> > > > /usr/local/cris/lib/gcc-lib/cris-axis-linux-
> > gnu/3.2.1/include/stdio.h:150:
> > > > > > parse error before "__THROW"
> > > > > >
> > > > >
> > > > /usr/local/cris/lib/gcc-lib/cris-axis-linux-
> > gnu/3.2.1/include/stdio.h:152:
> > > > > > parse error before "__THROW"
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
>
>  


-- 
Roberto Asquini
Acme Systems srl
[EMAIL PROTECTED]
http://www.acmesystems.it

Reply via email to