Loading ...
Sorry, an error occurred while loading the content.

gcc ipk package.

Expand Messages
  • tj_yang2001
    I followed the instuction and was able to install native compiler on my nslu2. Looks this manual process can be digitize into a package. Who is working on gcc
    Message 1 of 20 , Dec 30, 2004
    • 0 Attachment
      I followed the instuction and was able to install
      native compiler on my nslu2. Looks this manual
      process can be digitize into a package.

      Who is working on gcc packge for nslu2 ?

      I have my scond nslu2 coming and hope I can
      do a "ipkg install gcc" next time ;)

      If no one is doing it, let me know. I will do it.

      tj
    • jieglen@sbcglobal.net
      Go for it! It s something I have considered, but I got sidetracked doing other packages. Jeremy
      Message 2 of 20 , Dec 30, 2004
      • 0 Attachment
        Go for it! It's something I have considered, but I got sidetracked
        doing other packages.

        Jeremy



        --- In nslu2-linux@yahoogroups.com, "tj_yang2001" <tj_yang2001@y...>
        wrote:
        >
        > I followed the instuction and was able to install
        > native compiler on my nslu2. Looks this manual
        > process can be digitize into a package.
        >
        > Who is working on gcc packge for nslu2 ?
        >
        > I have my scond nslu2 coming and hope I can
        > do a "ipkg install gcc" next time ;)
        >
        > If no one is doing it, let me know. I will do it.
        >
        > tj
      • tj_yang2001
        ... Ok, I will do it as the exercise of my first ipkg package. Thanks Rod for giving me the write access to cvs server. I will post on this group to ask for
        Message 3 of 20 , Dec 30, 2004
        • 0 Attachment
          --- In nslu2-linux@yahoogroups.com, "jieglen@s..." <jieglen@s...> wrote:
          >
          > Go for it! It's something I have considered, but I got sidetracked
          > doing other packages.
          >

          Ok, I will do it as the exercise of my first ipkg package.
          Thanks Rod for giving me the write access to cvs server.
          I will post on this group to ask for review when it is done.

          tj

          > Jeremy
          >
          >
          >
          > --- In nslu2-linux@yahoogroups.com, "tj_yang2001" <tj_yang2001@y...>
          > wrote:
          > >
          > > I followed the instuction and was able to install
          > > native compiler on my nslu2. Looks this manual
          > > process can be digitize into a package.
          > >
          > > Who is working on gcc packge for nslu2 ?
          > >
          > > I have my scond nslu2 coming and hope I can
          > > do a "ipkg install gcc" next time ;)
          > >
          > > If no one is doing it, let me know. I will do it.
          > >
          > > tj
        • tj_yang2001
          ... Here is more detail about the gcc package. I will use the materials(binaries,scripts) in this link
          Message 4 of 20 , Dec 30, 2004
          • 0 Attachment
            --- In nslu2-linux@yahoogroups.com, "tj_yang2001" <tj_yang2001@y...>
            wrote:
            >
            > --- In nslu2-linux@yahoogroups.com, "jieglen@s..." <jieglen@s...> wrote:
            > >
            > > Go for it! It's something I have considered, but I got sidetracked
            > > doing other packages.
            > >
            >
            > Ok, I will do it as the exercise of my first ipkg package.
            > Thanks Rod for giving me the write access to cvs server.
            > I will post on this group to ask for review when it is done.
            >
            Here is more detail about the gcc package.

            I will use the materials(binaries,scripts) in this link

            http://www.nslu2-linux.org/wiki/Info/NativeNSLU2Toolchain

            to turn it into a package.

            > tj
            >
            > > Jeremy
            > >
            > >
            > >
            > > --- In nslu2-linux@yahoogroups.com, "tj_yang2001" <tj_yang2001@y...>
            > > wrote:
            > > >
            > > > I followed the instuction and was able to install
            > > > native compiler on my nslu2. Looks this manual
            > > > process can be digitize into a package.
            > > >
            > > > Who is working on gcc packge for nslu2 ?
            > > >
            > > > I have my scond nslu2 coming and hope I can
            > > > do a "ipkg install gcc" next time ;)
            > > >
            > > > If no one is doing it, let me know. I will do it.
            > > >
            > > > tj
          • r2004roellig
            Hi tj, can you do me a favor and check whether the gcc you are going to ipkg can handle floating point correctly? Just check out his hack:
            Message 5 of 20 , Dec 30, 2004
            • 0 Attachment
              Hi tj,

              can you do me a favor and check whether the gcc you are going to ipkg
              can handle floating point correctly?

              Just check out his hack:
              http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp.c

              The expected output is:
              http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp-output.txt

              As far as I have experienced all native tool chains so far fail (in my
              with
              FP at the NSLU. I have seen lots of fails with tool chain combinations
              I have built:
              http://www.familie-roellig.de/public/nslu2/toolchain/Compilertests.txt
              For most applications this does not matter, however for Perl I needed
              to come up with an ugly work around.

              Some background about the pain to get Perl compiled you can find here:
              http://groups.yahoo.com/group/nslu2-linux/message/2731
              http://groups.yahoo.com/group/nslu2-linux/message/2639

              It would be great to get a tool chain that allows me to link Perl
              against shared libs what would allow dynamic module loading.

              To get closer to this goal I have meanwhile tried to generate a
              native toolchain gcc 3.4.2 + glibc 2.2.5, however there is a pending
              compiler bug what causes this combination to fail:
              http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17209
              http://www.kegel.com/crosstool/crosstool-0.28-rc37/buildlogs/0.28/

              Just let me know how your tool chain in your environment does.
              Nevertheless, I would be happy to download an ipkg of your current
              tool chain soon!

              Thanks,
              Rene.


              --- In nslu2-linux@yahoogroups.com, "tj_yang2001" <tj_yang2001@y...>
              wrote:
              >
              > --- In nslu2-linux@yahoogroups.com, "jieglen@s..." <jieglen@s...> wrote:
              > >
              > > Go for it! It's something I have considered, but I got sidetracked
              > > doing other packages.
              > >
              >
              > Ok, I will do it as the exercise of my first ipkg package.
              > Thanks Rod for giving me the write access to cvs server.
              > I will post on this group to ask for review when it is done.
              >
              > tj
              >
              > > Jeremy
              > >
              > >
              > >
              > > --- In nslu2-linux@yahoogroups.com, "tj_yang2001" <tj_yang2001@y...>
              > > wrote:
              > > >
              > > > I followed the instuction and was able to install
              > > > native compiler on my nslu2. Looks this manual
              > > > process can be digitize into a package.
              > > >
              > > > Who is working on gcc packge for nslu2 ?
              > > >
              > > > I have my scond nslu2 coming and hope I can
              > > > do a "ipkg install gcc" next time ;)
              > > >
              > > > If no one is doing it, let me know. I will do it.
              > > >
              > > > tj
            • tj_yang2001
              ... Following is the log to compile hello-fp.c using crosstool chain on a RHAS 3.0 box. Do you know what went wrong with following logs ? tjyang@t-at4002
              Message 6 of 20 , Dec 30, 2004
              • 0 Attachment
                --- In nslu2-linux@yahoogroups.com, "r2004roellig" <r2004roellig@y...>
                wrote:
                >
                > Hi tj,
                >
                > can you do me a favor and check whether the gcc you are going to ipkg
                > can handle floating point correctly?
                >
                > Just check out his hack:
                > http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp.c
                >
                > The expected output is:
                > http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp-output.txt
                >
                > As far as I have experienced all native tool chains so far fail (in my
                > with
                > FP at the NSLU. I have seen lots of fails with tool chain combinations

                Following is the log to compile hello-fp.c using crosstool chain
                on a RHAS 3.0 box. Do you know what went wrong with following
                logs ?

                tjyang@t-at4002> ./gcc -o hell-fp hello-fp.c
                /tmp/ccmYHoDH.o(.text+0x50): In function `main':
                : undefined reference to `log'
                /tmp/ccmYHoDH.o(.text+0x164): In function `main':
                : undefined reference to `exp'
                /tmp/ccmYHoDH.o(.text+0x1a8): In function `main':
                : undefined reference to `pow'
                collect2: ld returned 1 exit status
                tjayng@t-at4002> ./gcc -v
                Reading specs from
                /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/lib/gcc/arm-softfloat-linux-gnu/3.4.1/specs
                Configured with:
                /opt/build/crosstool-0.28-rc37/build/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/gcc-3.4.1/configure
                --target=arm-softfloat-linux-gnu --host=i686-host_pc-linux-gnu
                --prefix=/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3
                --with-float=soft
                --with-headers=/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/include
                --with-local-prefix=/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu
                --disable-nls --enable-threads=posix --enable-symvers=gnu
                --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared
                --enable-c99 --enable-long-long
                Thread model: posix
                gcc version 3.4.1
                tjyang@t-at4002> ./gcc -o hell-fp hello-fp.c
                /tmp/cc4NLy8i.o(.text+0x50): In function `main':
                : undefined reference to `log'
                /tmp/cc4NLy8i.o(.text+0x164): In function `main':
                : undefined reference to `exp'
                /tmp/cc4NLy8i.o(.text+0x1a8): In function `main':
                : undefined reference to `pow'
                collect2: ld returned 1 exit status
                tjyang@t-at4002> grep math hello-fp.c
                #include
                </opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/include/math.h>
                aty010@t-at4002> grep pow
                /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/include/math.h
                aty010@t-at4002> grep pow
                /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/include/math.h
                aty010@t-at4002> grep log
                /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/include/math.h
                FP_ILOGB0 Expands to a value returned by `ilogb (0.0)'.
                FP_ILOGBNAN Expands to a value returned by `ilogb (NAN)'.
                # define M_LOG2E 1.4426950408889634074 /* log_2 e */
                # define M_LOG10E 0.43429448190325182765 /* log_10 e */
                # define M_LN2 0.69314718055994530942 /* log_e 2 */
                # define M_LN10 2.30258509299404568402 /* log_e 10 */
                # define M_LOG2El 1.4426950408889634073599246810018921L /*
                log_2 e */
                # define M_LOG10El 0.4342944819032518276511289189166051L /*
                log_10 e */
                # define M_LN2l 0.6931471805599453094172321214581766L /*
                log_e 2 */
                # define M_LN10l 2.3025850929940456840179914546843642L /*
                log_e 10 */
                tjyang@t-at4002> grep exp
                /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/include/math.h
                to evaluate `float' expressions
                to evaluate `double' expressions
                tjyang@t-at4002>
              • m. allan noah
                try ./gcc -lm -o hell-fp hello-fp.c also, i thought he wanted you to test this with your native compiler, on the slug itself? allan ... -- so don t tell us it
                Message 7 of 20 , Dec 30, 2004
                • 0 Attachment
                  try ./gcc -lm -o hell-fp hello-fp.c

                  also, i thought he wanted you to test this with your native compiler, on
                  the slug itself?

                  allan

                  On Thu, 30 Dec 2004, tj_yang2001 wrote:

                  >
                  > --- In nslu2-linux@yahoogroups.com, "r2004roellig" <r2004roellig@y...>
                  > wrote:
                  > >
                  > > Hi tj,
                  > >
                  > > can you do me a favor and check whether the gcc you are going to ipkg
                  > > can handle floating point correctly?
                  > >
                  > > Just check out his hack:
                  > > http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp.c
                  > >
                  > > The expected output is:
                  > >
                  > http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp-output.txt
                  > >
                  > > As far as I have experienced all native tool chains so far fail (in my
                  > > with
                  > > FP at the NSLU. I have seen lots of fails with tool chain combinations
                  >
                  > Following is the log to compile hello-fp.c using crosstool chain
                  > on a RHAS 3.0 box. Do you know what went wrong with following
                  > logs ?
                  >
                  > tjyang@t-at4002> ./gcc -o hell-fp hello-fp.c
                  > /tmp/ccmYHoDH.o(.text+0x50): In function `main':
                  > : undefined reference to `log'
                  > /tmp/ccmYHoDH.o(.text+0x164): In function `main':
                  > : undefined reference to `exp'
                  > /tmp/ccmYHoDH.o(.text+0x1a8): In function `main':
                  > : undefined reference to `pow'
                  > collect2: ld returned 1 exit status
                  > tjayng@t-at4002> ./gcc -v
                  > Reading specs from
                  > /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/lib/gcc/arm-softflo
                  > at-linux-gnu/3.4.1/specs
                  > Configured with:
                  > /opt/build/crosstool-0.28-rc37/build/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3
                  > .3/gcc-3.4.1/configure
                  > --target=arm-softfloat-linux-gnu --host=i686-host_pc-linux-gnu
                  > --prefix=/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3
                  > --with-float=soft
                  > --with-headers=/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-
                  > softfloat-linux-gnu/include
                  > --with-local-prefix=/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3
                  > /arm-softfloat-linux-gnu
                  > --disable-nls --enable-threads=posix --enable-symvers=gnu
                  > --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared
                  > --enable-c99 --enable-long-long
                  > Thread model: posix
                  > gcc version 3.4.1
                  > tjyang@t-at4002> ./gcc -o hell-fp hello-fp.c
                  > /tmp/cc4NLy8i.o(.text+0x50): In function `main':
                  > : undefined reference to `log'
                  > /tmp/cc4NLy8i.o(.text+0x164): In function `main':
                  > : undefined reference to `exp'
                  > /tmp/cc4NLy8i.o(.text+0x1a8): In function `main':
                  > : undefined reference to `pow'
                  > collect2: ld returned 1 exit status
                  > tjyang@t-at4002> grep math hello-fp.c
                  > #include
                  > </opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linu
                  > x-gnu/include/math.h>
                  > aty010@t-at4002> grep pow
                  > /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux
                  > -gnu/include/math.h
                  > aty010@t-at4002> grep pow
                  > /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux
                  > -gnu/include/math.h
                  > aty010@t-at4002> grep log
                  > /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux
                  > -gnu/include/math.h
                  >     FP_ILOGB0   Expands to a value returned by `ilogb (0.0)'.
                  >     FP_ILOGBNAN Expands to a value returned by `ilogb (NAN)'.
                  > # define M_LOG2E        1.4426950408889634074   /* log_2 e */
                  > # define M_LOG10E       0.43429448190325182765  /* log_10 e */
                  > # define M_LN2          0.69314718055994530942  /* log_e 2 */
                  > # define M_LN10         2.30258509299404568402  /* log_e 10 */
                  > # define M_LOG2El       1.4426950408889634073599246810018921L  /*
                  > log_2 e */
                  > # define M_LOG10El      0.4342944819032518276511289189166051L  /*
                  > log_10 e */
                  > # define M_LN2l         0.6931471805599453094172321214581766L  /*
                  > log_e 2 */
                  > # define M_LN10l        2.3025850929940456840179914546843642L  /*
                  > log_e 10 */
                  > tjyang@t-at4002> grep exp
                  > /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux
                  > -gnu/include/math.h
                  >                 to evaluate `float' expressions
                  >                 to evaluate `double' expressions
                  > tjyang@t-at4002>
                  >
                  >
                  >
                  >
                  >
                  >
                  >
                  >
                  > [ Moderator Note: All static information is slowly moving to the Wiki at
                  > http://www.nslu2-linux.org ]
                  >
                  >
                  > Yahoo! Groups Sponsor
                  > ADVERTISEMENT
                  > click here
                  > [rand=929114779]
                  >
                  > ________________________________________________________________________________
                  > Yahoo! Groups Links
                  > * To visit your group on the web, go to:
                  > http://groups.yahoo.com/group/nslu2-linux/
                  >  
                  > * To unsubscribe from this group, send an email to:
                  > nslu2-linux-unsubscribe@yahoogroups.com
                  >  
                  > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
                  >
                  >

                  --
                  "so don't tell us it can't be done, putting down what you don't know.
                  money isn't our god, integrity will free our souls" - Max Cavalera
                • dyoung8888
                  Note that I ve already done some heavy lifting for the native compiler package. its all in crosstool-native.mk It works up to the point where its supposed to
                  Message 8 of 20 , Dec 30, 2004
                  • 0 Attachment
                    Note that I've already done some heavy lifting for the native
                    compiler package. its all in crosstool-native.mk

                    It works up to the point where its supposed to make an ipk. Thats
                    the only part that is not done.

                    --- In nslu2-linux@yahoogroups.com, "tj_yang2001" <tj_yang2001@y...>
                    wrote:
                    >
                    > --- In nslu2-linux@yahoogroups.com, "tj_yang2001"
                    <tj_yang2001@y...>
                    > wrote:
                    > >
                    > > --- In nslu2-linux@yahoogroups.com, "jieglen@s..."
                    <jieglen@s...> wrote:
                    > > >
                    > > > Go for it! It's something I have considered, but I got
                    sidetracked
                    > > > doing other packages.
                    > > >
                    > >
                    > > Ok, I will do it as the exercise of my first ipkg package.
                    > > Thanks Rod for giving me the write access to cvs server.
                    > > I will post on this group to ask for review when it is done.
                    > >
                    > Here is more detail about the gcc package.
                    >
                    > I will use the materials(binaries,scripts) in this link
                    >
                    > http://www.nslu2-linux.org/wiki/Info/NativeNSLU2Toolchain
                    >
                    > to turn it into a package.
                    >
                    > > tj
                    > >
                    > > > Jeremy
                    > > >
                    > > >
                    > > >
                    > > > --- In nslu2-linux@yahoogroups.com, "tj_yang2001"
                    <tj_yang2001@y...>
                    > > > wrote:
                    > > > >
                    > > > > I followed the instuction and was able to install
                    > > > > native compiler on my nslu2. Looks this manual
                    > > > > process can be digitize into a package.
                    > > > >
                    > > > > Who is working on gcc packge for nslu2 ?
                    > > > >
                    > > > > I have my scond nslu2 coming and hope I can
                    > > > > do a "ipkg install gcc" next time ;)
                    > > > >
                    > > > > If no one is doing it, let me know. I will do it.
                    > > > >
                    > > > > tj
                  • tj_yang2001
                    ... compiler, on ... Thanks for more instruction. Understand, but my nslu2 ran away without an ip address after reboot on my 192.168.1.0 subnet. Perhaps I need
                    Message 9 of 20 , Dec 30, 2004
                    • 0 Attachment
                      --- In nslu2-linux@yahoogroups.com, "m. allan noah" <anoah@p...> wrote:
                      >
                      > try ./gcc -lm -o hell-fp hello-fp.c
                      >
                      > also, i thought he wanted you to test this with your native
                      compiler, on
                      > the slug itself?
                      >

                      Thanks for more instruction.

                      Understand, but my nslu2 ran away without an ip address
                      after reboot on my 192.168.1.0 subnet. Perhaps I need
                      to insert a serial port to get it back online ;<

                      tj
                      > allan
                      >
                      > On Thu, 30 Dec 2004, tj_yang2001 wrote:
                      >
                      > >
                      > > --- In nslu2-linux@yahoogroups.com, "r2004roellig" <r2004roellig@y...>
                      > > wrote:
                      > > >
                      > > > Hi tj,
                      > > >
                      > > > can you do me a favor and check whether the gcc you are going to
                      ipkg
                      > > > can handle floating point correctly?
                      > > >
                      > > > Just check out his hack:
                      > > > http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp.c
                      > > >
                      > > > The expected output is:
                      > > >
                      > >
                      http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp-output.txt
                      > > >
                      > > > As far as I have experienced all native tool chains so far fail
                      (in my
                      > > > with
                      > > > FP at the NSLU. I have seen lots of fails with tool chain
                      combinations
                      > >
                      > > Following is the log to compile hello-fp.c using crosstool chain
                      > > on a RHAS 3.0 box. Do you know what went wrong with following
                      > > logs ?
                      > >
                      > > tjyang@t-at4002> ./gcc -o hell-fp hello-fp.c
                      > > /tmp/ccmYHoDH.o(.text+0x50): In function `main':
                      > > : undefined reference to `log'
                      > > /tmp/ccmYHoDH.o(.text+0x164): In function `main':
                      > > : undefined reference to `exp'
                      > > /tmp/ccmYHoDH.o(.text+0x1a8): In function `main':
                      > > : undefined reference to `pow'
                      > > collect2: ld returned 1 exit status
                      > > tjayng@t-at4002> ./gcc -v
                      > > Reading specs from
                      > >
                      /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/lib/gcc/arm-softflo
                      > > at-linux-gnu/3.4.1/specs
                      > > Configured with:
                      > >
                      /opt/build/crosstool-0.28-rc37/build/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3
                      > > .3/gcc-3.4.1/configure
                      > > --target=arm-softfloat-linux-gnu --host=i686-host_pc-linux-gnu
                      > > --prefix=/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3
                      > > --with-float=soft
                      > >
                      --with-headers=/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-
                      > > softfloat-linux-gnu/include
                      > >
                      --with-local-prefix=/opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3
                      > > /arm-softfloat-linux-gnu
                      > > --disable-nls --enable-threads=posix --enable-symvers=gnu
                      > > --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared
                      > > --enable-c99 --enable-long-long
                      > > Thread model: posix
                      > > gcc version 3.4.1
                      > > tjyang@t-at4002> ./gcc -o hell-fp hello-fp.c
                      > > /tmp/cc4NLy8i.o(.text+0x50): In function `main':
                      > > : undefined reference to `log'
                      > > /tmp/cc4NLy8i.o(.text+0x164): In function `main':
                      > > : undefined reference to `exp'
                      > > /tmp/cc4NLy8i.o(.text+0x1a8): In function `main':
                      > > : undefined reference to `pow'
                      > > collect2: ld returned 1 exit status
                      > > tjyang@t-at4002> grep math hello-fp.c
                      > > #include
                      > >
                      </opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linu
                      > > x-gnu/include/math.h>
                      > > aty010@t-at4002> grep pow
                      > >
                      /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux
                      > > -gnu/include/math.h
                      > > aty010@t-at4002> grep pow
                      > >
                      /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux
                      > > -gnu/include/math.h
                      > > aty010@t-at4002> grep log
                      > >
                      /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux
                      > > -gnu/include/math.h
                      > > FP_ILOGB0 Expands to a value returned by `ilogb (0.0)'.
                      > > FP_ILOGBNAN Expands to a value returned by `ilogb (NAN)'.
                      > > # define M_LOG2E 1.4426950408889634074 /* log_2 e */
                      > > # define M_LOG10E 0.43429448190325182765 /* log_10 e */
                      > > # define M_LN2 0.69314718055994530942 /* log_e 2 */
                      > > # define M_LN10 2.30258509299404568402 /* log_e 10 */
                      > > # define M_LOG2El 1.4426950408889634073599246810018921L /*
                      > > log_2 e */
                      > > # define M_LOG10El 0.4342944819032518276511289189166051L /*
                      > > log_10 e */
                      > > # define M_LN2l 0.6931471805599453094172321214581766L /*
                      > > log_e 2 */
                      > > # define M_LN10l 2.3025850929940456840179914546843642L /*
                      > > log_e 10 */
                      > > tjyang@t-at4002> grep exp
                      > >
                      /opt/crosstool/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux
                      > > -gnu/include/math.h
                      > > to evaluate `float' expressions
                      > > to evaluate `double' expressions
                      > > tjyang@t-at4002>
                      > >
                      > >
                      > >
                      > >
                      > >
                      > >
                      > >
                      > >
                      > > [ Moderator Note: All static information is slowly moving to the
                      Wiki at
                      > > http://www.nslu2-linux.org ]
                      > >
                      > >
                      > > Yahoo! Groups Sponsor
                      > > ADVERTISEMENT
                      > > click here
                      > > [rand=929114779]
                      > >
                      > >
                      ________________________________________________________________________________
                      > > Yahoo! Groups Links
                      > > * To visit your group on the web, go to:
                      > > http://groups.yahoo.com/group/nslu2-linux/
                      > >
                      > > * To unsubscribe from this group, send an email to:
                      > > nslu2-linux-unsubscribe@yahoogroups.com
                      > >
                      > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
                      Service.
                      > >
                      > >
                      >
                      > --
                      > "so don't tell us it can't be done, putting down what you don't know.
                      > money isn't our god, integrity will free our souls" - Max Cavalera
                    • tj_yang2001
                      ... Can you do it ? I am just a newbie trying to gain experience. gcc is the foundation pacakge, better not in my hands. besides my nslu2 is up without an ip
                      Message 10 of 20 , Dec 30, 2004
                      • 0 Attachment
                        --- In nslu2-linux@yahoogroups.com, "dyoung8888" <dyoung8888@y...> wrote:
                        >
                        > Note that I've already done some heavy lifting for the native
                        > compiler package. its all in crosstool-native.mk
                        >
                        > It works up to the point where its supposed to make an ipk. Thats
                        > the only part that is not done.
                        >

                        Can you do it ? I am just a newbie trying to gain experience.
                        gcc is the foundation pacakge, better not in my hands. besides
                        my nslu2 is up without an ip address after reboot ;<

                        tj

                        > --- In nslu2-linux@yahoogroups.com, "tj_yang2001" <tj_yang2001@y...>
                        > wrote:
                        > >
                        > > --- In nslu2-linux@yahoogroups.com, "tj_yang2001"
                        > <tj_yang2001@y...>
                        > > wrote:
                        > > >
                        > > > --- In nslu2-linux@yahoogroups.com, "jieglen@s..."
                        > <jieglen@s...> wrote:
                        > > > >
                        > > > > Go for it! It's something I have considered, but I got
                        > sidetracked
                        > > > > doing other packages.
                        > > > >
                        > > >
                        > > > Ok, I will do it as the exercise of my first ipkg package.
                        > > > Thanks Rod for giving me the write access to cvs server.
                        > > > I will post on this group to ask for review when it is done.
                        > > >
                        > > Here is more detail about the gcc package.
                        > >
                        > > I will use the materials(binaries,scripts) in this link
                        > >
                        > > http://www.nslu2-linux.org/wiki/Info/NativeNSLU2Toolchain
                        > >
                        > > to turn it into a package.
                        > >
                        > > > tj
                        > > >
                        > > > > Jeremy
                        > > > >
                        > > > >
                        > > > >
                        > > > > --- In nslu2-linux@yahoogroups.com, "tj_yang2001"
                        > <tj_yang2001@y...>
                        > > > > wrote:
                        > > > > >
                        > > > > > I followed the instuction and was able to install
                        > > > > > native compiler on my nslu2. Looks this manual
                        > > > > > process can be digitize into a package.
                        > > > > >
                        > > > > > Who is working on gcc packge for nslu2 ?
                        > > > > >
                        > > > > > I have my scond nslu2 coming and hope I can
                        > > > > > do a "ipkg install gcc" next time ;)
                        > > > > >
                        > > > > > If no one is doing it, let me know. I will do it.
                        > > > > >
                        > > > > > tj
                      • dyoung8888
                        ... Its on my todo list. I ve been busy with getting unslung-4.x out; but the main reason it hasnt been touched in 2 weeks is it does NOT pass the fp tests
                        Message 11 of 20 , Dec 30, 2004
                        • 0 Attachment
                          >
                          > Can you do it ? I am just a newbie trying to gain experience.
                          > gcc is the foundation pacakge, better not in my hands. besides
                          > my nslu2 is up without an ip address after reboot ;<
                          >

                          Its on my todo list. I've been busy with getting unslung-4.x out;
                          but the main reason it hasnt been touched in 2 weeks is it does NOT
                          pass the fp tests perfectly.

                          It all works except for the -f test. I was hoping that would get
                          sorted out first. Also note that our crosstool cross compiler give
                          the same faulty result for the -f test.
                        • Rod Whitby
                          ... tjyang: you should be able to do it. You just need to copy everything into the right place in the ipk_dir and let the makefile do the rest ... dyoung is
                          Message 12 of 20 , Dec 30, 2004
                          • 0 Attachment
                            On Fri, 31 Dec 2004 02:39:13 -0000, dyoung8888 <dyoung8888@...> wrote:
                            >
                            >
                            > >
                            > > Can you do it ? I am just a newbie trying to gain experience.
                            > > gcc is the foundation pacakge, better not in my hands. besides
                            > > my nslu2 is up without an ip address after reboot ;<

                            tjyang: you should be able to do it. You just need to copy everything
                            into the right place in the ipk_dir and let the makefile do the rest
                            ...

                            dyoung is busy with the switchbox reimplementation. He's doing it
                            because I have an imminent arrival of a second child, so I'm not
                            starting anything that I can't finish within 10 minutes.

                            -- Rod
                          • tj_yang2001
                            ... My only avaiable machine is a slow redhat box with dual CPUs at home. I need to jump another hoop to get my fast machine at work to have cvs pass firewall.
                            Message 13 of 20 , Dec 30, 2004
                            • 0 Attachment
                              --- In nslu2-linux@yahoogroups.com, Rod Whitby <list.yahoo@r...> wrote:
                              > On Fri, 31 Dec 2004 02:39:13 -0000, dyoung8888 <dyoung8888@y...> wrote:
                              > >
                              > >
                              > > >
                              > > > Can you do it ? I am just a newbie trying to gain experience.
                              > > > gcc is the foundation pacakge, better not in my hands. besides
                              > > > my nslu2 is up without an ip address after reboot ;<
                              >
                              > tjyang: you should be able to do it. You just need to copy everything
                              > into the right place in the ipk_dir and let the makefile do the rest
                              > ...

                              My only avaiable machine is a slow redhat box with dual CPUs at home.
                              I need to jump another hoop to get my fast machine at work to have
                              cvs pass firewall. This will be a later work.

                              On my machine at home with direct internet connection , I will see if
                              I can "make crosstool-native" after "toolchain" is done.

                              I have a similar Makefile at work to do similiar things, nslu2's
                              Makefile is much cleaner than mine. I will copy some of the
                              clean/better syntax to my makefile at work :)


                              >
                              > dyoung is busy with the switchbox reimplementation. He's doing it
                              > because I have an imminent arrival of a second child, so I'm not
                              > starting anything that I can't finish within 10 minutes.
                              >

                              I am interested to get on board too. it is just the canadian crossing
                              thing is quite scary. Not there, never did it before. The best milage
                              I have is to use Sun WorkShop compiler to compile gcc.

                              I feel guilty the other day to drag you to help me out for hours.

                              later

                              > -- Rod
                            • tj_yang2001
                              ... I happened to have another version when trying out ./demo.sh from 0.28-37 on a 8 CPUS RH box at work. I will try the gcc to see if it can past -f test.
                              Message 14 of 20 , Dec 30, 2004
                              • 0 Attachment
                                --- In nslu2-linux@yahoogroups.com, "dyoung8888" <dyoung8888@y...> wrote:
                                >
                                >
                                > >
                                > > Can you do it ? I am just a newbie trying to gain experience.
                                > > gcc is the foundation pacakge, better not in my hands. besides
                                > > my nslu2 is up without an ip address after reboot ;<
                                > >
                                >
                                > Its on my todo list. I've been busy with getting unslung-4.x out;
                                > but the main reason it hasnt been touched in 2 weeks is it does NOT
                                > pass the fp tests perfectly.
                                >
                                > It all works except for the -f test. I was hoping that would get
                                > sorted out first. Also note that our crosstool cross compiler give
                                > the same faulty result for the -f test.

                                I happened to have another version when trying out "./demo.sh" from
                                0.28-37 on a 8 CPUS RH box at work. I will try the gcc to see if it
                                can past -f test.

                                tj
                              • tj_yang2001
                                ... In crosstool.mk, $(CROSSTOOL_IPK): $(CROSSTOOL_BUILD_DIR)/.built rm -rf $(CROSSTOOL_IPK_DIR) $(CROSSTOOL_IPK) install -d
                                Message 15 of 20 , Dec 30, 2004
                                • 0 Attachment
                                  --- In nslu2-linux@yahoogroups.com, "dyoung8888" <dyoung8888@y...> wrote:
                                  >
                                  > Note that I've already done some heavy lifting for the native
                                  > compiler package. its all in crosstool-native.mk
                                  >
                                  > It works up to the point where its supposed to make an ipk. Thats
                                  > the only part that is not done.
                                  >
                                  In crosstool.mk,

                                  <snip>
                                  $(CROSSTOOL_IPK): $(CROSSTOOL_BUILD_DIR)/.built
                                  rm -rf $(CROSSTOOL_IPK_DIR) $(CROSSTOOL_IPK)
                                  install -d $(CROSSTOOL_IPK_DIR)/opt/bin
                                  $(TARGET_STRIP) $(CROSSTOOL_BUILD_DIR)/crosstool -o
                                  $(CROSSTOOL_IPK_DIR)/opt/bin/crosstool
                                  install -d $(CROSSTOOL_IPK_DIR)/CONTROL
                                  install -m 644 $(CROSSTOOL_SOURCE_DIR)/control
                                  $(CROSSTOOL_IPK_DIR)/CONTROL/control
                                  cd $(BUILD_DIR); $(IPKG_BUILD) $(CROSSTOOL_IPK_DIR)
                                  ^^^^^^^^^^^
                                  Looks like it is already can build the package.

                                  tj
                                • Lennert Buytenhek
                                  ... Aha! It doesn t negate properly. The abs operation is probably also broken. I would ask you to apply this kernel patch:
                                  Message 16 of 20 , Dec 31, 2004
                                  • 0 Attachment
                                    On Thu, Dec 30, 2004 at 08:54:05PM -0000, r2004roellig wrote:

                                    > The expected output is:
                                    > http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp-output.txt

                                    Aha! It doesn't negate properly. The 'abs' operation is probably
                                    also broken.

                                    I would ask you to apply this kernel patch:

                                    http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-October/024909.html

                                    But that's going to be rather hard in case of the NSLU2. Anyone got a
                                    2.6 kernel running on the thing yet?


                                    cheers,
                                    Lennert
                                  • Lennert Buytenhek
                                    ... I ve managed to compile a native gcc using qemu ARM emulation on a x86 box. You just need an ARM chroot and then chroot into it using qemu-arm
                                    Message 17 of 20 , Dec 31, 2004
                                    • 0 Attachment
                                      On Fri, Dec 31, 2004 at 03:18:03AM -0000, tj_yang2001 wrote:

                                      > > dyoung is busy with the switchbox reimplementation. He's doing it
                                      > > because I have an imminent arrival of a second child, so I'm not
                                      > > starting anything that I can't finish within 10 minutes.
                                      >
                                      > I am interested to get on board too. it is just the canadian crossing
                                      > thing is quite scary. Not there, never did it before. The best milage
                                      > I have is to use Sun WorkShop compiler to compile gcc.

                                      I've managed to compile a 'native' gcc using qemu ARM emulation on
                                      a x86 box. You just need an ARM chroot and then chroot into it using
                                      qemu-arm (qemu-armeb in this case.)

                                      This way you can just do "./configure && make && make install", no
                                      need for fussing around with Canadian builds.


                                      cheers,
                                      Lennert
                                    • r2004roellig
                                      Hi Lennert, this sounds like a good explanation for the floating point sign issues with NWFPE hardfloat. Due to those issues I have compiled my cross compilers
                                      Message 18 of 20 , Dec 31, 2004
                                      • 0 Attachment
                                        Hi Lennert,

                                        this sounds like a good explanation for the floating point sign issues
                                        with NWFPE hardfloat. Due to those issues I have compiled my cross
                                        compilers to do softfloat only...

                                        Your patch is for kernel 2.6.x, however in this portion of the kernel
                                        there are no differences to NSLU's 2.4.22 kernel. Thus I think the
                                        patch should work for 2.4.22 too.

                                        Here is what I'll do next:
                                        - recompile unslung 3.16 with patched kernel
                                        - give hello-fp.c another try
                                        - if successful compile perl with native toolchain
                                        - if perl compiles & runs flawless @ NSLU with patched kernel
                                        I suggest that the patch should be driven into OE. Maybe then
                                        all openslug and unslung 4.x developers/users could benefit from
                                        working fp.

                                        To run the tests will take me until Sunday. I need to go party now :)

                                        Rene.



                                        --- In nslu2-linux@yahoogroups.com, Lennert Buytenhek <buytenh@w...>
                                        wrote:
                                        > On Thu, Dec 30, 2004 at 08:54:05PM -0000, r2004roellig wrote:
                                        >
                                        > > The expected output is:
                                        > >
                                        http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp-output.txt
                                        >
                                        > Aha! It doesn't negate properly. The 'abs' operation is probably
                                        > also broken.
                                        >
                                        > I would ask you to apply this kernel patch:
                                        >
                                        >
                                        http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-October/024909.html
                                        >
                                        > But that's going to be rather hard in case of the NSLU2. Anyone got a
                                        > 2.6 kernel running on the thing yet?
                                        >
                                        >
                                        > cheers,
                                        > Lennert
                                      • r2004roellig
                                        Hi Lennert et all, based on your kernel patch suggestion for the Netwinder floating point issues I have performed these steps: - recompiled unslung 3.16 with
                                        Message 19 of 20 , Jan 1, 2005
                                        • 0 Attachment
                                          Hi Lennert et all,

                                          based on your kernel patch suggestion for the Netwinder floating
                                          point issues I have performed these steps:

                                          - recompiled unslung 3.16 with patched kernel (OE build) -> PASS
                                          - gave hello-fp.c another try (esp. sign and abs tests) -> PASS
                                          - compiled perl with native compiler -> PASS
                                          - expecuted perl test suite -> PASS 100.0%

                                          Although perl might not be a 100% test for floating point calculations
                                          I think fp looks pretty robust now. Of course more comprehensive fp tests
                                          are required. However at this point I would say this is a great break
                                          through! Thanks for your help.

                                          I'll request, that one of the NSLU2 OE developers will put the
                                          patch into OE!

                                          More on Perl (linked against shlibs with dynaloader support) to
                                          follow in another message.

                                          Thanks,
                                          Rene.


                                          --- In nslu2-linux@yahoogroups.com, "r2004roellig" <r2004roellig@y...>
                                          wrote:
                                          >
                                          > Hi Lennert,
                                          >
                                          > this sounds like a good explanation for the floating point sign issues
                                          > with NWFPE hardfloat. Due to those issues I have compiled my cross
                                          > compilers to do softfloat only...
                                          >
                                          > Your patch is for kernel 2.6.x, however in this portion of the kernel
                                          > there are no differences to NSLU's 2.4.22 kernel. Thus I think the
                                          > patch should work for 2.4.22 too.
                                          >
                                          > Here is what I'll do next:
                                          > - recompile unslung 3.16 with patched kernel
                                          > - give hello-fp.c another try
                                          > - if successful compile perl with native toolchain
                                          > - if perl compiles & runs flawless @ NSLU with patched kernel
                                          > I suggest that the patch should be driven into OE. Maybe then
                                          > all openslug and unslung 4.x developers/users could benefit from
                                          > working fp.
                                          >
                                          > To run the tests will take me until Sunday. I need to go party now :)
                                          >
                                          > Rene.
                                          >
                                          >
                                          >
                                          > --- In nslu2-linux@yahoogroups.com, Lennert Buytenhek <buytenh@w...>
                                          > wrote:
                                          > > On Thu, Dec 30, 2004 at 08:54:05PM -0000, r2004roellig wrote:
                                          > >
                                          > > > The expected output is:
                                          > > >
                                          > http://www.familie-roellig.de/public/nslu2/toolchain/hello-fp-output.txt
                                          > >
                                          > > Aha! It doesn't negate properly. The 'abs' operation is probably
                                          > > also broken.
                                          > >
                                          > > I would ask you to apply this kernel patch:
                                          > >
                                          > >
                                          >
                                          http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-October/024909.html
                                          > >
                                          > > But that's going to be rather hard in case of the NSLU2. Anyone got a
                                          > > 2.6 kernel running on the thing yet?
                                          > >
                                          > >
                                          > > cheers,
                                          > > Lennert
                                        • Rod Whitby
                                          ... Done. Can you test the 3.17 built from OE? When someone reports that 3.17 built from source fixes the problem, then we will release an updated binary. --
                                          Message 20 of 20 , Jan 1, 2005
                                          • 0 Attachment
                                            On Sun, 02 Jan 2005 00:13:48 -0000, r2004roellig <r2004roellig@...> wrote:
                                            > I'll request, that one of the NSLU2 OE developers will put the
                                            > patch into OE!

                                            Done.

                                            Can you test the 3.17 built from OE? When someone reports that 3.17
                                            built from source fixes the problem, then we will release an updated
                                            binary.

                                            -- Rod
                                          Your message has been successfully submitted and would be delivered to recipients shortly.