gcc 2.95 for intel

Started by oneNeXT, April 03, 2010, 09:31:10 AM

Previous topic - Next topic

oneNeXT

Does anyone have a package including gcc 2.95.3 binaries for intel ?

I know that the one for NeXT hardware already exists.

compusplurge

If one has the source for 2.95, it is pretty simple to build. It requires only a tiny patch, as detailed here. http://www.savarese.org/patches/gcc.html

An upcoming project of mine is to build it for sparc/openstep.

//cs

oneNeXT

Thanks for the link, i'm gonna give a try a soon as possible.

by the way, does anybody have the header file named:

gthr-mach.h
?

Ostrich

Quote from: compusplurge on April 08, 2010, 11:54:08 AMIf one has the source for 2.95, it is pretty simple to build. It requires only a tiny patch, as detailed here. http://www.savarese.org/patches/gcc.html

An upcoming project of mine is to build it for sparc/openstep.

//cs

Does anyone know if these instructions work for OpenStep? ./configure as described in the instructions completed. I applied the patch to GCC 2.95 and it's erroring out with this:

openstepvm:~/software/gcc-2.95.3 me % make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
No suffix list.
make all-recursive
No suffix list.
Making all in intl
Making all in lib
Making all in makeinfo
Bootstrapping the compiler
make CC="cc" libdir=/usr/local/lib LANGUAGES="c "
(cd intl && make all)
cc -c  -DIN_GCC    -g  -DHAVE_CONFIG_H    -I. -I. -I./config -I./../include  ./gencheck.c
./system.h:399: illegal function definition, found `__attribute__'
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
openstepvm:~/software/gcc-2.95.3 me %

Ostrich

For anyone else working on this, verdraith found this hack:

NeXT Cube running Openstep 4.2.
gmake CFLAGS='-O2' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap

In spite of being gcc 2.7+, the NeXT 4.2 compiler doesn't support 
__attribute__ fully. This patch just sets MINOR to 8 to eliminate the 
problem.


*** gansidecl.h.orig    Sat Oct 30 23:02:24 1999
--- gansidecl.h Sat Oct 30 23:02:53 1999
***************
*** 47,53 ****
  # define inline __inline__  /* Modern gcc can use `__inline__' freely. */
  #endif /* GCC >= 2.7 */

! #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
  # define __attribute__(x)
  #endif

--- 47,53 ----
  # define inline __inline__  /* Modern gcc can use `__inline__' freely. */
  #endif /* GCC >= 2.7 */

! #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
  # define __attribute__(x)
  #endif

That gets me a little further, but now it's erroring out with

stage1/xgcc -Bstage1/ -B/usr/local/i386-next-nextstep4/bin/  -DIN_GCC     -O2 -g -O  -DHAVE_CONFIG_H  -o gencheck \
         gencheck.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac `  ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac `
./gencheck > tmp-check.h
gmake[2]: *** [s-check] Error 138
gmake[2]: Leaving directory `/me/software/gcc/gcc-2.95.3/gcc'
gmake[1]: *** [bootstrap] Error 2
gmake[1]: Leaving directory `/me/software/gcc/gcc-2.95.3/gcc'
gmake: *** [bootstrap] Error 2

in gcc/Makefile, s-check is

tree-check.h: s-check ; @true
s-check : gencheck $(srcdir)/move-if-change
./gencheck > tmp-check.h
$(srcdir)/move-if-change tmp-check.h tree-check.h
touch s-check

when I run gcc/gencheck manually, it gives no output, which doesn't seem right.

Googling hasn't produced anything, so now I'm stuck.