Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > The Community > Everything BSD
Reload this Page Gcc
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Everything BSD For all discussions regarding Free/NetBSD and OpenBSD.

Reply
 
Thread Tools Display Modes
Old 01-29-2007   #1 (permalink)
idipous
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
idipous is offline   Reply With Quote
Old 03-12-2007   #2 (permalink)
Julie
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.
Julie is offline   Reply With Quote
Old 03-12-2007   #3 (permalink)
idipous
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
idipous is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 11:53 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0