View Single Post

   
  #4 (permalink)  
Old 01-16-2008, 09:45 AM
zoot
 
Posts: n/a
Default Re: Gcc On Solaris Sparc Versus Solaris Intel: Repost With Error Information Included


James Carlson wrote:
> Thomas Dineen <tjjdineen@comcast.net> writes:
> > I am currently running gcc 3.1 on both my Ultra 5
> > Solaris 8 Sparc machine and on Solaris 8 Intel machine.
> > The C source code that compiles and executes perfectly on
> > the Ultra 5 will not compile on the Intel machine!

>
> Wow, that's old stuff.
>
> > Why would there be such a difference in the between gcc on
> > Sparc versus Intel?

>
> It's hard to tell. There shouldn't be. A good place to start would
> be examining the output of 'gcc -E' -- find out what the preprocessor
> is actually doing with this code. There is likely some difference
> between the two machines beyond the parts you've mentioned.
>
> --
> James Carlson, KISS Network <james.d.carlson@sun.com>
> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
> MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677


Not exaclty the same, but,

a loong while ago I had same problems, using same gcc version on a
Solaris 8 (sparc) and a Linux RH 8 ( I know, as I said)
The sintax differences were all missing new line between declarations,
If I remmebrer correctly.

I eneded p writing under Linux and recompiling unde Solaris where it
didn't make a diffference.
Zoot

Reply With Quote