| View previous topic :: View next topic |
| Author |
Message |
Mike_H

Joined: 04 Jan 2006 Posts: 35 Location: USA
|
|
| Back to top |
|
 |
da9000

Joined: 30 Sep 2006 Posts: 387 Location: Silicon Valley
|
Posted: Sat Dec 09, 2006 4:22 am Post subject: Re: Porting Tips |
|
|
The 1st one asks for login :(
Haven't tested the 2nd as I don't have Openstep :/ |
|
| Back to top |
|
 |
Mike_H

Joined: 04 Jan 2006 Posts: 35 Location: USA
|
Posted: Wed Dec 13, 2006 12:06 pm Post subject: Re: Porting Tips |
|
|
| da9000 wrote: | The 1st one asks for login  |
I wish I had made a copy of the web page, as it appears that their robots.txt file prohibits bots from archiving the NeXT section.  _________________ Mike |
|
| Back to top |
|
 |
Nitro Site Admin

Joined: 22 Oct 2005 Posts: 395 Location: Littleton, Colorado USA
|
|
| Back to top |
|
 |
da9000

Joined: 30 Sep 2006 Posts: 387 Location: Silicon Valley
|
Posted: Thu Jul 12, 2007 2:17 am Post subject: |
|
|
| Nice one Nitro! I'm sure it'll be handy to many. |
|
| Back to top |
|
 |
Noth

Joined: 04 Apr 2008 Posts: 103 Location: Lausanne, Switzerland
|
Posted: Sat Oct 03, 2009 10:08 am Post subject: |
|
|
Hi there,
I'm trying to update my NeXT Cube running NS3.3 to be able to port some software over. I've already got gcc 2.7.2.3 installed along with its libs, but even basic stuff like grep 2.4.2 won't compile cleanly. Is there a list of all the updated tools I need to be able to port software for NS3.3 (plus how do you cross compile to create quadfat binaries?).
Cheers,
Noth _________________ NeXT Cube 040 (NeXTSTEP 3.3), SUN SparcStation5 (NeXTSTEP 3.3), SGI Indigo2 R10000 (IRIX 6.5.22), SGI VSW320 (Windows 2000/Slakware 9.1) |
|
| Back to top |
|
 |
neozeed
Joined: 15 Apr 2006 Posts: 444 Location: New York City!
|
Posted: Sat Oct 03, 2009 12:31 pm Post subject: |
|
|
| Noth wrote: | Hi there,
I'm trying to update my NeXT Cube running NS3.3 to be able to port some software over. I've already got gcc 2.7.2.3 installed along with its libs, but even basic stuff like grep 2.4.2 won't compile cleanly. Is there a list of all the updated tools I need to be able to port software for NS3.3 (plus how do you cross compile to create quadfat binaries?).
Cheers,
Noth |
I build quadfat binaries with the shipped CC
| Code: | | cc -arch i386 -arch m68k -arch sparc -arch hppa |
I suppose if you build enough cross compilers it'll do the job.....? Just save the native 'gcc' binary...
I also build bison 1.25 /flex 2.5.4a/gawk 3.022/make 3.75 & bash 2.01
With those I have some good luck building things. _________________ # include <wittycomment.h> |
|
| Back to top |
|
 |
iDork

Joined: 18 Jan 2006 Posts: 61 Location: Kirkland, WA
|
Posted: Sat Oct 03, 2009 12:46 pm Post subject: |
|
|
There was a thread about GCC 2.95.3 here:
http://www.nextcomputers.org/forums/viewtopic.php?t=830
with links to 68k binaries. If I my color turbo slab still works, I might give them a try. I remember reading the instructions on the linked page, but I couldn't figure out how to build it for x86.
Does anyone have pre-built x86 binaries? _________________ NS TurboColor, SparcStation 5, Ultra 10, Octane SSI, HP 9000 C110, AlphaStation 200, Apple IIgs|IIe|IIc, Amiga 500+|600|1200, Commodore 64|128 |
|
| Back to top |
|
 |
neozeed
Joined: 15 Apr 2006 Posts: 444 Location: New York City!
|
Posted: Sat Oct 03, 2009 12:55 pm Post subject: |
|
|
| iDork wrote: | There was a thread about GCC 2.95.3 here:
http://www.nextcomputers.org/forums/viewtopic.php?t=830
with links to 68k binaries. If I my color turbo slab still works, I might give them a try. I remember reading the instructions on the linked page, but I couldn't figure out how to build it for x86.
Does anyone have pre-built x86 binaries? |
I must have forgotten about the whole thing....
At the moment I'm being tripped up by 'dirname'.... _________________ # include <wittycomment.h> |
|
| Back to top |
|
 |
neozeed
Joined: 15 Apr 2006 Posts: 444 Location: New York City!
|
|
| Back to top |
|
 |
neozeed
Joined: 15 Apr 2006 Posts: 444 Location: New York City!
|
Posted: Sat Oct 03, 2009 1:52 pm Post subject: |
|
|
Ok, here we go "hot off the compiler"...
I've tested unzip to work.......
Anyways the object & exes are here:
http://dl.getdropbox.com/u/1694005/gcc-2.95.3-compile.tar.bz2
You'll also need the source code:
http://ftp.gnu.org/pub/gnu/gcc/gcc-2.95.3.tar.gz
*NOTE that this is just a compiled set, you'll probably still need some kind of gnu make ( make 3.75 works for me),and I would imagine all the nextstep dev tools.. I wouldn't imagine what this would do if you didn't have the libs in place...
You'll need to extract the source into a parallel directory, and run
from the gcc-2.95.3-compile directory.
I guess you can manually place stuff...
| Code: |
/usr/local/lib/gcc-lib/i386-next-nextstep3/2.95.3
bash-2.01# ls
SYSCALLS.c.X cc1plus crtbegin.o include libobjc.a
cc1 collect2 crtend.o libg2c.a libstdc++.a
cc1obj cpp0 f771 libgcc.a specs |
Anyways, it built somewhat cleanly, but you have to fix the one file as mentioned here: http://www.savarese.org/patches/gcc.html
-- edit
I've even tested the F77 compiler... and it works!
| Code: | bash-2.01# time g77 *.f -o xx
np.f: In function `synmch':
np.f:683: warning:
200 CALL UNPACK(J,NEWJ)
^
Reference to unimplemented intrinsic `UNPACK' at (^) (assumed EXTERNAL)
real 0m3.650s
user 0m2.160s
sys 0m0.250s
bash-2.01# file xx
xx: Mach-O executable (for architecture i386)
bash-2.01# |
Much to my amazement, as it's documentation said G77 didn't work at all.. I guess there has been a LOT of improvements along the way...
| Code: | bash-2.01# ./xx
Welcome to Dungeon. This version created 30-AUG-90.
You are in an open field west of a big white house with a boarded
front door.
There is a small mailbox here.
>history
Revision history:
30-AUG-90 Portable non-DEC version
18-JUL-80 Transportable data base file (V2.5A).
28-FEB-80 Compressed text file (V2.4A).
15-NOV-79 Bug fixes (V2.3A).
18-JAN-79 Revised DECUS version (V2.2A).
10-OCT-78 Puzzle Room (V2.1A).
10-SEP-78 Endgame (V2.0A).
10-AUG-78 DECUS version (V1.1B).
14-JUN-78 Public version with parser (V1.1A).
4-MAR-78 Debugging version (V1.0A).
> |
--- another edit --
Also don't forget to 'fix' the specs files, or the posix stuff will break.
What is funny, is that the posix exe's are MASSIVE... like 360kb for a null executable....
| Code: |
bash-2.01$ cat x.c
void main(void){}
bash-2.01$ cc -posix x.c -o x;ls -l x
-rwxr-xr-x 1 me 87292 Oct 3 17:26 x
bash-2.01$ gcc -posix x.c -o x;ls -l x
x.c: In function `main':
x.c:1: warning: return type of `main' is not `int'
-rwxr-xr-x 1 me 364412 Oct 3 17:26 x |
_________________ # include <wittycomment.h> |
|
| Back to top |
|
 |
iDork

Joined: 18 Jan 2006 Posts: 61 Location: Kirkland, WA
|
Posted: Sat Oct 03, 2009 10:41 pm Post subject: |
|
|
Thanks, I'll give it a try.
Alex _________________ NS TurboColor, SparcStation 5, Ultra 10, Octane SSI, HP 9000 C110, AlphaStation 200, Apple IIgs|IIe|IIc, Amiga 500+|600|1200, Commodore 64|128 |
|
| Back to top |
|
 |
Noth

Joined: 04 Apr 2008 Posts: 103 Location: Lausanne, Switzerland
|
Posted: Sun Oct 04, 2009 4:19 am Post subject: |
|
|
Thanks for the tips. So far I've been able to update the toolchain to the suggested level, but I still can't compile a basic command such as grep! I've been hunting high and low for a m68k binary but I can't find it on any mirror at [url]nextstuff.info/mirror/[/url] or on this site's file repository. And grep is required for a shedload of compiles to work. I even get circular dependencies compiling the latest 2.5.3 grep asking for grep! I'm mainly trying to get the 2.4.* to work, but that fails... maybe I need gmake ? Which isn't easy to find either as a binary.... _________________ NeXT Cube 040 (NeXTSTEP 3.3), SUN SparcStation5 (NeXTSTEP 3.3), SGI Indigo2 R10000 (IRIX 6.5.22), SGI VSW320 (Windows 2000/Slakware 9.1) |
|
| Back to top |
|
 |
neozeed
Joined: 15 Apr 2006 Posts: 444 Location: New York City!
|
Posted: Sun Oct 04, 2009 5:26 am Post subject: |
|
|
| Noth wrote: | | Thanks for the tips. So far I've been able to update the toolchain to the suggested level, but I still can't compile a basic command such as grep! I've been hunting high and low for a m68k binary but I can't find it on any mirror at [url]nextstuff.info/mirror/[/url] or on this site's file repository. And grep is required for a shedload of compiles to work. I even get circular dependencies compiling the latest 2.5.3 grep asking for grep! I'm mainly trying to get the 2.4.* to work, but that fails... maybe I need gmake ? Which isn't easy to find either as a binary.... |
gmake 3.75 should build with nothing....
I just wish I could figure out a 'nice' way to build ncurses as a quad fat library as it builds a .a file, then keeps adding to it, but you can't do that with quadfat libs...
I'll probably just build out some stuff that I can as quad fat, basic stuff... minus gcc as I *think* Id have to do some intense moving around as a cross compiler... I'm not sure how next did it's config back then.
Version 2.0 of GNU's grep built with cc with no issues... 2.4 seemed to build fine as well, it configured fine for gcc and I just altered the makefile to use cc & include all the quad fat stuff, and it built. I've included version 2.0 & 2.4 in the list of stuff....
-- edit
I've built a few things as quad fat...
http://dl.getdropbox.com/u/1694005/nextstep/bison-bzip2-flex-gawk-gmake-unzip.tar.gz
http://dl.getdropbox.com/u/1694005/nextstep/bash.gz
http://dl.getdropbox.com/u/1694005/nextstep/qgrep.gz
http://dl.getdropbox.com/u/1694005/nextstep/qgrep24.gz
The name should be pretty self explanatory... and gnutar on nextstep should be able to handle this file. I've named all these exe's as Q???? ie qbzip2 incase you have an existing one... Or if you want to lipo it out.
I should also note that gmake isn't the most solid program out there, and it cannot build itself... but it can build all kinds of other things.. it's really odd but I've not spent that much time worrying about it. _________________ # include <wittycomment.h> |
|
| Back to top |
|
 |
Noth

Joined: 04 Apr 2008 Posts: 103 Location: Lausanne, Switzerland
|
Posted: Sun Oct 04, 2009 9:04 am Post subject: |
|
|
Thanks a lot, I'll get these as soon as the server lets me get them. Hopefully that will do the trick. _________________ NeXT Cube 040 (NeXTSTEP 3.3), SUN SparcStation5 (NeXTSTEP 3.3), SGI Indigo2 R10000 (IRIX 6.5.22), SGI VSW320 (Windows 2000/Slakware 9.1) |
|
| Back to top |
|
 |
|