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

Problem doing step #12 in docs...

Expand Messages
  • nrkkflower
    Ok.. I got up to step 12 without too much fiddling (I ve not used Linux since before Redhat existed and am a bit rusty, though I m well versed with Solaris,
    Message 1 of 3 , Oct 5, 2004
    View Source
    • 0 Attachment
      Ok.. I got up to step 12 without too much fiddling (I've not used
      Linux since before Redhat existed and am a bit rusty, though I'm well
      versed with Solaris, HP-UX, AIX and OS-X).. Anyway, the output from
      building the full cross compiler is as follows -- I don't *think* this
      is what was supposed to happen is it?

      If it matters, I'm using a freshly installed Fedora Core 1 (FC2
      wouldn't even boot on my machine for some reason) Linux...

      -- Rick

      P.S. In the last step of item #11, I had to change "i586" to "i386"
      for my machine for some reason and had to adjust the paths that the
      RPM's were located in as well -- they weren't in
      /usr/src/packages/RPMs on my machine -- perhaps an oddity of FC1?

      Links are now set up to build a cross-compiler for
      powerpc-hdhlan-linux-gnu
      from i686-pc-linux-gnu.
      updating cache ../config.cache
      creating ./config.status
      creating Makefile
      creating intl/Makefile
      creating po/Makefile.in
      creating fixinc/Makefile
      creating cp/Makefile
      creating f/Makefile
      creating java/Makefile
      creating auto-host.h
      linking ../../gcc/intl/libgettext.h to intl/libintl.h
      Merged x-linux.
      Merged rs6000/t-ppc and t-linux and rs6000/t-ppccomm and
      t-install-cpp.
      Created `objc/Makefile'.
      creating libintl.h
      Configuring etc...
      loading cache ../config.cache
      checking for a BSD compatible install... (cached) /usr/bin/install -c
      creating ./config.status
      creating Makefile
      sh-2.05b$ make >&world.log
      sh-2.05b$ tail -100 world.log
      rm -f g++-cross
      cp g++ g++-cross
      rm -f cxxmain.c
      ln -s ../../gcc/../libiberty/cplus-dem.c cxxmain.c
      gcc -c -DMAIN -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2
      -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/config -I../../gcc/..
      /include \
      -DVERSION=\"2.95.3\" cxxmain.c
      cxxmain.c: In function `main':
      cxxmain.c:4527: warning: assignment discards qualifiers from pointer
      target type
      cxxmain.c:4530: warning: assignment discards qualifiers from pointer
      target type
      gcc -o c++filt -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2
      -DHAVE_CONFIG_H \
      cxxmain.o underscore.o obstack.o ../libiberty/libiberty.a
      case "c proto gcov c++ f77 java objc" in \
      *[fF]77*) touch lang-f77;; \
      *) rm -f lang-f77;; \
      esac
      if [ -f lang-f77 ]; then \
      gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H
      -I. -I../../gcc -I../../gcc/config -I../../gcc/../include ../..
      /gcc/f/g77spec.c; \
      else true; fi
      case "c proto gcov c++ f77 java objc" in \
      *[fF]77*) touch lang-f77;; \
      *) rm -f lang-f77;; \
      esac
      if [ -f lang-f77 ]; then \
      gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H
      -I. -I../../gcc -I../../gcc/config -I../../gcc/../include -o
      g77version.o \
      ../../gcc/f/version.c; \
      else true; fi
      if [ -f lang-f77 ]; then \
      gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -o
      g77 gcc.o g77spec.o g77version.o \
      version.o prefix.o intl.o obstack.o ../libiberty/libiberty.
      a; \
      else true; fi
      ../libiberty/libiberty.a(choose-temp.o)(.text+0x113): In function
      `choose_temp_base':
      ../../libiberty/choose-temp.c:138: warning: the use of `mktemp' is
      dangerous, better use `mkstemp'
      if [ -f lang-f77 ]; then \
      rm -f g77-cross; \
      cp g77 g77-cross; \
      else true; fi
      rm -f gcj-cross
      cp gcj gcj-cross
      /Users/build/gcc-2.95.3/obj-cross/texinfo/makeinfo/makeinfo -I../..
      /gcc -o cpp.info ../../gcc/cpp.texi
      Making info file `cpp.info' from `../../gcc/cpp.texi'.
      /Users/build/gcc-2.95.3/obj-cross/texinfo/makeinfo/makeinfo -I../..
      /gcc -o gcc.info ../../gcc/gcc.texi
      Making info file `gcc.info' from `../../gcc/gcc.texi'.
      case "c proto gcov c++ f77 java objc" in \
      *[fF]77*) touch lang-f77;; \
      *) rm -f lang-f77;; \
      esac
      if [ -f lang-f77 ]; then \
      rm -f ../../gcc/f/g77.info-*; \
      /Users/build/gcc-2.95.3/obj-cross/texinfo/makeinfo/makeinfo -I../..
      /gcc/f -o f/g77.info ../../gcc/f/g77.texi; \
      else true; fi
      Making info file `f/g77.info' from `../../gcc/f/g77.texi'.
      make[1]: Leaving directory `/Users/build/gcc-2.95.3/obj-cross/gcc'
      Configuring in powerpc-hdhlan-linux-gnu/libio
      Invalid configuration
      `/usr/tools/linkstation/linkstation_root/usr/lib': machine
      `/usr/tools/linkstation/linkstation_root/usr/lib' not recognized
      Unrecognized target system name
      /usr/tools/linkstation/linkstation_root/usr/lib.
      Configuring in powerpc-hdhlan-linux-gnu/libiberty
      configure: warning: /usr/tools/linkstation/linkstation_root/usr/lib:
      invalid host type
      creating cache ./config.cache
      checking host system type... powerpc-hdhlan-linux-gnu
      checking build system type... i686-pc-linux-gnu
      checking for powerpc-hdhlan-linux-gnu-ar...
      powerpc-hdhlan-linux-gnu-ar
      checking for powerpc-hdhlan-linux-gnu-ranlib...
      powerpc-hdhlan-linux-gnu-ranlib
      checking for gcc... /Users/build/gcc-2.95.3/obj-cross/gcc/xgcc
      -B/Users/build/gcc-2.95.3/obj-cross/gcc/
      -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/
      checking whether we are using GNU C... yes
      checking whether /Users/build/gcc-2.95.3/obj-cross/gcc/xgcc
      -B/Users/build/gcc-2.95.3/obj-cross/gcc/
      -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/ accepts -g...
      yes
      checking for POSIXized ISC... no
      checking for a BSD compatible install... /usr/bin/install -c
      checking how to run the C preprocessor... /Users/build/gcc-2.95.
      3/obj-cross/gcc/xgcc -B/Users/build/gcc-2.95.3/obj-cross/gcc/
      -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/ -E
      checking for sys/file.h... yes
      checking for sys/param.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for unistd.h... yes
      checking for strings.h... yes
      checking for sys/time.h... yes
      checking for sys/resource.h... yes
      checking for sys/wait.h that is POSIX.1 compatible... yes
      checking whether the C compiler (/Users/build/gcc-2.95.
      3/obj-cross/gcc/xgcc -B/Users/build/gcc-2.95.3/obj-cross/gcc/
      -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/ -g -O2 ) works.
      .. no
      configure: error: installation or configuration problem: C compiler
      cannot create executables.
      Configuring in powerpc-hdhlan-linux-gnu/libstdc++
      Invalid configuration
      `/usr/tools/linkstation/linkstation_root/usr/lib': machine
      `/usr/tools/linkstation/linkstation_root/usr/lib' not recognized
      Unrecognized target system name
      /usr/tools/linkstation/linkstation_root/usr/lib.
      Configuring in powerpc-hdhlan-linux-gnu/libf2c
      configure: warning: /usr/tools/linkstation/linkstation_root/usr/lib:
      invalid host type
      creating cache ./config.cache
      checking if compiler f771 has been built... yes
      checking for gcc... /Users/build/gcc-2.95.3/obj-cross/gcc/xgcc
      -B/Users/build/gcc-2.95.3/obj-cross/gcc/
      -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/
      checking whether the C compiler (/Users/build/gcc-2.95.
      3/obj-cross/gcc/xgcc -B/Users/build/gcc-2.95.3/obj-cross/gcc/
      -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/ -g -O2 ) works.
      .. no
      configure: error: installation or configuration problem: C compiler
      cannot create executables.
      Configuring in powerpc-hdhlan-linux-gnu/libchill
      configure: warning: /usr/tools/linkstation/linkstation_root/usr/lib:
      invalid host type
      creating cache ./config.cache
      checking if compiler cc1chill has been built... no
      Configuring in powerpc-hdhlan-linux-gnu/libobjc
      configure: warning: /usr/tools/linkstation/linkstation_root/usr/lib:
      invalid host type
      creating cache ./config.cache
      checking if compiler cc1obj has been built... yes
      checking for gcc... /Users/build/gcc-2.95.3/obj-cross/gcc/xgcc
      -B/Users/build/gcc-2.95.3/obj-cross/gcc/
      -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/
      checking whether the C compiler (/Users/build/gcc-2.95.
      3/obj-cross/gcc/xgcc -B/Users/build/gcc-2.95.3/obj-cross/gcc/
      -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/ -g -O2 ) works.
      .. no
      configure: error: installation or configuration problem: C compiler
      cannot create executables.
    • casper_theghostwriter
      ... i m new here, and I don t have a linkstation (yet), but I have worked on a project developing a PPC8245 single board computer. I think you re all doing a
      Message 2 of 3 , Oct 5, 2004
      View Source
      • 0 Attachment
        --- In LinkStation_General@yahoogroups.com, "nrkkflower" <rickf@c...> wrote:
        >
        > Ok.. I got up to step 12 without too much fiddling (I've not used
        > Linux since before Redhat existed and am a bit rusty, though I'm well
        > versed with Solaris, HP-UX, AIX and OS-X).. Anyway, the output from
        > building the full cross compiler is as follows -- I don't *think* this
        > is what was supposed to happen is it?
        >

        i'm new here, and I don't have a linkstation (yet), but I have
        worked on a project developing a PPC8245 single board computer.

        I think you're all doing a lot of extra work building cross and native
        compilers. This is already done. There's an open source Embedded
        Linux Development Kit (ELDK) used by the pros. <http://www.denx.de>

        You get that and install and you've got an x86 to PPC824x cross
        compiler along with PPC 824x native toolchains. This puts you way
        ahead of the game and you don't have to mess with compiling compilers.

        ghostwriter
      • dtaub001
        Double check the configure parms for this step? The in --with-libs is necessary... Derek
        Message 3 of 3 , Oct 5, 2004
        View Source
        • 0 Attachment
          Double check the configure parms for this step? The \ in --with-libs
          is necessary...

          Derek


          --- In LinkStation_General@yahoogroups.com, "nrkkflower" <rickf@c...>
          wrote:
          >
          > Ok.. I got up to step 12 without too much fiddling (I've not used
          > Linux since before Redhat existed and am a bit rusty, though I'm well
          > versed with Solaris, HP-UX, AIX and OS-X).. Anyway, the output from
          > building the full cross compiler is as follows -- I don't *think* this
          > is what was supposed to happen is it?
          >
          > If it matters, I'm using a freshly installed Fedora Core 1 (FC2
          > wouldn't even boot on my machine for some reason) Linux...
          >
          > -- Rick
          >
          > P.S. In the last step of item #11, I had to change "i586" to "i386"
          > for my machine for some reason and had to adjust the paths that the
          > RPM's were located in as well -- they weren't in
          > /usr/src/packages/RPMs on my machine -- perhaps an oddity of FC1?
          >
          > Links are now set up to build a cross-compiler for
          > powerpc-hdhlan-linux-gnu
          > from i686-pc-linux-gnu.
          > updating cache ../config.cache
          > creating ./config.status
          > creating Makefile
          > creating intl/Makefile
          > creating po/Makefile.in
          > creating fixinc/Makefile
          > creating cp/Makefile
          > creating f/Makefile
          > creating java/Makefile
          > creating auto-host.h
          > linking ../../gcc/intl/libgettext.h to intl/libintl.h
          > Merged x-linux.
          > Merged rs6000/t-ppc and t-linux and rs6000/t-ppccomm and
          > t-install-cpp.
          > Created `objc/Makefile'.
          > creating libintl.h
          > Configuring etc...
          > loading cache ../config.cache
          > checking for a BSD compatible install... (cached) /usr/bin/install -c
          > creating ./config.status
          > creating Makefile
          > sh-2.05b$ make >&world.log
          > sh-2.05b$ tail -100 world.log
          > rm -f g++-cross
          > cp g++ g++-cross
          > rm -f cxxmain.c
          > ln -s ../../gcc/../libiberty/cplus-dem.c cxxmain.c
          > gcc -c -DMAIN -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2
          > -DHAVE_CONFIG_H -I. -I../../gcc -I../../gcc/config -I../../gcc/..
          > /include \
          > -DVERSION=\"2.95.3\" cxxmain.c
          > cxxmain.c: In function `main':
          > cxxmain.c:4527: warning: assignment discards qualifiers from pointer
          > target type
          > cxxmain.c:4530: warning: assignment discards qualifiers from pointer
          > target type
          > gcc -o c++filt -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2
          > -DHAVE_CONFIG_H \
          > cxxmain.o underscore.o obstack.o ../libiberty/libiberty.a
          > case "c proto gcov c++ f77 java objc" in \
          > *[fF]77*) touch lang-f77;; \
          > *) rm -f lang-f77;; \
          > esac
          > if [ -f lang-f77 ]; then \
          > gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H
          > -I. -I../../gcc -I../../gcc/config -I../../gcc/../include ../..
          > /gcc/f/g77spec.c; \
          > else true; fi
          > case "c proto gcov c++ f77 java objc" in \
          > *[fF]77*) touch lang-f77;; \
          > *) rm -f lang-f77;; \
          > esac
          > if [ -f lang-f77 ]; then \
          > gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H
          > -I. -I../../gcc -I../../gcc/config -I../../gcc/../include -o
          > g77version.o \
          > ../../gcc/f/version.c; \
          > else true; fi
          > if [ -f lang-f77 ]; then \
          > gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -o
          > g77 gcc.o g77spec.o g77version.o \
          > version.o prefix.o intl.o obstack.o ../libiberty/libiberty.
          > a; \
          > else true; fi
          > ../libiberty/libiberty.a(choose-temp.o)(.text+0x113): In function
          > `choose_temp_base':
          > ../../libiberty/choose-temp.c:138: warning: the use of `mktemp' is
          > dangerous, better use `mkstemp'
          > if [ -f lang-f77 ]; then \
          > rm -f g77-cross; \
          > cp g77 g77-cross; \
          > else true; fi
          > rm -f gcj-cross
          > cp gcj gcj-cross
          > /Users/build/gcc-2.95.3/obj-cross/texinfo/makeinfo/makeinfo -I../..
          > /gcc -o cpp.info ../../gcc/cpp.texi
          > Making info file `cpp.info' from `../../gcc/cpp.texi'.
          > /Users/build/gcc-2.95.3/obj-cross/texinfo/makeinfo/makeinfo -I../..
          > /gcc -o gcc.info ../../gcc/gcc.texi
          > Making info file `gcc.info' from `../../gcc/gcc.texi'.
          > case "c proto gcov c++ f77 java objc" in \
          > *[fF]77*) touch lang-f77;; \
          > *) rm -f lang-f77;; \
          > esac
          > if [ -f lang-f77 ]; then \
          > rm -f ../../gcc/f/g77.info-*; \
          > /Users/build/gcc-2.95.3/obj-cross/texinfo/makeinfo/makeinfo -I../..
          > /gcc/f -o f/g77.info ../../gcc/f/g77.texi; \
          > else true; fi
          > Making info file `f/g77.info' from `../../gcc/f/g77.texi'.
          > make[1]: Leaving directory `/Users/build/gcc-2.95.3/obj-cross/gcc'
          > Configuring in powerpc-hdhlan-linux-gnu/libio
          > Invalid configuration
          > `/usr/tools/linkstation/linkstation_root/usr/lib': machine
          > `/usr/tools/linkstation/linkstation_root/usr/lib' not recognized
          > Unrecognized target system name
          > /usr/tools/linkstation/linkstation_root/usr/lib.
          > Configuring in powerpc-hdhlan-linux-gnu/libiberty
          > configure: warning: /usr/tools/linkstation/linkstation_root/usr/lib:
          > invalid host type
          > creating cache ./config.cache
          > checking host system type... powerpc-hdhlan-linux-gnu
          > checking build system type... i686-pc-linux-gnu
          > checking for powerpc-hdhlan-linux-gnu-ar...
          > powerpc-hdhlan-linux-gnu-ar
          > checking for powerpc-hdhlan-linux-gnu-ranlib...
          > powerpc-hdhlan-linux-gnu-ranlib
          > checking for gcc... /Users/build/gcc-2.95.3/obj-cross/gcc/xgcc
          > -B/Users/build/gcc-2.95.3/obj-cross/gcc/
          > -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/
          > checking whether we are using GNU C... yes
          > checking whether /Users/build/gcc-2.95.3/obj-cross/gcc/xgcc
          > -B/Users/build/gcc-2.95.3/obj-cross/gcc/
          > -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/ accepts -g...
          > yes
          > checking for POSIXized ISC... no
          > checking for a BSD compatible install... /usr/bin/install -c
          > checking how to run the C preprocessor... /Users/build/gcc-2.95.
          > 3/obj-cross/gcc/xgcc -B/Users/build/gcc-2.95.3/obj-cross/gcc/
          > -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/ -E
          > checking for sys/file.h... yes
          > checking for sys/param.h... yes
          > checking for stdlib.h... yes
          > checking for string.h... yes
          > checking for unistd.h... yes
          > checking for strings.h... yes
          > checking for sys/time.h... yes
          > checking for sys/resource.h... yes
          > checking for sys/wait.h that is POSIX.1 compatible... yes
          > checking whether the C compiler (/Users/build/gcc-2.95.
          > 3/obj-cross/gcc/xgcc -B/Users/build/gcc-2.95.3/obj-cross/gcc/
          > -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/ -g -O2 ) works.
          > .. no
          > configure: error: installation or configuration problem: C compiler
          > cannot create executables.
          > Configuring in powerpc-hdhlan-linux-gnu/libstdc++
          > Invalid configuration
          > `/usr/tools/linkstation/linkstation_root/usr/lib': machine
          > `/usr/tools/linkstation/linkstation_root/usr/lib' not recognized
          > Unrecognized target system name
          > /usr/tools/linkstation/linkstation_root/usr/lib.
          > Configuring in powerpc-hdhlan-linux-gnu/libf2c
          > configure: warning: /usr/tools/linkstation/linkstation_root/usr/lib:
          > invalid host type
          > creating cache ./config.cache
          > checking if compiler f771 has been built... yes
          > checking for gcc... /Users/build/gcc-2.95.3/obj-cross/gcc/xgcc
          > -B/Users/build/gcc-2.95.3/obj-cross/gcc/
          > -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/
          > checking whether the C compiler (/Users/build/gcc-2.95.
          > 3/obj-cross/gcc/xgcc -B/Users/build/gcc-2.95.3/obj-cross/gcc/
          > -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/ -g -O2 ) works.
          > .. no
          > configure: error: installation or configuration problem: C compiler
          > cannot create executables.
          > Configuring in powerpc-hdhlan-linux-gnu/libchill
          > configure: warning: /usr/tools/linkstation/linkstation_root/usr/lib:
          > invalid host type
          > creating cache ./config.cache
          > checking if compiler cc1chill has been built... no
          > Configuring in powerpc-hdhlan-linux-gnu/libobjc
          > configure: warning: /usr/tools/linkstation/linkstation_root/usr/lib:
          > invalid host type
          > creating cache ./config.cache
          > checking if compiler cc1obj has been built... yes
          > checking for gcc... /Users/build/gcc-2.95.3/obj-cross/gcc/xgcc
          > -B/Users/build/gcc-2.95.3/obj-cross/gcc/
          > -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/
          > checking whether the C compiler (/Users/build/gcc-2.95.
          > 3/obj-cross/gcc/xgcc -B/Users/build/gcc-2.95.3/obj-cross/gcc/
          > -B/usr/tools/linkstation/powerpc-hdhlan-linux-gnu/bin/ -g -O2 ) works.
          > .. no
          > configure: error: installation or configuration problem: C compiler
          > cannot create executables.
        Your message has been successfully submitted and would be delivered to recipients shortly.