I'm trying to make a cross-compiler on an i386 linux box to a ppc darwin (OSX) box. I downloaded binutils, configured them with ./configure --target=powerpc-apple --prefix=/usr/local Build them, and installed them. Then I went and got gcc (with g++), configured it with: ./configure --target=powerpc-apple-darwin --prefix=/usr/local I also made a symlink from /usr/local/powerpc-apple -> /usr/local/powerpc-apple-darwin since it seemed to fix a problem in the gcc compile. When I try to build gcc, it goes for a minute or so, and then I get this towards the end: libbackend.a(varasm.o): In function `assemble_alias': /data/hughesm/tmp/gcc-3.1/gcc/varasm.c:5184: undefined reference to `ASM_OUTPUT_DEF' collect2: ld returned 1 exit status make[1]: *** [cc1] Error 1 make[1]: Leaving directory `/data/hughesm/tmp/gcc-3.1/gcc' make: *** [all-gcc] Error 2 I'm not really asking for the exact cause of the error... I'm just trying to figure out if I'm even going about this the correct way. The documentation on cross compiling is a bit sparse. It seems odd to me that the targets don't match (but there is no powerpc-apple-darwin in binutils, and no powerpc-apple in gcc) All that being said, I'm doing this so I can add my linux boxes to my OSX build farm. Check out distcc.samba.org for a wicked cool and easy way to distribute compiles. -Marc
I recently saw that the GCC 3.x compiler isn't cross compile friendly. Try using GCC 2.95.3. --Skip
-----Original Message----- From: wlug-admin@mail.wlug.org [mailto:wlug-admin@mail.wlug.org]On Behalf Of Marc Hughes Sent: Thursday, December 19, 2002 11:45 AM To: wlug@wlug.org Subject: [Wlug] Cross Compile Question
I'm trying to make a cross-compiler on an i386 linux box to a ppc darwin (OSX) box. I downloaded binutils, configured them with ./configure --target=powerpc-apple --prefix=/usr/local Build them, and installed them.
Then I went and got gcc (with g++), configured it with: ./configure --target=powerpc-apple-darwin --prefix=/usr/local
I also made a symlink from /usr/local/powerpc-apple -> /usr/local/powerpc-apple-darwin since it seemed to fix a problem in the gcc compile.
When I try to build gcc, it goes for a minute or so, and then I get this towards the end:
libbackend.a(varasm.o): In function `assemble_alias': /data/hughesm/tmp/gcc-3.1/gcc/varasm.c:5184: undefined reference to `ASM_OUTPUT_DEF' collect2: ld returned 1 exit status make[1]: *** [cc1] Error 1 make[1]: Leaving directory `/data/hughesm/tmp/gcc-3.1/gcc' make: *** [all-gcc] Error 2
I'm not really asking for the exact cause of the error... I'm just trying to figure out if I'm even going about this the correct way. The documentation on cross compiling is a bit sparse. It seems odd to me that the targets don't match (but there is no powerpc-apple-darwin in binutils, and no powerpc-apple in gcc)
All that being said, I'm doing this so I can add my linux boxes to my OSX build farm. Check out distcc.samba.org for a wicked cool and easy way to distribute compiles.
-Marc
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
If I compile some source files with gcc2.x and some with gcc3.x, can I link the object files together? -Marc -----Original Message----- From: wlug-admin@mail.wlug.org [mailto:wlug-admin@mail.wlug.org] On Behalf Of Skip Gaede Sent: Thursday, December 19, 2002 12:23 PM To: wlug@mail.wlug.org Subject: RE: [Wlug] Cross Compile Question I recently saw that the GCC 3.x compiler isn't cross compile friendly. Try using GCC 2.95.3. --Skip
-----Original Message----- From: wlug-admin@mail.wlug.org [mailto:wlug-admin@mail.wlug.org]On Behalf Of Marc Hughes Sent: Thursday, December 19, 2002 11:45 AM To: wlug@wlug.org Subject: [Wlug] Cross Compile Question
I'm trying to make a cross-compiler on an i386 linux box to a ppc darwin (OSX) box. I downloaded binutils, configured them with ./configure --target=powerpc-apple --prefix=/usr/local Build them, and installed them.
Then I went and got gcc (with g++), configured it with: ./configure --target=powerpc-apple-darwin --prefix=/usr/local
I also made a symlink from /usr/local/powerpc-apple -> /usr/local/powerpc-apple-darwin since it seemed to fix a problem in the gcc compile.
When I try to build gcc, it goes for a minute or so, and then I get this towards the end:
libbackend.a(varasm.o): In function `assemble_alias': /data/hughesm/tmp/gcc-3.1/gcc/varasm.c:5184: undefined reference to `ASM_OUTPUT_DEF' collect2: ld returned 1 exit status make[1]: *** [cc1] Error 1 make[1]: Leaving directory `/data/hughesm/tmp/gcc-3.1/gcc' make: *** [all-gcc] Error 2
I'm not really asking for the exact cause of the error... I'm just trying to figure out if I'm even going about this the correct way. The documentation on cross compiling is a bit sparse. It seems odd to
me that the targets don't match (but there is no powerpc-apple-darwin in binutils, and no powerpc-apple in gcc)
All that being said, I'm doing this so I can add my linux boxes to my OSX build farm. Check out distcc.samba.org for a wicked cool and easy
way to distribute compiles.
-Marc
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
Depends on the language... if it's C, yes. if it's C++, no way. Scott On Thu, 19 Dec 2002, Marc Hughes wrote:
If I compile some source files with gcc2.x and some with gcc3.x, can I link the object files together?
-Marc
-----Original Message----- From: wlug-admin@mail.wlug.org [mailto:wlug-admin@mail.wlug.org] On Behalf Of Skip Gaede Sent: Thursday, December 19, 2002 12:23 PM To: wlug@mail.wlug.org Subject: RE: [Wlug] Cross Compile Question
I recently saw that the GCC 3.x compiler isn't cross compile friendly. Try using GCC 2.95.3.
--Skip
-----Original Message----- From: wlug-admin@mail.wlug.org [mailto:wlug-admin@mail.wlug.org]On Behalf Of Marc Hughes Sent: Thursday, December 19, 2002 11:45 AM To: wlug@wlug.org Subject: [Wlug] Cross Compile Question
I'm trying to make a cross-compiler on an i386 linux box to a ppc darwin (OSX) box. I downloaded binutils, configured them with ./configure --target=powerpc-apple --prefix=/usr/local Build them, and installed them.
Then I went and got gcc (with g++), configured it with: ./configure --target=powerpc-apple-darwin --prefix=/usr/local
I also made a symlink from /usr/local/powerpc-apple -> /usr/local/powerpc-apple-darwin since it seemed to fix a problem in the gcc compile.
When I try to build gcc, it goes for a minute or so, and then I get this towards the end:
libbackend.a(varasm.o): In function `assemble_alias': /data/hughesm/tmp/gcc-3.1/gcc/varasm.c:5184: undefined reference to `ASM_OUTPUT_DEF' collect2: ld returned 1 exit status make[1]: *** [cc1] Error 1 make[1]: Leaving directory `/data/hughesm/tmp/gcc-3.1/gcc' make: *** [all-gcc] Error 2
I'm not really asking for the exact cause of the error... I'm just trying to figure out if I'm even going about this the correct way. The documentation on cross compiling is a bit sparse. It seems odd to
me that the targets don't match (but there is no powerpc-apple-darwin in binutils, and no powerpc-apple in gcc)
All that being said, I'm doing this so I can add my linux boxes to my OSX build farm. Check out distcc.samba.org for a wicked cool and easy
way to distribute compiles.
-Marc
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
participants (3)
-
Marc Hughes
-
Scott Venier
-
Skip Gaede