GCCfss 4.0.3 patch update is available
We've just released a patch for GCCfss 4.0.3. It's located at the same place place on SDLC website (the link is on the front page (or http://www.sun.com/download/products.xml?id=44e24b9d)).
Please download it, remove old 4.0.3 packages and install new 4.0.3 packages.
This patch contains several fixes for the problems reported on the forum.
You would need to download both packages (SUNW0scgfss and SUNW0gccfss), since the bugfixes went into both.
Please give it a try and send us your feedback. We're constantly working on improving GCCfss and the user feedback makes it even better.
[619 byte] By [
alexey_] at [2007-11-26 11:15:14]

# 1
I'm trying to use gccfss with Ada on my T1000 for evaluation based upon a recommendation from a Sun SPARC Sr. Technical Specialist. I'm in the process of building a baseline GCC 4.0.3 with Ada support and then will try to put the gcc/ada directory into the gccfss_src tree and rebuild from that baseline. My first attempt at it (skipping the 4.0.3 baseline and building from a 4.1.1 generated a ton of undefined symbol errors - undoubtedly resulting from not linking in the correct back end libraries. If there are any hints you can provide in advance of my running into them to cause the inclusion of these libraries, I'd love to hear about it. Thanks.
# 2
> I'm trying to use gccfss with Ada on my T1000 for
You're on uncharted territory. :)
Though there should be no design-level issues to enable ada front-end in gccfss,
it's just something we've never tried.
Could you tell us little bit more about your application and what part Ada takes in it ?
Thanks!
# 3
I've made some progress so far getting gccfss to build with an Ada front end (I can build just fine with a stock 4.0.3 and Ada front end). When I take the gccfss src tree and add in the gcc/ada and libada directories from the 4.0.3 release, I'm getting linker errors trying to bind the gnat1 executable. It looks like I probably need some changes to gcc/ada/Makefile.in, which I haven't quite got figured out / ordered correctly yet. If you have expertise and suggestions, I'd be glad to hear them.
If you want to look at what I've got so far, there's a gcc-4.0.3 with Ada front end support in http://www.grebyn.com/gccfss/installedgcc.4.0.3.tar.gz (it drops in /usr/local/bin, or you can specify DESTDIR in the "make DESTDIR=/your/directory/here install" command. The sources for gcc 4.0.3 are in http://www.grebyn.com/gccfss/gcc-4.0.3.tar.bz2 or available from your favorite GCC mirror. The current results of my make are in http://www.grebyn.com/gccfss/make.log
Fixed URL.
Message was edited by:
karlnyberg
# 4
> I've made some progress so far getting gccfss to
> build with an Ada front end
You've made a great progress!
Just to simplify things in the future we added a little writeup on how gccfss can be built:
http://cooltools.sunsource.net/gcc/faq.html#q_5
> I'm getting linker errors trying to bind the gnat1 executable.
> It looks like I probably need some changes to
> gcc/ada/Makefile.in, which I haven't quite got
> figured out / ordered correctly yet. If you have
> expertise and suggestions, I'd be glad to hear
> them.
Since you managed to build cc1 properly, you configured it correctly.
Right now you'd need to add -lsunir -l_I_dbg_gen flags to gnat linking that will solve the undefined references to ir_*() and dbg_*() functions.
The rest of the undefined functions are coming from c front-end and gccfss is using them during IR conversion. Just to pass the link step you can add a dummy functions, but there is no guarantee that the resulting gnat binary will work, though we'd really like to know your progress in that area.
If you can get something to work we'll add your changes to our source base, so some future version of GCCfss can have 'ada' support.
Thanks a bunch!
Alex.