I am using motorola MCF5485 processor board. We have ported linux 2.6.25 kernel downloaded from LTIB. . I have written a small application program using "nanosleep". If i give a delay of 100 milliseconds it is giving 120 miliseconds. Like this whatever may the amount i am giving in this function it is adding 20 milliseconds extra. I tried with "usleep" and "sleep" also. In both the cases same problem. Can you please help me out.
regards babu On Fri, Feb 3, 2012 at 10:31 PM, <[email protected]> wrote: > Send Ltib mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.nongnu.org/mailman/listinfo/ltib > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ltib digest..." > > > Today's Topics: > > 1. Re: Can ltib rpm host package installed in --nodeps way > (Lv Terry-R65388) > 2. Re: Can ltib rpm host package installed in --nodeps way > (Stuart Hughes) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 3 Feb 2012 06:40:48 +0000 > From: Lv Terry-R65388 <[email protected]> > To: Stuart Hughes <[email protected]> > Cc: "[email protected]" <[email protected]> > Subject: Re: [Ltib] Can ltib rpm host package installed in --nodeps > way > Message-ID: > < > 5d7cdce0fbad974596a672304f004dc404e...@039-sn2mpn1-011.039d.mgd.msft.net> > > Content-Type: text/plain; charset="gb2312" > > Hi Stuart, > > I add --nodeps to function check_toolchain_setup() in ltib file for > toolchain to install. > > my $cmd = "$cf->{sudo} $cf->{rpm} " > . "--dbpath $cf->{defpfx}/var/lib/rpm " > - . "-ivh --force --ignorearch $tc"; > + . "-ivh --force --ignorearch --nodeps $tc"; > print "$cmd\n"; > > The side effect might be that toolchains that need system > dependencies may not run. > > Will it cause other issues? > > Thanks~~ > > Yours > Terry > > -----Original Message----- > From: Stuart Hughes [mailto:[email protected]] > Sent: 2012?1?14? 21:19 > To: Lv Terry-R65388 > Cc: [email protected] > Subject: Re: [Ltib] Can ltib rpm host package installed in --nodeps way > > Hi Terry, > > Normally toolchains are built in a way that minimises their dependencies > so that they may be run on many version/distributions of Linux. > > In this case it looks like it's been build with more dependencies. > > You can install with nodeps, but it is likely that when you ship it to > other people they won't be able to run the toolchain if it's vintage is > older than the machine that built the toolchain. > > Regards, Stuart > > On 10/01/12 09:42, Lv Terry-R65388 wrote: > > Hi, > > > > I'm trying to add a new cross-compiler toolchain in ltib. > > The toolchain needs libc6 2.13 and libc6 2.13 is provided itself. > > > > I packed the toolchain to rpm package and tried to run ltib to > install it. > > I encountered the following errors: > > > > r65388@shlinux1:~/toolchain_ltib/ltib$ ./ltib > > Installing: gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i386.rpm > > sudo /opt/freescale/ltib/usr/bin/rpm --dbpath > > /opt/freescale/ltib/var/lib/rpm -ivh --force --ignorearch > > /opt/freescale/pkgs/gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i3 > > 86.rpm Failed to install: > > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i386.rpm: > > error: failed dependencies: > > libc.so.6(GLIBC_2.0) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > libc.so.6(GLIBC_2.1) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > libc.so.6(GLIBC_2.1.2) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > libc.so.6(GLIBC_2.1.3) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > libc.so.6(GLIBC_2.2) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > libc.so.6(GLIBC_2.3) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > libdl.so.2(GLIBC_2.0) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > libdl.so.2(GLIBC_2.1) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > libm.so.6(GLIBC_2.0) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > libpthread.so.0(GLIBC_2.2) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > libz.so.1 is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > > > > traceback: > > main::check_toolchain_setup:2552 > > main::pre_build_checks:1453 > > main:557 > > > > > > Started: Tue Jan 10 16:41:03 2012 > > Ended: Tue Jan 10 16:41:05 2012 > > Elapsed: 2 seconds > > > > > > Build Failed > > > > Exiting on error or interrupt > > r65388@shlinux1:~/toolchain_ltib/ltib$ > > > > If I install this rpm package manually with --nodeps, it can be > installed. > > > > r65388@shlinux1:~/toolchain_ltib$ sudo rpm -ivh > > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i386.rpm --nodeps > > rpm: RPM should not be used directly install RPM packages, use Alien > instead! > > rpm: However assuming you know what you are doing... > > Preparing... ########################################### > [100%] > > > > 1:gcc-linaro-4.6.3-glibc-########################################### > > [100%] > > > > So my question is: can I install this rpm package in ltib in a > implicit --nodeps way. > > That is, I can tell ltib to install this package using --nodeps in > spec or elsewhere, not need to add --nodeps as an option for ./ltib. > > > > Thanks a lot~~ > > > > Yours > > Terry > > > > > > _______________________________________________ > > LTIB home page: http://ltib.org > > > > Ltib mailing list > > [email protected] > > https://lists.nongnu.org/mailman/listinfo/ltib > > > > > ------------------------------ > > Message: 2 > Date: Fri, 03 Feb 2012 08:42:04 +0000 > From: Stuart Hughes <[email protected]> > To: Lv Terry-R65388 <[email protected]> > Cc: "[email protected]" <[email protected]> > Subject: Re: [Ltib] Can ltib rpm host package installed in --nodeps > way > Message-ID: <[email protected]> > Content-Type: text/plain; charset=GB2312 > > Hi Terry, > > No, I don't think there should be any other side-effects. > > Regards, Stuart > > On 03/02/12 06:40, Lv Terry-R65388 wrote: > > Hi Stuart, > > > > I add --nodeps to function check_toolchain_setup() in ltib file > for toolchain to install. > > > > my $cmd = "$cf->{sudo} $cf->{rpm} " > > . "--dbpath $cf->{defpfx}/var/lib/rpm " > > - . "-ivh --force --ignorearch $tc"; > > + . "-ivh --force --ignorearch --nodeps $tc"; > > print "$cmd\n"; > > > > The side effect might be that toolchains that need system > dependencies may not run. > > > > Will it cause other issues? > > > > Thanks~~ > > > > Yours > > Terry > > > > -----Original Message----- > > From: Stuart Hughes [mailto:[email protected]] > > Sent: 2012?1?14? 21:19 > > To: Lv Terry-R65388 > > Cc: [email protected] > > Subject: Re: [Ltib] Can ltib rpm host package installed in --nodeps way > > > > Hi Terry, > > > > Normally toolchains are built in a way that minimises their dependencies > so that they may be run on many version/distributions of Linux. > > > > In this case it looks like it's been build with more dependencies. > > > > You can install with nodeps, but it is likely that when you ship it to > other people they won't be able to run the toolchain if it's vintage is > older than the machine that built the toolchain. > > > > Regards, Stuart > > > > On 10/01/12 09:42, Lv Terry-R65388 wrote: > >> Hi, > >> > >> I'm trying to add a new cross-compiler toolchain in ltib. > >> The toolchain needs libc6 2.13 and libc6 2.13 is provided itself. > >> > >> I packed the toolchain to rpm package and tried to run ltib to > install it. > >> I encountered the following errors: > >> > >> r65388@shlinux1:~/toolchain_ltib/ltib$ ./ltib > >> Installing: gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i386.rpm > >> sudo /opt/freescale/ltib/usr/bin/rpm --dbpath > >> /opt/freescale/ltib/var/lib/rpm -ivh --force --ignorearch > >> /opt/freescale/pkgs/gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i3 > >> 86.rpm Failed to install: > >> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i386.rpm: > >> error: failed dependencies: > >> libc.so.6(GLIBC_2.0) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> libc.so.6(GLIBC_2.1) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> libc.so.6(GLIBC_2.1.2) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> libc.so.6(GLIBC_2.1.3) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> libc.so.6(GLIBC_2.2) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> libc.so.6(GLIBC_2.3) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> libdl.so.2(GLIBC_2.0) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> libdl.so.2(GLIBC_2.1) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> libm.so.6(GLIBC_2.0) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> libpthread.so.0(GLIBC_2.2) is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> libz.so.1 is needed by > gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1 > >> > >> traceback: > >> main::check_toolchain_setup:2552 > >> main::pre_build_checks:1453 > >> main:557 > >> > >> > >> Started: Tue Jan 10 16:41:03 2012 > >> Ended: Tue Jan 10 16:41:05 2012 > >> Elapsed: 2 seconds > >> > >> > >> Build Failed > >> > >> Exiting on error or interrupt > >> r65388@shlinux1:~/toolchain_ltib/ltib$ > >> > >> If I install this rpm package manually with --nodeps, it can be > installed. > >> > >> r65388@shlinux1:~/toolchain_ltib$ sudo rpm -ivh > >> gcc-linaro-4.6.3-glibc-2.13-singlelib-2011.12-1.i386.rpm --nodeps > >> rpm: RPM should not be used directly install RPM packages, use Alien > instead! > >> rpm: However assuming you know what you are doing... > >> Preparing... ########################################### > [100%] > >> > >> 1:gcc-linaro-4.6.3-glibc-########################################### > >> [100%] > >> > >> So my question is: can I install this rpm package in ltib in a > implicit --nodeps way. > >> That is, I can tell ltib to install this package using --nodeps in > spec or elsewhere, not need to add --nodeps as an option for ./ltib. > >> > >> Thanks a lot~~ > >> > >> Yours > >> Terry > >> > >> > >> _______________________________________________ > >> LTIB home page: http://ltib.org > >> > >> Ltib mailing list > >> [email protected] > >> https://lists.nongnu.org/mailman/listinfo/ltib > >> > > > > > ------------------------------ > > _______________________________________________ > Ltib mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/ltib > > > End of Ltib Digest, Vol 70, Issue 1 > *********************************** >
_______________________________________________ LTIB home page: http://ltib.org Ltib mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/ltib
