* Cross-Compiling
@ 2004-04-27 9:30 Michael Becker
2004-04-27 13:32 ` Cross-Compiling Ian Lance Taylor
0 siblings, 1 reply; 8+ messages in thread
From: Michael Becker @ 2004-04-27 9:30 UTC (permalink / raw)
To: gcc-help
Does anyone know how to build a Cross g++ for Solaris hosted on Linux ?
Need to know which headers and libs to be copied and how to configure.
Thanks: Michael
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Cross-Compiling
2004-04-27 9:30 Cross-Compiling Michael Becker
@ 2004-04-27 13:32 ` Ian Lance Taylor
0 siblings, 0 replies; 8+ messages in thread
From: Ian Lance Taylor @ 2004-04-27 13:32 UTC (permalink / raw)
To: Michael Becker; +Cc: gcc-help
Michael Becker <mb@apissoft.com> writes:
> Does anyone know how to build a Cross g++ for Solaris hosted on Linux ?
> Need to know which headers and libs to be copied and how to configure.
In the general case, you need to copy everything under /usr/include
and everything in /lib. Then run configure using --with-headers and
--with-libs set to the directories where those files can be found.
GCCSRCDIR/configure --target=sparc-sun-solaris2 --with-headers=DIR --with-libs=DIR
Ian
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAWJVBon0D1RG D/gAQYJErt8KAAAAQAAAA1bv9CcLIbEetA/SPF24/aAEAAAAA@web.de>]
* Re: Cross-compiling
[not found] <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAWJVBon0D1RG D/gAQYJErt8KAAAAQAAAA1bv9CcLIbEetA/SPF24/aAEAAAAA@web.de>
@ 2001-11-16 15:02 ` Andrea 'Fyre Wyzard' Bocci
0 siblings, 0 replies; 8+ messages in thread
From: Andrea 'Fyre Wyzard' Bocci @ 2001-11-16 15:02 UTC (permalink / raw)
To: Tamas Nagy, gcc-help
At 17.18 24/11/01 (GMT +0100), Tamas Nagy wrote:
>I'd like to try the cross-compiling option in GCC, which sounds very
>impressive. The host platform would be x86, and the target platforms are
>IBM AIX, and Sun Solaris. The source code is a simple ANSI-C code,
>without any platform specific thing.
>
>Is there any documentation, how-to or even experience with such a
>scenario?
Two good places to look for imformation are:
GCC installation help: http://gcc.gnu.org/install/
CrossGCC FAQ: http://www.objsw.com/CrossGCC/
Actually, the FAQ is a bit old - the build process is still the same,
though you should use the latest version available of the packages.
Here's what you'll need:
newlib-1.9.0
binutils-2.11.2
gcc-3.02
You can get these from http://www.gnu.org and http://sources.redhat.com.
I'd give a look to a recen post, also:
http://gcc.gnu.org/ml/gcc-help/2001-11/msg00221.html.
Actually, compiling for those UNIX systems, I don't know wether or not you
need newlib. I think you should be fine with the system's libc, but then I
don't know about telling your cross-compiler about those systems library
headers.
Somebody with more experience might give more help on this.
>Is any Linux distribution contains packages or precompiled
>binaries?
I don't know of any precompiled binaries for gcc cross-compiler.
HTH
fwyzard
^ permalink raw reply [flat|nested] 8+ messages in thread
* Cross-compiling
@ 2001-11-16 14:58 Tamas Nagy
0 siblings, 0 replies; 8+ messages in thread
From: Tamas Nagy @ 2001-11-16 14:58 UTC (permalink / raw)
To: gcc-help
Hello,
I'd like to try the cross-compiling option in GCC, which sounds very
impressive. The host platform would be x86, and the target platforms are
IBM AIX, and Sun Solaris. The source code is a simple ANSI-C code,
without any platform specific thing.
Is there any documentation, how-to or even experience with such a
scenario? Is any Linux distribution contains packages or precompiled
binaries?
Thanks in advance,
Tamas
^ permalink raw reply [flat|nested] 8+ messages in thread
* cross-compiling
@ 2000-03-14 6:31 Dragos Badea
2000-03-14 13:34 ` cross-compiling Martin v. Loewis
2000-04-01 0:00 ` cross-compiling Dragos Badea
0 siblings, 2 replies; 8+ messages in thread
From: Dragos Badea @ 2000-03-14 6:31 UTC (permalink / raw)
To: gcc-help
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 147 bytes --]
Â
When cross-compiling gcc , is it OK to provide an empty
libgcc1.a that was created using the tools already existing on the host
machine?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: cross-compiling
2000-03-14 6:31 cross-compiling Dragos Badea
@ 2000-03-14 13:34 ` Martin v. Loewis
2000-04-01 0:00 ` cross-compiling Martin v. Loewis
2000-04-01 0:00 ` cross-compiling Dragos Badea
1 sibling, 1 reply; 8+ messages in thread
From: Martin v. Loewis @ 2000-03-14 13:34 UTC (permalink / raw)
To: badrian; +Cc: gcc-help
> When cross-compiling gcc , is it OK to provide an empty libgcc1.a that
> was created using the tools already existing on the host machine?
Since libgcc.a won't be used for *building* gcc (unless build!=host),
then yes, that is ok. I don't know what you mean by "empty", though -
if it does not have any functions, but the target relies on functions
in it, then the cross-compiler won't work (specifically, binaries
compiled with it won't link).
Regards,
Martin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: cross-compiling
2000-03-14 13:34 ` cross-compiling Martin v. Loewis
@ 2000-04-01 0:00 ` Martin v. Loewis
0 siblings, 0 replies; 8+ messages in thread
From: Martin v. Loewis @ 2000-04-01 0:00 UTC (permalink / raw)
To: badrian; +Cc: gcc-help
> When cross-compiling gcc , is it OK to provide an empty libgcc1.a that
> was created using the tools already existing on the host machine?
Since libgcc.a won't be used for *building* gcc (unless build!=host),
then yes, that is ok. I don't know what you mean by "empty", though -
if it does not have any functions, but the target relies on functions
in it, then the cross-compiler won't work (specifically, binaries
compiled with it won't link).
Regards,
Martin
^ permalink raw reply [flat|nested] 8+ messages in thread
* cross-compiling
2000-03-14 6:31 cross-compiling Dragos Badea
2000-03-14 13:34 ` cross-compiling Martin v. Loewis
@ 2000-04-01 0:00 ` Dragos Badea
1 sibling, 0 replies; 8+ messages in thread
From: Dragos Badea @ 2000-04-01 0:00 UTC (permalink / raw)
To: gcc-help
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 147 bytes --]
Â
When cross-compiling gcc , is it OK to provide an empty
libgcc1.a that was created using the tools already existing on the host
machine?
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-04-27 13:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-27 9:30 Cross-Compiling Michael Becker
2004-04-27 13:32 ` Cross-Compiling Ian Lance Taylor
[not found] <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAWJVBon0D1RG D/gAQYJErt8KAAAAQAAAA1bv9CcLIbEetA/SPF24/aAEAAAAA@web.de>
2001-11-16 15:02 ` Cross-compiling Andrea 'Fyre Wyzard' Bocci
-- strict thread matches above, loose matches on Subject: below --
2001-11-16 14:58 Cross-compiling Tamas Nagy
2000-03-14 6:31 cross-compiling Dragos Badea
2000-03-14 13:34 ` cross-compiling Martin v. Loewis
2000-04-01 0:00 ` cross-compiling Martin v. Loewis
2000-04-01 0:00 ` cross-compiling Dragos Badea
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).