Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, I am trying to cross compile gcc-4.1.0 ( I have also tried 3.3.2) for powerpc using a Freebsd 6.1 box. I configure using: var/gcc-4.1.0/configure --host=i386-freebsd --target=powerpc-linux --prefix=/var/gcc --disable-shared ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    4

    Gcc


    Hi all,

    I am trying to cross compile gcc-4.1.0 ( I have also
    tried 3.3.2) for powerpc using a Freebsd 6.1 box. I
    configure using:

    var/gcc-4.1.0/configure --host=i386-freebsd
    --target=powerpc-linux --prefix=/var/gcc
    --disable-shared --disable-threads
    --enable-languages=c,c++ --without-fp

    and everything seems ok. Then I type make all-gcc
    install-gcc and the make begins.

    After a while I get the following error:

    srcdir="/var/gcc-4.1.0/fixincludes" /bin/sh
    /var/gcc-4.1.0/fixincludes/mkfixinc.sh
    powerpc-unknown-linux-gnu
    sed -e 's/@gcc_version@//' < > mkheadersT
    Syntax error: redirection unexpected
    *** Error code 2

    Stop in /var/built-gcc/build-i386-freebsd/fixincludes.
    *** Error code 1

    I have tried to configure using other commands like:

    /var/gcc-4.1.0/configure --target=powerpc-linux
    --prefix=/var/gcc --disable-shared --disable-threads
    --enable-languages=c --with-newlib

    but nothing different happens.

    Any ideas?

    thanks in advance
    Andreas Sotirakopoulos
    Edit/Delete Message

  2. #2
    Just Joined!
    Join Date
    Mar 2007
    Posts
    1
    Quote Originally Posted by idipous
    Hi all,

    I am trying to cross compile gcc-4.1.0 ( I have also
    tried 3.3.2) for powerpc using a Freebsd 6.1 box. I
    configure using:

    var/gcc-4.1.0/configure --host=i386-freebsd
    --target=powerpc-linux --prefix=/var/gcc
    --disable-shared --disable-threads
    --enable-languages=c,c++ --without-fp

    and everything seems ok. Then I type make all-gcc
    install-gcc and the make begins.

    After a while I get the following error:

    srcdir="/var/gcc-4.1.0/fixincludes" /bin/sh
    /var/gcc-4.1.0/fixincludes/mkfixinc.sh
    powerpc-unknown-linux-gnu
    sed -e 's/@gcc_version@//' < > mkheadersT
    Syntax error: redirection unexpected
    *** Error code 2

    Stop in /var/built-gcc/build-i386-freebsd/fixincludes.
    *** Error code 1

    I have tried to configure using other commands like:

    /var/gcc-4.1.0/configure --target=powerpc-linux
    --prefix=/var/gcc --disable-shared --disable-threads
    --enable-languages=c --with-newlib

    but nothing different happens.

    Any ideas?

    thanks in advance
    Andreas Sotirakopoulos
    Edit/Delete Message
    Did anybody ever get back to you on this? I'm having the same problem on my AIX v5.3.

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    4

    I got it with a little help

    I was using make and not gmake as I should. Please install gmake and everything will work fine.

    Remember to export the directory that contains the AS, AL etc. That was another thing that troubled me.

    Andreas

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •