Booterizer: fix for math.h compiler errors

Unxmaal

Administrator
Feb 8, 2019
86
42
18
I've determined a method to repair Booterized installations that are affected by the "math.h" compilation errors induced by not rebooting before installing MIPSPro and patches. (For context, see https://forums.sgi.sh/index.php?threads/issue-with-octane-over-network-installation-resolved.74/ ).

From cli, use 'versions' to remove the following patches:

Bash:
versions remove patchSG0007076
versions remove patchSG0007188
versions remove patchSG0005401
versions remove patchSG0005329
From the desktop, launch 'swmgr'. Open Overlays disc1, then add the remainder of the install media (Overlays, Foundation, apps). I have all of my installation media available via NFS, and recommend doing so. You can also modify the 'selections' file that Booterizer generates, by changing the paths to wherever your media is located. I had mixed results with this.

Once swmgr has loaded everything, you should see patch 'SG0004605' listed as New. Uncheck everything, and check 'SG0004605'. Ensure there's no conflicts, then proceed with the install.

This should fix a system such that it is capable of properly building binaries with the newest versions of gcc we have available.
 

massiverobot

irix detailer
Feb 8, 2019
95
59
18
Philly
twitter.com
OK, here is way to do it more quickly, and without needing a GUI.
I had to do this builing DIDBS when it hit the bad math header problem.
Just as above, you should have your CDROM media extracted and available on a local filesystem, I have mine on a NFS share (files) below.

Note about above ^^^ If you have used booterizer, all the packages are extracted from the disk images and sitting in nice dirs on the booterizer VM filesystem. You should MOVE all of those over into your SGI at this point. You may need them for other things beyond this. SSH into your linux vm and in side /irix you will see all the packages. Move them off the VM and onto a shared FS (NFS?) if you have it, or scp the entire thing over to another workstation you use, or if you have FTP or SSHD working on your SGI move them right over to a location on your SGI.

>> check for bad patches

$ versions |grep 7076
[check output]


>> Remove bad patches:

versions remove patchSG0007076
versions remove patchSG0007188
versions remove patchSG0005401
versions remove patchSG0005329



>> cd to mounted directory of MIPSPRO Patches:
[AS ROOT]

# cd /files/sgi/irix_installers/Development/mipspro_update

>> Run INST

# inst

Inst> install patchSG0004605
Inst> g
Pre-installation check .. 8%
Checking space requirements .. 16%
Pre-installation check completed
Installing/removing files .. 16%
Installing new versions of selected patchSG0004605.c++_dev_hdr_6518 subsystems
Installing/removing files .. 72%
Installing new versions of selected patchSG0004605.compiler_dev_hdr_6518 subsystems
Installing/removing files .. 94%
Removing orphaned directories
Running exit-commands .. 99%
Checking dependencies .. 100% Done.
Calculating sizes .. 100% Done.
Installations and removals were successful.
You may continue with installations or quit now.

Inst> q


>> VERIFY the 4605 Patch is installed....


$ versions |grep 4605

I patchSG0004605 11/15/2019 Patch SG0004605: 7.4 Compiler Header Files for Unix98, C99 and ANSI C++ namespace std
I patchSG0004605.c++_dev_hdr_6518 11/15/2019 C++ Headers for Irix 6.5.18 and above
I patchSG0004605.c++_dev_hdr_6518.lib 11/15/2019 C++ Headers for Irix 6.5.18 and above
I patchSG0004605.compiler_dev_hdr_6518 11/15/2019 Base Compiler Headers for Irix 6.5.18 and above
I patchSG0004605.compiler_dev_hdr_6518.lib 11/15/2019 Base Compiler Headers for Irix 6.5.18 and above



BACK TO WORK!!

After following the exact procedure above I was able to continue to compile bootstrap.pl in didbs. I had installed my 6.5.30 on my Octane and didn't reboot before patching, as is the prefered method now (and documented in booterizer).
 
Last edited:
  • Like
Reactions: Elf

massiverobot

irix detailer
Feb 8, 2019
95
59
18
Philly
twitter.com
I will also note here: The bad patch still gets installed even if you don't install MIPSPRO at the main installation, reboot and install them. I still had to do this.

So now I make sure MIPSPRO is uncommented out in the selections file and just go ahead and install it at booterizer time, then come back and do this. This should be moved into an ansible task at some point inside irix_ansible.
 

About us

  • Silicon Graphics User Group (SGUG) is a community for users, developers, and admirers of Silicon Graphics (SGI) products. We aim to be a friendly hobbyist community for discussing all aspects of SGIs, including use, software development, the IRIX Operating System, and troubleshooting, as well as facilitating hardware exchange.

User Menu