OT - gcc src for Mac X

Sorry, it is bit off topic. Wish there were more visitors to Nttalk !.

Wondering, if anyone out there had a chance to play around with gcc ports
to mac os X. I’ve gcc open src that I can build on linux (easy part !!).
For mac X, I know there are quirks they applied, but not sure if they have
published it to open src.

Googling does not seem to get there…

Perhaps someone out there had done something along this.

I need the src to be built on mac x 10.4 - 10.6, that will create the
whole set of binaries…

For built compilers I have Xcode so that comes with the infrastructure…
But for me I need to build it using the Xcode supplied bintools/compiler
etc.

Much appreciated for …

-pro

I suspect you want either the gcc-help or the xcode-users list.
http://gcc.gnu.org/lists.html
http://lists.apple.com/

And, depending on what port system you’re using, one of these is the
most appropriate:
http://trac.macports.org/wiki/MailingLists
http://lists.macosforge.org/mailman/listinfo.cgi
http://www.finkproject.org/lists/index.php
http://sourceforge.net/mail/index.php?group_id=15543

HTH.

PS: to the rest of the list, trying to stay on topic, is there any tool
that converts MinGW’s GCC symbols into something that NTSD/Windbg can
use? I’d like to use NTSD instead of GDB to debug some MinGW
GCC-compiled Win32 binaries. If there’s a tool/solution, please speak up.

wrote in message news:xxxxx@ntdev…
> Sorry, it is bit off topic. Wish there were more visitors to Nttalk !.

Even there this Q would be OT
–pa

Children, PLEASE. Don’t make me pull this car over and come back there…

Peter
OSR

Regarding mingw/ntsd, one thing that you could do is generate a map file and use Ken’s sdebgext to load that:

http://www.nynaeve.net/?p=94

Otherwise, I don’t know of any tool that will convert anything to a pdb. If mingw gcc can create a .dbg file, that would work.

Good luck,

mm

Thanks and Much appreciated for the list.

Seems like I’ve to hack a bit to get the feel, otherwise I did not find
any mac x port published on the net…

thanks
-pro

I suspect you want either the gcc-help or the xcode-users list.
http://gcc.gnu.org/lists.html
http://lists.apple.com/

And, depending on what port system you’re using, one of these is the
most appropriate:
http://trac.macports.org/wiki/MailingLists
http://lists.macosforge.org/mailman/listinfo.cgi
http://www.finkproject.org/lists/index.php
http://sourceforge.net/mail/index.php?group_id=15543

HTH.

PS: to the rest of the list, trying to stay on topic, is there any tool
that converts MinGW’s GCC symbols into something that NTSD/Windbg can
use? I’d like to use NTSD instead of GDB to debug some MinGW
GCC-compiled Win32 binaries. If there’s a tool/solution, please speak up.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Prokash,

I believe your problem may be not so different from making cross-compiling tools, i.e. compiling GCC that runs on your host but generates code for another hardware platform. This is how toolchains that generate code for ARM,MIPS et al that run on x86-based PC Linux hosts are built (I built a toolchain for ARM myself from GNU sources). I believe you may want to explore this direction…

But for me I need to build it using the Xcode supplied bintools/compiler etc.

Well, first of all, you have to build binutils for your target, and then you can already build GCC that generates code for this target , don’t you think…

Googling does not seem to get there…

Google “cross-compiling” and “toolchain” - you will get plenty of info. http://www.linuxfromscratch.org/
is a very good source - it has series on rolling up Linux for another hardware platform using a PC host. Although you don’t need all of it because you don’t roll up your own Linux distro, reading those parts that explain how to compile binutils and GCC for another target would not hurt you at all. To give you an idea, although these series cover only x64_64 and MIPS targets( x86-based host is assumed) without even mentioning ARM, this info was was sufficient for me to build a toolchain for ARM target on x86_64 Linux host,…

Certainly, some parts may be not applicable to you so that you have to do some experimentation
(IIRC, I even had to edit GCC code a bit to remove few bugs in it), but still these series provide a good guidance…

If you want to discuss it in more detail we can do it on NTTALK - otherwise NTDEV readers , as well as OSR guys, would not be happy about us at all…

Anton Bassov