Hi John,

Adamson, John wrote:
Matt,

Thanks for trying, but no, it doesn't appear that I have the same limits.h
problem. I don't have an include-fixed directory, either in the gcc tools 
directory
(/opt/CodeSourcery/Sourcery_G++_Lite/ blah) or in the uClinux-dist/uClibc
directory where it appears to be looking.

The error and lines preceeding it are:
make[3]: Entering directory `/home/adamson/uClinux-dist/user/inetd'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -Os -g -fomit-frame-pointer -pipe -fno-common 
-fno-builtin -Wall   -DEMBED -msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ 
-DSERVICES=\"/etc/services\" -DINETD_CONF=\"/etc/inetd.conf\" -Wall -DMODIFY_CONFIG 
-DALT_INETD_CONF=\"/etc/config/inetd.conf\"   -c -o inetd.o inetd.c
In file included from 
/home/adamson/uClinux-dist/uClibc/include/bits/socket.h:31,
                 from /home/adamson/uClinux-dist/uClibc/include/sys/socket.h:35,
                 from defines.h:103,
                 from boa.h:32,
                 from alias.c:27:
/home/adamson/uClinux-dist/uClibc/include/limits.h:124:26: error: limits.h: No 
such file or directory

I can recreate this failure by removing the symlink to the
limits.h file.  If you look in the uClibc limits.h file in
the uClibc directory at line 124 there is this code snippet:

-------
 /* Get the compiler's limits.h, which defines almost all the ISO constants.

    We put this #include_next outside the double inclusion check because
    it should be possible to include this file more than once and still get
    the definitions from gcc's header.  */
#if defined __GNUC__ && !defined _GCC_LIMITS_H_
/* `_GCC_LIMITS_H_' is what GCC's file defines.  */
# include_next <limits.h>
-------

So it looks like it's still looking for a compiler limits.h file.

Try looking at the toolchain installation with:

$ m68k-uclinux-gcc --print-search-dirs
install:
/opt/freescale/usr/local/gcc-4.2.47-uclibc-0.9.47/m68k-uclinux/lib/gcc/m68k-uclinux/4.2.1/

If you go to this directory I think the include/ directory here
should have a limits.h file.  If it doesn't I guess you could
copy a limits.h file from another toolchain or a kernel or...
make sure the symlink is there if it's in the ../include-fixed/
directory.

Best regards,
Matt


There _is_ a limits.h file in /home/adamson/uClinux-dist/uClibc/include
For kicks, I tried reversing your suggestion by creating an include-fixed
directory and creating within it a link to include/limits.h. No improvement.

Do you think it would work to get the latest LTIB from the Freescale site
(whatever seems to be newest, since there isn't one specifically for the 5272),
install it to get the toolset, and then try to build uClinux from 20080808 ? Or
is there a better way to get a toolset that will work with 20080808 ?

John

//--------------------------------------
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Waddel
Sent: Wednesday, October 08, 2008 5:33 PM
To: uClinux development list
Subject: Re: [uClinux-dev] uClinux-dist-20080808 development spiral - limits.h 
no such file


Hi John,

Adamson, John wrote:
I seem to be in a downward spiral and could use some assistance pulling out. I think the question might be framed as "what tools and setup do I need to develop under 20080808 and beyond?"

Running on Fedora Core 5, building for the Freescale MCF5272C3 at the moment.


<snip>
Any suggestions for a build environment and process that will give me a stable foundation?

With a fresh extract of uCLinux-dist-20080808 and gcc 4.2.3, changing only the vendor and board during config, I still get the error message about limits.h.

The limits.h problem is easy to fix.

1) Go to the directory where the toolchain is looking for limits.h.  It
    should be something like:

/opt/freescale/usr/local/gcc-4.2.47-uclibc-0.9.47/m68k-uclinux/lib/gcc/m68k-uclinux/4.2.1/include

2) Create a symlink to the limits.h file that's one directory over in
    the include-fixed directory:

sudo ln -s ../include-fixed/limits.h limits.h

That should fix the limits.h problem.

Best regards,
Matt

Thanks in advance,

John


//--------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.



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

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



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

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

Reply via email to