adoptium / infrastructure

This repo contains all information about machine maintenance.
Apache License 2.0
85 stars 101 forks source link

Update playbooks for Solaris 11 #2846

Open Haroon-Khel opened 1 year ago

Haroon-Khel commented 1 year ago

While setting up a new build x64 solaris machine 147.28.133.221 (to be added into jenkins) I hit 2 obstacles when running the Unix playbook

TASK [Common : Compile Git 2.31.0] 
fatal: [147.28.133.221]: FAILED! => 
{"changed": true, "cmd": "cd /tmp/git-2.31.0\n./configure --with-curl=/opt/csw/lib/libcurl.so --with-openssl=/opt/csw/lib/libssl.so --with-expat\ngmake -j4\ngmake install\n", "delta": "0:00:18.925210", "end": "2022-12-07 13:06:43.223130", "msg": "non-zero return code" 
TASK [Common : Install Solaris Studio 12.3] *************************************************************************************************************************************************
fatal: [147.28.133.221]: FAILED! => {"changed": true, "cmd": "./SolarisStudio12.3-solaris-x86-pkg/solarisstudio.sh --non-interactive", "delta": "0:00:01.018819", "end": "2022-12-06 13:27:57.910029", "msg": "non-zero return code", "rc": 1, "start": "2022-12-06 13:27:56.891210", "stderr": "", "stderr_lines": [], "stdout": "This installer is for Solaris 10 only. Please install this Oracle Solaris Studio version IPS package using the pkg command or the Package Manager.", "stdout_lines": ["This installer is for Solaris 10 only. Please install this Oracle Solaris Studio version IPS package using the pkg command or the Package Manager."]}

The Git error may be related to the same error which prevents us from running the GIT_Source role on solaris

    - role: GIT_Source
      when: ansible_distribution != "Solaris" # Compile fails on Solaris
Haroon-Khel commented 1 year ago

The git compile error is likely related to Solaris Studio not being installed I'll try to paste the significant error lines of the Git error here (actual error too long)

/bin/bash: msgfmt: command not found
gmake: *** [Makefile:2628: po/build/locale/bg/LC_MESSAGES/git.mo] Error 127", "stderr_lines": ["grep: illegal option -- a", "Usage: grep [-c|-l|-q]
checking for gcc... no
checking for gnudiff... no
checking for asciidoc... no
checking for hstrerror... no
checking for old iconv()... no