Does anyone have a package including gcc 2.95.3 binaries for intel ?
I know that the one for NeXT hardware already exists.
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.htmlAn upcoming project of mine is to build it for sparc/openstep.
//cs
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
?
Quote from: compusplurge on April 08, 2010, 12:54:08 PMIf 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 %
For anyone else working on this, verdraith found this hack (
https://gcc.gnu.org/legacy-ml/gcc-bugs/1999-11n/msg00102.html):
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)
#endifThat 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 2in 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-checkwhen I run gcc/gencheck manually, it gives no output, which doesn't seem right.
Googling hasn't produced anything, so now I'm stuck.
I have a series of patches for gcc memorialized here:
https://github.com/rjbrown99/nextThe wiki page has compilation instructions as well. Cheers.
I did some messing around with slightly more recent gcc versions a long time ago here:
https://www.nextcomputers.org/forums/index.php?topic=2980 (
https://www.nextcomputers.org/forums/index.php?topic=2980)
Perhaps it could be of some help.