-
marksmithHi all, it's been a while since I built OmniOS from source and I'm having some issues following the instructions from the website. In particular, omni build_illumos is failing very early.
-
marksmithI'm trying to build r151058 (on r151058)
-
marksmithThe error that pops out at me from nightly.log is: couldn't run /opt/gcc-7/bin/gcc: No such file or directory
-
marksmithCould anyone point me in the right direction?
-
Woodstockinstall gcc-7?
-
marksmith@Woodstock: thanks for your reply. Is that a general requirement? gcc 7 doesn't seem to be available in pkg?
-
marksmithIt's been two or three years since I last built OmniOS from source but I don't remember that or this issue; IIRC the last time the build instructions just worked.
-
tsoomeits developer/gcc7
-
andyfThese days we build with gcc10 (and gcc14 as a shadow compiler to keep us honest).
-
andyfSo you must have an environment file that is out of date somehow, and that could be something we missed.
-
andyfIf you run `omni cfg` you will see the env file it's using in the output there.
-
marksmith@andyf: Thanks for the directions! I see the PRIMARY_CC is gcc10, and the SHADOW_CC is gcc7
-
marksmithThis is in /build/omnios.env, generated by the omni tool.
-
andyfTake a look at downloads.omnios.org/env/build-gate-on-r151058.env for the current settings.
-
andyfAh, ok, that sounds like the omni tool needs an update.
-
marksmithIs it possible that I ran the wrong version of the omni tool? (I'm doing this on a clean r151058 install in a KVM VM)
-
andyfIt's almost definitely that the omni tool hasn't been updated for the switch. I have made a note to take a look at it later on today.
-
marksmithandyf: Perfect! Thank you kindly :-). I'll try again this evening. Failing that (mystery hopefully solved) would switching to bloody help?
-
andyfNo, I doubt it will help. I'll know more when I look later.
-
marksmithIn the meantime, I've updated by /build/omnios.env with the GCC settings from build-gate-on-r151058.env and things are moving forward
-
marksmithThanks again, @andy