Started by user Pop Adrian Checking out git git@gitlab.liu.se:OpenModelica/apt-build.git into /var/jenkins_home/workspace/LINUX_BUILDS_script/774335cde2ee91721c4d3a9602bc561368b7238bad469d39685cbed3758a99b0 to read Jenkinsfile Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential Hudson-SSH-Key > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/LINUX_BUILDS_script/774335cde2ee91721c4d3a9602bc561368b7238bad469d39685cbed3758a99b0/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@gitlab.liu.se:OpenModelica/apt-build.git # timeout=10 Cleaning workspace > git rev-parse --verify HEAD # timeout=10 Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 Fetching upstream changes from git@gitlab.liu.se:OpenModelica/apt-build.git > git --version # timeout=10 > git --version # 'git version 2.39.2' using GIT_SSH to set credentials SSH Key for user Hudson > git fetch --tags --force --progress -- git@gitlab.liu.se:OpenModelica/apt-build.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 2c7a0537550327755aaceb87c8a251395d271e06 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 2c7a0537550327755aaceb87c8a251395d271e06 # timeout=10 Commit message: "Updated current OS versions" > git rev-list --no-walk 583bf8423fd76aa28b6f5ccbd8903469837a0cf8 # timeout=10 Cleaning workspace > git rev-parse --verify HEAD # timeout=10 Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 [Pipeline] Start of Pipeline [Pipeline] properties [Pipeline] node Running on r630-2 in /var/lib/jenkins/ws/LINUX_BUILDS [Pipeline] { [Pipeline] stage [Pipeline] { (checkout) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential Hudson-SSH-Key Fetching changes from the remote Git repository Cleaning workspace Checking out Revision 2c7a0537550327755aaceb87c8a251395d271e06 (refs/remotes/origin/master) Commit message: "Updated current OS versions" Cleaning workspace [Pipeline] sh + git rev-parse HEAD [Pipeline] echo r630-2 [Pipeline] withDockerRegistry $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins/ws/LINUX_BUILDS_tmp/0e53d4d6-b36d-4ae6-8e50-21e91b99ffb7/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded [Pipeline] { [Pipeline] sh > git rev-parse --resolve-git-dir /var/lib/jenkins/ws/LINUX_BUILDS/.git # timeout=10 > git config remote.origin.url git@gitlab.liu.se:OpenModelica/apt-build.git # timeout=10 > git rev-parse --verify HEAD # timeout=10 Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 Fetching upstream changes from git@gitlab.liu.se:OpenModelica/apt-build.git > git --version # timeout=10 > git --version # 'git version 2.34.1' using GIT_SSH to set credentials SSH Key for user Hudson > git fetch --tags --force --progress -- git@gitlab.liu.se:OpenModelica/apt-build.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 2c7a0537550327755aaceb87c8a251395d271e06 # timeout=10 > git rev-parse --verify HEAD # timeout=10 Resetting working tree > git reset --hard # timeout=10 > git clean -fdx # timeout=10 + ./update-current-linux-os-releases.py true no such manifest: docker.openmodelica.org/build-deps:bookworm.nightly.amd64 no such manifest: docker.openmodelica.org/build-deps:bookworm.nightly.armhf no such manifest: docker.openmodelica.org/build-deps:bookworm.nightly.arm64 {'deb-all': ['bookworm', 'focal', 'jammy', 'noble', 'oracular'], 'deb-arch-os': {'amd64': ['bookworm', 'focal', 'jammy', 'noble', 'oracular'], 'arm64': ['bookworm', 'focal', 'jammy', 'noble'], 'armhf': ['bookworm', 'focal', 'jammy', 'noble'], 'i386': []}, 'deb-lts': ['bookworm', 'focal', 'jammy', 'noble'], 'deb-old': [], 'docker': {'bookworm': 'debian:bookworm', 'el8': 'almalinux:8', 'el9': 'almalinux:9', 'fc40': 'fedora:40', 'fc41': 'fedora:41', 'focal': 'ubuntu:focal', 'jammy': 'ubuntu:jammy', 'noble': 'ubuntu:noble', 'oracular': 'ubuntu:oracular'}, 'eol': {'bookworm': '2026-06-10', 'el8': '2029-03-01', 'el9': '2032-05-31', 'fc40': '2025-05-28', 'fc41': '2025-11-19', 'focal': '2025-04-02', 'jammy': '2027-04-01', 'noble': '2029-04-25', 'oracular': '2025-07-11'}, 'pkg': {'clang': {'bookworm': '14.0', 'el8': '-', 'el9': '-', 'fc40': '-', 'fc41': '-', 'focal': '10.0', 'jammy': '14.0', 'noble': '18.0', 'oracular': '19.0'}, 'cmake': {'bookworm': '3.25.1', 'el8': '3.26.5', 'el9': '3.26.5', 'fc40': '3.28.2', 'fc41': '3.30.5', 'focal': '3.16.3', 'jammy': '3.22.1', 'noble': '3.28.3', 'oracular': '3.30.3'}, 'gcc': {'bookworm': '12.2.0', 'el8': '8.5.0', 'el9': '11.5.0', 'fc40': '14.0.1', 'fc41': '14.2.1', 'focal': '9.3.0', 'jammy': '11.2.0', 'noble': '13.2.0', 'oracular': '14.1.0'}}, 'rpm': ['el8', 'el9', 'fc40', 'fc41']} Not LTS: oracular Not LTS: el8 Not LTS: el9 Not LTS: fc40 Not LTS: fc41 Created current-linux-os-releases.json. Now checking repos. Failed to run: docker manifest inspect docker.openmodelica.org/build-deps:bookworm.nightly.amd64! Skipping ... Failed to run: docker manifest inspect docker.openmodelica.org/build-deps:bookworm.nightly.armhf! Skipping ... Failed to run: docker manifest inspect docker.openmodelica.org/build-deps:bookworm.nightly.arm64! Skipping ... [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] sshagent [ssh-agent] Using credentials hudson (SSH Key for user Hudson) $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-XXXXXXRmhUFa/agent.3233734 SSH_AGENT_PID=3233737 Running ssh-add (command line suppressed) Identity added: /var/lib/jenkins/ws/LINUX_BUILDS_tmp/private_key_11537982425010087113.key (/var/lib/jenkins/ws/LINUX_BUILDS_tmp/private_key_11537982425010087113.key) [ssh-agent] Started. [Pipeline] { [Pipeline] sh + git add current-linux-os-releases.json + git diff-index --quiet HEAD + git config user.email openmodelica@ida.liu.se + git config user.name OpenModelica Hudson + git commit -m Updated current OS versions [detached HEAD f83da4f2] Updated current OS versions 1 file changed, 2 insertions(+), 2 deletions(-) + git push git@gitlab.liu.se:OpenModelica/apt-build.git HEAD:master To gitlab.liu.se:OpenModelica/apt-build.git 2c7a0537..f83da4f2 HEAD -> master [Pipeline] } $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 3233737 killed; [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] readJSON [Pipeline] readJSON [Pipeline] sh + wget -q https://build.openmodelica.org/apt/pool/contrib/openmodelica_1.25.0~dev-256-g15e95b0-1.dsc -O- [Pipeline] sshagent [ssh-agent] Using credentials hudson (SSH Key for user Hudson) $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-XXXXXXXRcbQO/agent.3233771 SSH_AGENT_PID=3233773 Running ssh-add (command line suppressed) Identity added: /var/lib/jenkins/ws/LINUX_BUILDS_tmp/private_key_9910203579312344823.key (/var/lib/jenkins/ws/LINUX_BUILDS_tmp/private_key_9910203579312344823.key) [ssh-agent] Started. [Pipeline] { [Pipeline] sh + + sshsed hudson@build.openmodelica.org s,/var/www/build.openmodelica.org/apt/pool/contrib-,, find /var/www/build.openmodelica.org/apt/pool/ -name openmodelica_1.25.0~dev-256-g15e95b0-1_*.deb [Pipeline] sh + ssh hudson@build.openmodelica.org find+ /var/www/build.openmodelica.org/rpm/ -namesed openmodelica-*.rpm s,/var/www/build.openmodelica.org/rpm/,, [Pipeline] } $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 3233773 killed; [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sh + wget -q https://build.openmodelica.org/apt/pool/contrib/openmodelica_1.24.3-1.dsc -O- [Pipeline] sshagent [ssh-agent] Using credentials hudson (SSH Key for user Hudson) $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-XXXXXXyriDnM/agent.3234950 SSH_AGENT_PID=3234952 Running ssh-add (command line suppressed) Identity added: /var/lib/jenkins/ws/LINUX_BUILDS_tmp/private_key_11404357353129874369.key (/var/lib/jenkins/ws/LINUX_BUILDS_tmp/private_key_11404357353129874369.key) [ssh-agent] Started. [Pipeline] { [Pipeline] sh + ssh hudson@build.openmodelica.org find /var/www/build.openmodelica.org/apt/pool/+ -name openmodelica_1.24.3-1_*.deb sed s,/var/www/build.openmodelica.org/apt/pool/contrib-,, [Pipeline] sh + + sed s,/var/www/build.openmodelica.org/rpm/,,ssh hudson@build.openmodelica.org find /var/www/build.openmodelica.org/rpm/ -name openmodelica-*.rpm [Pipeline] } $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 3234952 killed; [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sh + wget -q https://build.openmodelica.org/apt/pool/contrib/openmodelica_1.24.3-1.dsc -O- [Pipeline] sshagent [ssh-agent] Using credentials hudson (SSH Key for user Hudson) $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-XXXXXX9zaUgu/agent.3235088 SSH_AGENT_PID=3235090 Running ssh-add (command line suppressed) Identity added: /var/lib/jenkins/ws/LINUX_BUILDS_tmp/private_key_6155252367994297429.key (/var/lib/jenkins/ws/LINUX_BUILDS_tmp/private_key_6155252367994297429.key) [ssh-agent] Started. [Pipeline] { [Pipeline] sh + ssh hudson@build.openmodelica.org find /var/www/build.openmodelica.org/apt/pool/ -name openmodelica_1.24.3-1_*.deb + sed s,/var/www/build.openmodelica.org/apt/pool/contrib-,, [Pipeline] sh + ssh+ hudson@build.openmodelica.org findsed /var/www/build.openmodelica.org/rpm/ s,/var/www/build.openmodelica.org/rpm/,, -name openmodelica-*.rpm [Pipeline] } $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 3235090 killed; [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] echo Skipping bookworm/openmodelica_1.24.3-1_amd64.deb (already exists) [Pipeline] echo Skipping bookworm/openmodelica_1.24.3-1_amd64.deb (already exists) [Pipeline] echo Skipping focal/openmodelica_1.25.0~dev-256-g15e95b0-1_amd64.deb (prefix in ignore list) [Pipeline] echo Skipping focal/openmodelica_1.24.3-1_amd64.deb (already exists) [Pipeline] echo Skipping focal/openmodelica_1.24.3-1_amd64.deb (already exists) [Pipeline] echo Skipping jammy/openmodelica_1.24.3-1_amd64.deb (already exists) [Pipeline] echo Skipping jammy/openmodelica_1.24.3-1_amd64.deb (already exists) [Pipeline] echo Skipping noble/openmodelica_1.24.3-1_amd64.deb (already exists) [Pipeline] echo Skipping noble/openmodelica_1.24.3-1_amd64.deb (already exists) [Pipeline] echo Skipping oracular/openmodelica_1.24.3-1_amd64.deb (already exists) [Pipeline] echo Skipping oracular/openmodelica_1.24.3-1_amd64.deb (already exists) [Pipeline] echo Skipping bookworm/openmodelica_1.24.3-1_armhf.deb (already exists) [Pipeline] echo Skipping bookworm/openmodelica_1.24.3-1_armhf.deb (already exists) [Pipeline] echo Skipping focal/openmodelica_1.25.0~dev-256-g15e95b0-1_armhf.deb (prefix in ignore list) [Pipeline] echo Skipping focal/openmodelica_1.24.3-1_armhf.deb (already exists) [Pipeline] echo Skipping focal/openmodelica_1.24.3-1_armhf.deb (already exists) [Pipeline] echo Skipping jammy/openmodelica_1.24.3-1_armhf.deb (already exists) [Pipeline] echo Skipping jammy/openmodelica_1.24.3-1_armhf.deb (already exists) [Pipeline] echo Skipping noble/openmodelica_1.24.3-1_armhf.deb (already exists) [Pipeline] echo Skipping noble/openmodelica_1.24.3-1_armhf.deb (already exists) [Pipeline] echo Skipping bookworm/openmodelica_1.24.3-1_arm64.deb (already exists) [Pipeline] echo Skipping bookworm/openmodelica_1.24.3-1_arm64.deb (already exists) [Pipeline] echo Skipping focal/openmodelica_1.25.0~dev-256-g15e95b0-1_arm64.deb (prefix in ignore list) [Pipeline] echo Skipping focal/openmodelica_1.24.3-1_arm64.deb (already exists) [Pipeline] echo Skipping focal/openmodelica_1.24.3-1_arm64.deb (already exists) [Pipeline] echo Skipping jammy/openmodelica_1.24.3-1_arm64.deb (already exists) [Pipeline] echo Skipping jammy/openmodelica_1.24.3-1_arm64.deb (already exists) [Pipeline] echo Skipping noble/openmodelica_1.24.3-1_arm64.deb (already exists) [Pipeline] echo Skipping noble/openmodelica_1.24.3-1_arm64.deb (already exists) [Pipeline] sh + LC_ALL=C date +%a %b %d %Y [Pipeline] sh + rm -f openmodelica.spec.tpl + wget -q https://raw.githubusercontent.com/OpenModelica/OpenModelicaBuildScripts/master/rpm/SPECS/openmodelica.spec.tpl [Pipeline] readFile [Pipeline] echo NOT skipping el8/openmodelica-nightly-1.25.0~dev~256~g15e95b0-1.el8.x86_64.rpm (not existing or in the ignore list) [Pipeline] echo NOT skipping el9/openmodelica-nightly-1.25.0~dev~256~g15e95b0-1.el9.x86_64.rpm (not existing or in the ignore list) [Pipeline] echo NOT skipping fc40/openmodelica-nightly-1.25.0~dev~256~g15e95b0-1.fc40.x86_64.rpm (not existing or in the ignore list) [Pipeline] echo NOT skipping fc41/openmodelica-nightly-1.25.0~dev~256~g15e95b0-1.fc41.x86_64.rpm (not existing or in the ignore list) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] stage [Pipeline] { (build-dep) [Pipeline] parallel [Pipeline] { (Branch: bookworm nightly amd64) [Pipeline] { (Branch: jammy nightly amd64) [Pipeline] { (Branch: noble nightly amd64) [Pipeline] { (Branch: oracular nightly amd64) [Pipeline] { (Branch: bookworm nightly armhf) [Pipeline] { (Branch: jammy nightly armhf) [Pipeline] { (Branch: noble nightly armhf) [Pipeline] { (Branch: bookworm nightly arm64) [Pipeline] { (Branch: jammy nightly arm64) [Pipeline] { (Branch: noble nightly arm64) [Pipeline] { (Branch: el8) [Pipeline] { (Branch: el9) [Pipeline] { (Branch: fc40) [Pipeline] { (Branch: fc41) [Pipeline] node [Pipeline] node [Pipeline] node Running on r7945-1 in /var/lib/jenkins/ws/LINUX_BUILDS [Pipeline] node Running on ripper2-1 in /var/lib/jenkins1/ws/LINUX_BUILDS Running on asap-1 in /var/lib/jenkins1/ws/LINUX_BUILDS [Pipeline] node Running on r630-1-1 in /var/lib/jenkins1/ws/LINUX_BUILDS [Pipeline] node [Pipeline] node Running on arm-opi-1 in /var/lib/jenkins/ws/LINUX_BUILDS Running on arm-opi-2 in /var/lib/jenkins/ws/LINUX_BUILDS [Pipeline] node Running on arm64-1-1 in /var/lib/jenkins1/ws/LINUX_BUILDS [Pipeline] node [Pipeline] node Running on arm64-1-2 in /var/lib/jenkins2/ws/LINUX_BUILDS [Pipeline] node [Pipeline] node [Pipeline] node Running on ryzen-5950x-1 in /var/lib/jenkins/ws/LINUX_BUILDS [Pipeline] node Running on intel-5820k-1 in /var/lib/jenkins/ws/LINUX_BUILDS Running on intel-4930k-1 in /var/lib/jenkins/ws/LINUX_BUILDS Running on dev.openmodelica.org in /var/lib/jenkins/ws/LINUX_BUILDS [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] wrap [Pipeline] wrap [Pipeline] wrap [Pipeline] wrap [Pipeline] wrap [Pipeline] wrap [Pipeline] wrap [Pipeline] wrap [Pipeline] wrap [Pipeline] wrap [Pipeline] wrap [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] wrap [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh [Pipeline] sh [Pipeline] sh [Pipeline] sh [Pipeline] sh [Pipeline] sh + docker pull debian:bookworm + docker pull ubuntu:jammy [Pipeline] sh [Pipeline] sh + docker pull ubuntu:noble [Pipeline] sh + docker pull ubuntu:oracular [Pipeline] sh [Pipeline] sh [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker pull arm32v7/debian:bookworm + docker pull arm32v7/ubuntu:jammy + docker pull arm32v7/ubuntu:noble + docker pull arm64v8/debian:bookworm + docker pull docker.openmodelica.org/build-deps:el8.amd64 el8.amd64: Pulling from build-deps Digest: sha256:4e11f850e59303e4987f850ddc9650cff0b2b71b8996fc67a00a429915db0640 Status: Image is up to date for docker.openmodelica.org/build-deps:el8.amd64 docker.openmodelica.org/build-deps:el8.amd64 [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { + docker pull docker.openmodelica.org/build-deps:el9.amd64 el9.amd64: Pulling from build-deps Digest: sha256:53f5a091e74241abb98cc0f1895092466605852904178571c67afbc67e2ad316 Status: Image is up to date for docker.openmodelica.org/build-deps:el9.amd64 docker.openmodelica.org/build-deps:el9.amd64 [Pipeline] sh + docker pull docker.openmodelica.org/build-deps:fc40.amd64 fc40.amd64: Pulling from build-deps 6299667869c4: Pulling fs layer 485923326c8a: Pulling fs layer d030384b984f: Pulling fs layer 485923326c8a: Download complete [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker pull docker.openmodelica.org/build-deps:fc41.amd64 + docker inspect -f . docker.openmodelica.org/build-deps:el8.amd64 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer + docker inspect -f . docker.openmodelica.org/build-deps:el9.amd64 . fc41.amd64: Pulling from build-deps 0c5a86865c5d: Pulling fs layer 85122059be2c: Pulling fs layer f62e3f1fef56: Pulling fs layer 85122059be2c: Verifying Checksum 85122059be2c: Download complete ryzen-5950x-1 does not seem to be running inside a container bookworm: Pulling from library/debian Digest: sha256:17122fe3d66916e55c0cbd5bbf54bb3f87b3582f4d86a755a0fd3498d360f91b Status: Image is up to date for debian:bookworm docker.io/library/debian:bookworm jammy: Pulling from library/ubuntu Digest: sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97 Status: Image is up to date for ubuntu:jammy docker.io/library/ubuntu:jammy noble: Pulling from library/ubuntu Digest: sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab Status: Image is up to date for ubuntu:noble docker.io/library/ubuntu:noble oracular: Pulling from library/ubuntu Digest: sha256:102bc1874fdb136fc2d218473f03cf84135cb7496fefdb9c026c0f553cfe1b6d Status: Image is up to date for ubuntu:oracular docker.io/library/ubuntu:oracular [Pipeline] { [Pipeline] } [Pipeline] } [Pipeline] } [Pipeline] } [Pipeline] } [Pipeline] sh [Pipeline] // withEnv [Pipeline] // withEnv [Pipeline] // withEnv [Pipeline] // withEnv [Pipeline] // withEnv [Pipeline] dir Running in /var/lib/jenkins/ws/LINUX_BUILDS/docker.openmodelica.org/build-deps:bookworm.nightly.amd64 [Pipeline] { [Pipeline] dir Running in /var/lib/jenkins1/ws/LINUX_BUILDS/docker.openmodelica.org/build-deps:jammy.nightly.amd64 [Pipeline] { [Pipeline] dir Running in /var/lib/jenkins1/ws/LINUX_BUILDS/docker.openmodelica.org/build-deps:noble.nightly.amd64 [Pipeline] { [Pipeline] dir Running in /var/lib/jenkins1/ws/LINUX_BUILDS/docker.openmodelica.org/build-deps:oracular.nightly.amd64 [Pipeline] { [Pipeline] withDockerContainer intel-5820k-1 does not seem to be running inside a container + cat /var/lib/openmodelica-depends/openmodelica.spec.tpl [Pipeline] { [Pipeline] writeFile [Pipeline] writeFile bookworm: Pulling from arm32v7/debian Digest: sha256:ae38a85c832a88e347cc282a5fefd4c1a93c54752991f1465791b968597c6fa2 Status: Image is up to date for arm32v7/debian:bookworm docker.io/arm32v7/debian:bookworm [Pipeline] writeFile [Pipeline] writeFile [Pipeline] sh [Pipeline] } jammy: Pulling from arm32v7/ubuntu Digest: sha256:9ae00fb80515308337590e845253a9c5446929c996c478d522253b0e98584c1e Status: Image is up to date for arm32v7/ubuntu:jammy docker.io/arm32v7/ubuntu:jammy noble: Pulling from arm32v7/ubuntu Digest: sha256:7d44601b45406bc9f90b1aff89fb8cf17d5aeddb40c322d65f79635134860ecb Status: Image is up to date for arm32v7/ubuntu:noble docker.io/arm32v7/ubuntu:noble $ docker run -t -d -u 1001:1001 -w /var/lib/jenkins/ws/LINUX_BUILDS -v /var/lib/jenkins/ws/LINUX_BUILDS:/var/lib/jenkins/ws/LINUX_BUILDS:rw,z -v /var/lib/jenkins/ws/LINUX_BUILDS_tmp:/var/lib/jenkins/ws/LINUX_BUILDS_tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** docker.openmodelica.org/build-deps:el8.amd64 cat bookworm: Pulling from arm64v8/debian Digest: sha256:176439ee6d84a10b9289ba71d2aa60d42a088646db742262e1636766c4f4528a Status: Image is up to date for arm64v8/debian:bookworm docker.io/arm64v8/debian:bookworm + cat /var/lib/openmodelica-depends/openmodelica.spec.tpl $ docker top 3d836ed371432ea6f5ba77aa38742e0c9b28d37ece305dc9cac8d72f066d98af -eo pid,comm $ docker run -t -d -u 1001:1001 -w /var/lib/jenkins/ws/LINUX_BUILDS -v /var/lib/jenkins/ws/LINUX_BUILDS:/var/lib/jenkins/ws/LINUX_BUILDS:rw,z -v /var/lib/jenkins/ws/LINUX_BUILDS_tmp:/var/lib/jenkins/ws/LINUX_BUILDS_tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** docker.openmodelica.org/build-deps:el9.amd64 cat $ docker top b8593ce70a18eb3ca697d13577e45ab355794fdb2606ddc1d7542af0c70f0114 -eo pid,comm $ docker stop --time=1 3d836ed371432ea6f5ba77aa38742e0c9b28d37ece305dc9cac8d72f066d98af [Pipeline] writeFile [Pipeline] writeFile [Pipeline] } [Pipeline] writeFile [Pipeline] writeFile [Pipeline] // withDockerContainer [Pipeline] sh [Pipeline] } [Pipeline] } [Pipeline] } [Pipeline] } 0c5a86865c5d: Verifying Checksum 0c5a86865c5d: Download complete + rm -f openmodelica.spec.tpl.el8 + wget -q -O openmodelica.spec.tpl.el8 https://raw.githubusercontent.com/OpenModelica/OpenModelicaBuildScripts/master/rpm/SPECS/openmodelica.spec.tpl 6299667869c4: Verifying Checksum 6299667869c4: Download complete $ docker rm -f --volumes 3d836ed371432ea6f5ba77aa38742e0c9b28d37ece305dc9cac8d72f066d98af $ docker stop --time=1 b8593ce70a18eb3ca697d13577e45ab355794fdb2606ddc1d7542af0c70f0114 [Pipeline] writeFile [Pipeline] writeFile [Pipeline] // withEnv [Pipeline] dir Running in /var/lib/jenkins/ws/LINUX_BUILDS/docker.openmodelica.org/build-deps:bookworm.nightly.armhf [Pipeline] { [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] // withEnv [Pipeline] // withEnv [Pipeline] // withEnv [Pipeline] // withDockerContainer [Pipeline] dir Running in /var/lib/jenkins/ws/LINUX_BUILDS/docker.openmodelica.org/build-deps:jammy.nightly.armhf [Pipeline] { [Pipeline] dir Running in /var/lib/jenkins1/ws/LINUX_BUILDS/docker.openmodelica.org/build-deps:noble.nightly.armhf [Pipeline] { [Pipeline] dir Running in /var/lib/jenkins2/ws/LINUX_BUILDS/docker.openmodelica.org/build-deps:bookworm.nightly.arm64 [Pipeline] { [Pipeline] sh [Pipeline] sh [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] } [Pipeline] } [Pipeline] } [Pipeline] writeFile [Pipeline] writeFile [Pipeline] } [Pipeline] writeFile [Pipeline] // dir [Pipeline] // dir [Pipeline] withDockerRegistry [Pipeline] withDockerRegistry [Pipeline] // dir [Pipeline] withDockerRegistry [Pipeline] // dir [Pipeline] withDockerRegistry [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] } [Pipeline] } [Pipeline] } [Pipeline] // dir [Pipeline] // dir [Pipeline] // dir [Pipeline] withDockerRegistry [Pipeline] withDockerRegistry [Pipeline] withDockerRegistry [Pipeline] } [Pipeline] // dir [Pipeline] withDockerRegistry [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] isUnix [Pipeline] sh [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sh [Pipeline] sh [Pipeline] sh + test -s openmodelica.spec.tpl.el8 [Pipeline] echo # See also Jenkinsfile in apt-build repository for stuff that is installed BEFORE everything here # Don't try fancy stuff like debuginfo, which is useless on binary-only # packages. Don't strip binary too # Be sure buildpolicy set to do nothing %define __spec_install_post %{nil} %define debug_package %{nil} %define __os_install_post %{_dbpath}/brp-compress Summary: OpenModelica Name: NAME Version: RPMVERSION Release: RELEASENUM%{?dist} License: OSMC-PL Group: Development/Tools # spectool -g -R SPECS/xxx.spec # sudo yum-builddep SPECS/xxx.spec SOURCE0 : https://build.openmodelica.org/apt/pool/contrib/openmodelica_DEBVERSION.orig.tar.xz SOURCE1 : https://openmodelica.org/doc/openmodelica-doc-DOCUMENTATIONVERSION.tar.xz PATCHES URL: https://openmodelica.org/ %if 0%{?rhel} == 6 Autoreq: 0 Requires: readline Requires: qt5-qtbase Requires: qt5-qtsvg Requires: qt5-qtwebkit Requires: qt5-qtxmlpatterns Requires: libffi %endif Autoprov: 0 Prefix: /opt/%{name} Prefix: %{_bindir} %global __requires_exclude ^(PRIVATELIBS)$ # Recommended (for the repo): git rpm-build rpmdevtools epel-release %if 0%{?rhel} > 0 # CentOS / RHEL requires the EPEL repository (for omniORB, etc) BuildRequires: epel-release Requires: epel-release %endif Requires: lapack-devel Requires: make Requires: gcc Requires: gcc-gfortran Requires: gcc-c++ BuildRequires: automake %if 0%{?rhel} >= 8 %define withomniorb --without-omniORB %else %define withomniorb --with-omniORB BuildRequires: omniORB-devel BuildRequires: lpsolve-devel %endif BuildRequires: expat-devel BuildRequires: bison BuildRequires: flex BuildRequires: lapack-devel BuildRequires: libtool BuildRequires: uuid BuildRequires: uuid-devel BuildRequires: hdf5-devel BuildRequires: boost-devel BuildRequires: boost-static BuildRequires: hwloc-devel BuildRequires: readline-devel BuildRequires: libffi-devel BuildRequires: curl-devel BuildRequires: gettext BuildRequires: make BuildRequires: java BuildRequires: tar BuildRequires: xz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: qt5-qtwebkit-devel BuildRequires: qt5-linguist BuildRequires: qt5-qttools BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtsvg-devel %if 0%{?rhel} >= 7 BuildRequires: qt5-qt3d-devel %endif BuildRequires: qt5-qtxmlpatterns-devel # Use cmake versions > 3. On EL7 this is provided by cmake3 package. # On EL > 7 it is just cmake. %if 0%{?rhel} == 7 BuildRequires: cmake3 %define cmakecommand CMAKE=cmake3 %else BuildRequires: cmake %define cmakecommand CMAKE=cmake %endif # The base centos:8 image (we use for our build-deps:el8 image) comes with # broken cmake package due to old libarchive (v3.3.2). v3.3.3 Seems to work. # Once the base image is updated this can be removed. %if 0%{?rhel} == 8 BuildRequires: libarchive >= 3.3.3 %endif # Use gcc-11 on EL8 as well. devtoolset does not seem to be available on # EL8. One is supposed to use gcc-toolset instead. %{?el8:Requires: gcc-toolset-11-gcc gcc-toolset-11-gcc-c++ gcc-toolset-11-gcc-gfortran} %if 0%{?rhel} == 8 BuildRequires: gcc-toolset-11-gcc gcc-toolset-11-gcc-c++ gcc-toolset-11-gcc-gfortran %define devtoolsconfigureflags CC=/opt/rh/gcc-toolset-11/root/usr/bin/gcc CXX=/opt/rh/gcc-toolset-11/root/usr/bin/g++ FC=/opt/rh/gcc-toolset-11/root/usr/bin/gfortran AS=/opt/rh/gcc-toolset-11/root/usr/bin/as %endif # EL7 has -static-libstdc++ inside devtools (but the system g++ does not know the flag) -- adrpo: check this, also for el6 %{?el7:Requires: devtoolset-11-gcc} %{?el7:Requires: devtoolset-11-gcc-c++} %{?el7:Requires: devtoolset-11-gcc-gfortran} %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 BuildRequires: devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-gcc-gfortran %define devtoolsconfigureflags CC=/opt/rh/devtoolset-11/root/usr/bin/gcc CXX=/opt/rh/devtoolset-11/root/usr/bin/g++ FC=/opt/rh/devtoolset-11/root/usr/bin/gfortran %endif %if 0%{?fedora} >= 25 BuildRequires: OpenSceneGraph-devel %endif # We should use clang, but OMEdit does not compile with it due to odd default qmake flags Requires: gcc Requires: gcc-c++ Requires: lapack-devel Requires(post): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives # CentOS does not have suggests %if 0%{?fedora} >= 24 || 0%{?rhel} >= 8 Suggests: boost-devel Suggests: boost-static Suggests: lapack-static Suggests: openblas-static %else Requires: boost-devel Requires: boost-static %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description %{summary} %prep %setup -q -n openmodelica_DEBVERSION tar xJf %{_sourcedir}/openmodelica-doc-DOCUMENTATIONVERSION.tar.xz PATCHCMDS %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 source /opt/rh/devtoolset-11/enable %endif %if 0%{?rhel} == 8 source /opt/rh/gcc-toolset-11/enable %endif autoreconf --install ./configure CFLAGS="-Os" CXXFLAGS="-Os" QTDIR=/usr/%{_lib}/qt5/ %{withomniorb} CONFIGUREFLAGS %{?devtoolsconfigureflags} --without-omc --prefix=/opt/%{name} --without-omlibrary %{cmakecommand} %build %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 source /opt/rh/devtoolset-11/enable %endif %if 0%{?rhel} == 8 source /opt/rh/gcc-toolset-11/enable %endif make -j8 test ! -f libraries/install-index.json || make -j8 omlibrary %install rm -rf %{buildroot} make install DESTDIR="%{buildroot}" mkdir -p %{buildroot}/opt/%{name}/lib/ %{buildroot}/opt/%{name}/share/doc/omc/ %{buildroot}%{_bindir} ln -s /usr/lib/omlibrary %{buildroot}/opt/%{name}/lib/ ln -s /opt/%{name}/bin/omc %{buildroot}%{_bindir}/omc-BRANCH ln -s /opt/%{name}/bin/OMEdit %{buildroot}%{_bindir}/OMEdit-BRANCH ln -s /opt/%{name}/bin/OMShell %{buildroot}%{_bindir}/OMShell-BRANCH ln -s /opt/%{name}/bin/OMShell-terminal %{buildroot}%{_bindir}/OMShell-terminal-BRANCH ln -s /opt/%{name}/bin/OMNotebook %{buildroot}%{_bindir}/OMNotebook-BRANCH ln -s /opt/%{name}/bin/OMPlot %{buildroot}%{_bindir}/OMPlot-BRANCH touch %{buildroot}%{_bindir}/omc touch %{buildroot}%{_bindir}/OMEdit touch %{buildroot}%{_bindir}/OMShell touch %{buildroot}%{_bindir}/OMShell-terminal touch %{buildroot}%{_bindir}/OMNotebook touch %{buildroot}%{_bindir}/OMPlot cp -a openmodelica-doc*/* %{buildroot}/opt/%{name}/share/doc/omc/ %postun if [ "$1" -ge "1" ]; then if [ "`readlink %{_sysconfdir}/alternatives/openmodelica`" == "%{_bindir}/omc-BRANCH" ]; then %{_sbindir}/alternatives --set openmodelica %{_bindir}/omc-BRANCH fi fi %post %{_sbindir}/update-alternatives --install %{_bindir}/omc openmodelica %{_bindir}/omc-BRANCH PRIORITY \ --slave %{_bindir}/OMEdit openmodelica-OMEdit %{_bindir}/OMEdit-BRANCH \ --slave %{_bindir}/OMShell openmodelica-OMShell %{_bindir}/OMShell-BRANCH \ --slave %{_bindir}/OMShell-terminal openmodelica-OMShell-terminal %{_bindir}/OMShell-terminal-BRANCH \ --slave %{_bindir}/OMNotebook openmodelica-OMNotebook %{_bindir}/OMNotebook-BRANCH \ --slave %{_bindir}/OMPlot openmodelica-OMPlot %{_bindir}/OMPlot-BRANCH %preun if [ $1 = 0 ]; then %{_sbindir}/update-alternatives --remove openmodelica %{_bindir}/omc-BRANCH fi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) /opt/%{name}/* %{_bindir}/*-BRANCH %ghost %{_bindir}/omc %ghost %{_bindir}/OMEdit %ghost %{_bindir}/OMShell %ghost %{_bindir}/OMShell-terminal %ghost %{_bindir}/OMNotebook %ghost %{_bindir}/OMPlot %changelog * DATE OpenModelica ${version}-1 - First Build [Pipeline] writeFile [Pipeline] sh + rm -f openmodelica.spec.tpl.el9 + wget -q -O openmodelica.spec.tpl.el9 https://raw.githubusercontent.com/OpenModelica/OpenModelicaBuildScripts/master/rpm/SPECS/openmodelica.spec.tpl [Pipeline] sh [Pipeline] { [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh [Pipeline] sh [Pipeline] { [Pipeline] { [Pipeline] isUnix [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sh [Pipeline] sh + docker build -t docker.openmodelica.org/build-deps:bookworm.nightly.amd64 docker.openmodelica.org/build-deps:bookworm.nightly.amd64 DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 8.704kB Step 1/3 : FROM debian:bookworm ---> ff869c3288a4 Step 2/3 : COPY openmodelica.dsc openmodelica-build-deps libiomp-fake /var/lib/openmodelica-depends/ ---> Using cache ---> d42e0beb19a9 Step 3/3 : RUN export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/* ---> Running in 26f642bdccb4 + docker build -t docker.openmodelica.org/build-deps:jammy.nightly.amd64 docker.openmodelica.org/build-deps:jammy.nightly.amd64 DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 8.704kB Step 1/3 : FROM ubuntu:jammy ---> 97271d29cb79 Step 2/3 : COPY openmodelica.dsc openmodelica-build-deps libiomp-fake /var/lib/openmodelica-depends/ ---> Using cache ---> e95962290f1a Step 3/3 : RUN export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/* ---> Using cache ---> 97e007ab3e80 Successfully built 97e007ab3e80 Successfully tagged docker.openmodelica.org/build-deps:jammy.nightly.amd64 [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker build -t docker.openmodelica.org/build-deps:oracular.nightly.amd64 docker.openmodelica.org/build-deps:oracular.nightly.amd64 DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 8.704kB Step 1/3 : FROM ubuntu:oracular ---> e40b6e31bd8c Step 2/3 : COPY openmodelica.dsc openmodelica-build-deps libiomp-fake /var/lib/openmodelica-depends/ ---> Using cache ---> 9623b1fcd20a Step 3/3 : RUN export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/* ---> Using cache ---> d10360eed7e7 Successfully built d10360eed7e7 Successfully tagged docker.openmodelica.org/build-deps:oracular.nightly.amd64 [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker build -t docker.openmodelica.org/build-deps:noble.nightly.amd64 docker.openmodelica.org/build-deps:noble.nightly.amd64 DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 8.704kB Step 1/3 : FROM ubuntu:noble ---> b1d9df8ab815 Step 2/3 : COPY openmodelica.dsc openmodelica-build-deps libiomp-fake /var/lib/openmodelica-depends/ ---> Using cache ---> 9c4c3f632d7a Step 3/3 : RUN export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/* ---> Using cache ---> f6a299f7e21c Successfully built f6a299f7e21c Successfully tagged docker.openmodelica.org/build-deps:noble.nightly.amd64 [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + diff -uw openmodelica.spec.tpl.old.el8 openmodelica.spec.tpl.el8 [Pipeline] } [Pipeline] // wrap [Pipeline] } + test -s openmodelica.spec.tpl.el9 [Pipeline] // node [Pipeline] } [Pipeline] echo # See also Jenkinsfile in apt-build repository for stuff that is installed BEFORE everything here # Don't try fancy stuff like debuginfo, which is useless on binary-only # packages. Don't strip binary too # Be sure buildpolicy set to do nothing %define __spec_install_post %{nil} %define debug_package %{nil} %define __os_install_post %{_dbpath}/brp-compress Summary: OpenModelica Name: NAME Version: RPMVERSION Release: RELEASENUM%{?dist} License: OSMC-PL Group: Development/Tools # spectool -g -R SPECS/xxx.spec # sudo yum-builddep SPECS/xxx.spec SOURCE0 : https://build.openmodelica.org/apt/pool/contrib/openmodelica_DEBVERSION.orig.tar.xz SOURCE1 : https://openmodelica.org/doc/openmodelica-doc-DOCUMENTATIONVERSION.tar.xz PATCHES URL: https://openmodelica.org/ %if 0%{?rhel} == 6 Autoreq: 0 Requires: readline Requires: qt5-qtbase Requires: qt5-qtsvg Requires: qt5-qtwebkit Requires: qt5-qtxmlpatterns Requires: libffi %endif Autoprov: 0 Prefix: /opt/%{name} Prefix: %{_bindir} %global __requires_exclude ^(PRIVATELIBS)$ # Recommended (for the repo): git rpm-build rpmdevtools epel-release %if 0%{?rhel} > 0 # CentOS / RHEL requires the EPEL repository (for omniORB, etc) BuildRequires: epel-release Requires: epel-release %endif Requires: lapack-devel Requires: make Requires: gcc Requires: gcc-gfortran Requires: gcc-c++ BuildRequires: automake %if 0%{?rhel} >= 8 %define withomniorb --without-omniORB %else %define withomniorb --with-omniORB BuildRequires: omniORB-devel BuildRequires: lpsolve-devel %endif BuildRequires: expat-devel BuildRequires: bison BuildRequires: flex BuildRequires: lapack-devel BuildRequires: libtool BuildRequires: uuid BuildRequires: uuid-devel BuildRequires: hdf5-devel BuildRequires: boost-devel BuildRequires: boost-static BuildRequires: hwloc-devel BuildRequires: readline-devel BuildRequires: libffi-devel BuildRequires: curl-devel BuildRequires: gettext BuildRequires: make BuildRequires: java BuildRequires: tar BuildRequires: xz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: qt5-qtwebkit-devel BuildRequires: qt5-linguist BuildRequires: qt5-qttools BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtsvg-devel %if 0%{?rhel} >= 7 BuildRequires: qt5-qt3d-devel %endif BuildRequires: qt5-qtxmlpatterns-devel # Use cmake versions > 3. On EL7 this is provided by cmake3 package. # On EL > 7 it is just cmake. %if 0%{?rhel} == 7 BuildRequires: cmake3 %define cmakecommand CMAKE=cmake3 %else BuildRequires: cmake %define cmakecommand CMAKE=cmake %endif # The base centos:8 image (we use for our build-deps:el8 image) comes with # broken cmake package due to old libarchive (v3.3.2). v3.3.3 Seems to work. # Once the base image is updated this can be removed. %if 0%{?rhel} == 8 BuildRequires: libarchive >= 3.3.3 %endif # Use gcc-11 on EL8 as well. devtoolset does not seem to be available on # EL8. One is supposed to use gcc-toolset instead. %{?el8:Requires: gcc-toolset-11-gcc gcc-toolset-11-gcc-c++ gcc-toolset-11-gcc-gfortran} %if 0%{?rhel} == 8 BuildRequires: gcc-toolset-11-gcc gcc-toolset-11-gcc-c++ gcc-toolset-11-gcc-gfortran %define devtoolsconfigureflags CC=/opt/rh/gcc-toolset-11/root/usr/bin/gcc CXX=/opt/rh/gcc-toolset-11/root/usr/bin/g++ FC=/opt/rh/gcc-toolset-11/root/usr/bin/gfortran AS=/opt/rh/gcc-toolset-11/root/usr/bin/as %endif # EL7 has -static-libstdc++ inside devtools (but the system g++ does not know the flag) -- adrpo: check this, also for el6 %{?el7:Requires: devtoolset-11-gcc} %{?el7:Requires: devtoolset-11-gcc-c++} %{?el7:Requires: devtoolset-11-gcc-gfortran} %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 BuildRequires: devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-gcc-gfortran %define devtoolsconfigureflags CC=/opt/rh/devtoolset-11/root/usr/bin/gcc CXX=/opt/rh/devtoolset-11/root/usr/bin/g++ FC=/opt/rh/devtoolset-11/root/usr/bin/gfortran %endif %if 0%{?fedora} >= 25 BuildRequires: OpenSceneGraph-devel %endif # We should use clang, but OMEdit does not compile with it due to odd default qmake flags Requires: gcc Requires: gcc-c++ Requires: lapack-devel Requires(post): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives # CentOS does not have suggests %if 0%{?fedora} >= 24 || 0%{?rhel} >= 8 Suggests: boost-devel Suggests: boost-static Suggests: lapack-static Suggests: openblas-static %else Requires: boost-devel Requires: boost-static %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description %{summary} %prep %setup -q -n openmodelica_DEBVERSION tar xJf %{_sourcedir}/openmodelica-doc-DOCUMENTATIONVERSION.tar.xz PATCHCMDS %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 source /opt/rh/devtoolset-11/enable %endif %if 0%{?rhel} == 8 source /opt/rh/gcc-toolset-11/enable %endif autoreconf --install ./configure CFLAGS="-Os" CXXFLAGS="-Os" QTDIR=/usr/%{_lib}/qt5/ %{withomniorb} CONFIGUREFLAGS %{?devtoolsconfigureflags} --without-omc --prefix=/opt/%{name} --without-omlibrary %{cmakecommand} %build %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 source /opt/rh/devtoolset-11/enable %endif %if 0%{?rhel} == 8 source /opt/rh/gcc-toolset-11/enable %endif make -j8 test ! -f libraries/install-index.json || make -j8 omlibrary %install rm -rf %{buildroot} make install DESTDIR="%{buildroot}" mkdir -p %{buildroot}/opt/%{name}/lib/ %{buildroot}/opt/%{name}/share/doc/omc/ %{buildroot}%{_bindir} ln -s /usr/lib/omlibrary %{buildroot}/opt/%{name}/lib/ ln -s /opt/%{name}/bin/omc %{buildroot}%{_bindir}/omc-BRANCH ln -s /opt/%{name}/bin/OMEdit %{buildroot}%{_bindir}/OMEdit-BRANCH ln -s /opt/%{name}/bin/OMShell %{buildroot}%{_bindir}/OMShell-BRANCH ln -s /opt/%{name}/bin/OMShell-terminal %{buildroot}%{_bindir}/OMShell-terminal-BRANCH ln -s /opt/%{name}/bin/OMNotebook %{buildroot}%{_bindir}/OMNotebook-BRANCH ln -s /opt/%{name}/bin/OMPlot %{buildroot}%{_bindir}/OMPlot-BRANCH touch %{buildroot}%{_bindir}/omc touch %{buildroot}%{_bindir}/OMEdit touch %{buildroot}%{_bindir}/OMShell touch %{buildroot}%{_bindir}/OMShell-terminal touch %{buildroot}%{_bindir}/OMNotebook touch %{buildroot}%{_bindir}/OMPlot cp -a openmodelica-doc*/* %{buildroot}/opt/%{name}/share/doc/omc/ %postun if [ "$1" -ge "1" ]; then if [ "`readlink %{_sysconfdir}/alternatives/openmodelica`" == "%{_bindir}/omc-BRANCH" ]; then %{_sbindir}/alternatives --set openmodelica %{_bindir}/omc-BRANCH fi fi %post %{_sbindir}/update-alternatives --install %{_bindir}/omc openmodelica %{_bindir}/omc-BRANCH PRIORITY \ --slave %{_bindir}/OMEdit openmodelica-OMEdit %{_bindir}/OMEdit-BRANCH \ --slave %{_bindir}/OMShell openmodelica-OMShell %{_bindir}/OMShell-BRANCH \ --slave %{_bindir}/OMShell-terminal openmodelica-OMShell-terminal %{_bindir}/OMShell-terminal-BRANCH \ --slave %{_bindir}/OMNotebook openmodelica-OMNotebook %{_bindir}/OMNotebook-BRANCH \ --slave %{_bindir}/OMPlot openmodelica-OMPlot %{_bindir}/OMPlot-BRANCH %preun if [ $1 = 0 ]; then %{_sbindir}/update-alternatives --remove openmodelica %{_bindir}/omc-BRANCH fi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) /opt/%{name}/* %{_bindir}/*-BRANCH %ghost %{_bindir}/omc %ghost %{_bindir}/OMEdit %ghost %{_bindir}/OMShell %ghost %{_bindir}/OMShell-terminal %ghost %{_bindir}/OMNotebook %ghost %{_bindir}/OMPlot %changelog * DATE OpenModelica ${version}-1 - First Build [Pipeline] writeFile [Pipeline] sh + docker build -t docker.openmodelica.org/build-deps:bookworm.nightly.arm64 docker.openmodelica.org/build-deps:bookworm.nightly.arm64 DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 8.704kB Step 1/3 : FROM arm64v8/debian:bookworm ---> 995ceb661097 Step 2/3 : COPY openmodelica.dsc openmodelica-build-deps libiomp-fake /var/lib/openmodelica-depends/ ---> Using cache ---> 2078466da0d9 Step 3/3 : RUN export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/* ---> Running in ef05f6224a23 + docker build -t docker.openmodelica.org/build-deps:noble.nightly.armhf docker.openmodelica.org/build-deps:noble.nightly.armhf DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 8.704kB Step 1/3 : FROM arm32v7/ubuntu:noble ---> dbc74e6cb60b Step 2/3 : COPY openmodelica.dsc openmodelica-build-deps libiomp-fake /var/lib/openmodelica-depends/ ---> Using cache ---> f3480a75ee63 Step 3/3 : RUN export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/* ---> Using cache ---> bf616f13bee2 Successfully built bf616f13bee2 Successfully tagged docker.openmodelica.org/build-deps:noble.nightly.armhf [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker build -t docker.openmodelica.org/build-deps:bookworm.nightly.armhf docker.openmodelica.org/build-deps:bookworm.nightly.armhf DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 8.704kB Step 1/3 : FROM arm32v7/debian:bookworm ---> 2c9a68c85f11 Step 2/3 : COPY openmodelica.dsc openmodelica-build-deps libiomp-fake /var/lib/openmodelica-depends/ ---> Using cache ---> 853eca793be4 Step 3/3 : RUN export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/* ---> Running in f953b760c180 ls: cannot access '/etc/apt/sources.list': No such file or directory ls: cannot access '/etc/apt/sources.list.d/*.list': No such file or directory sed: no input files + docker build -t docker.openmodelica.org/build-deps:jammy.nightly.armhf docker.openmodelica.org/build-deps:jammy.nightly.armhf DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 8.704kB Step 1/3 : FROM arm32v7/ubuntu:jammy ---> 961b5577e6c5 Step 2/3 : COPY openmodelica.dsc openmodelica-build-deps libiomp-fake /var/lib/openmodelica-depends/ ---> Using cache ---> 1791df25ffbc Step 3/3 : RUN export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/* ---> Using cache ---> 33db348c9de2 Successfully built 33db348c9de2 Successfully tagged docker.openmodelica.org/build-deps:jammy.nightly.armhf [Pipeline] } [Pipeline] // withEnv + docker tag docker.openmodelica.org/build-deps:jammy.nightly.amd64 docker.openmodelica.org/build-deps:jammy.nightly.amd64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker tag docker.openmodelica.org/build-deps:oracular.nightly.amd64 docker.openmodelica.org/build-deps:oracular.nightly.amd64 [Pipeline] sh + docker tag docker.openmodelica.org/build-deps:noble.nightly.amd64 docker.openmodelica.org/build-deps:noble.nightly.amd64 [Pipeline] } [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + diff -uw openmodelica.spec.tpl.old.el9 openmodelica.spec.tpl.el9 [Pipeline] sh [Pipeline] } [Pipeline] // wrap [Pipeline] } [Pipeline] // node [Pipeline] } $ docker rm -f --volumes b8593ce70a18eb3ca697d13577e45ab355794fdb2606ddc1d7542af0c70f0114 + docker tag docker.openmodelica.org/build-deps:noble.nightly.armhf docker.openmodelica.org/build-deps:noble.nightly.armhf [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins/ws/LINUX_BUILDS_tmp/5978b583-7212-453b-838d-5da7569740e2/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins1/ws/LINUX_BUILDS_tmp/1442acaf-8ab6-43e3-8be3-cac04a52a7c8/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded + docker tag docker.openmodelica.org/build-deps:jammy.nightly.armhf docker.openmodelica.org/build-deps:jammy.nightly.armhf + docker push docker.openmodelica.org/build-deps:jammy.nightly.amd64 $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins1/ws/LINUX_BUILDS_tmp/8fb607dd-be79-4637-b97f-3e0b6402b8a1/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded The push refers to repository [docker.openmodelica.org/build-deps] e9a853b319f0: Preparing 540bc8a435c9: Preparing 2573e0d81582: Preparing 540bc8a435c9: Layer already exists 2573e0d81582: Layer already exists e9a853b319f0: Layer already exists jammy.nightly.amd64: digest: sha256:55be13dd1cb0e928bef128f44fd3f9b01980a5c6a779f054f34b6e5bf18ce80e size: 951 $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins1/ws/LINUX_BUILDS_tmp/bd832cf3-dfc5-434f-935b-db1da9e58425/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] } [Pipeline] // withEnv [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] // wrap [Pipeline] } [Pipeline] sh + docker push docker.openmodelica.org/build-deps:oracular.nightly.amd64 The push refers to repository [docker.openmodelica.org/build-deps] 791a9dc33a7b: Preparing 0773e7b52b97: Preparing 9c8b3e5cca67: Preparing 9c8b3e5cca67: Layer already exists 791a9dc33a7b: Layer already exists 0773e7b52b97: Layer already exists oracular.nightly.amd64: digest: sha256:cccc25fc8e922cae78146b18f2e1705fef5f37d03d0a23bb02c3bbbff5ab465a size: 951 $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins1/ws/LINUX_BUILDS_tmp/67c593ae-c3dc-45b6-bdf1-f6c017be6280/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins2/ws/LINUX_BUILDS_tmp/c5567b9e-a4e7-486c-aa44-1baa3a35f8de/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins/ws/LINUX_BUILDS_tmp/5a317264-8cc5-4fa1-9c68-cb330adbff80/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded + docker push docker.openmodelica.org/build-deps:noble.nightly.amd64 The push refers to repository [docker.openmodelica.org/build-deps] 641e7fc26498: Preparing 2b4ed2aeafcf: Preparing 687d50f2f6a6: Preparing 641e7fc26498: Layer already exists 687d50f2f6a6: Layer already exists 2b4ed2aeafcf: Layer already exists noble.nightly.amd64: digest: sha256:17387ac6fd3f7720523becaff139b378f1f1190c935b32ca226f83c9b4963e51 size: 951 $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins/ws/LINUX_BUILDS_tmp/831965db-2200-4303-91a4-fa1855ab40b1/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded [Pipeline] // node [Pipeline] } [Pipeline] } [Pipeline] } [Pipeline] // withEnv [Pipeline] // withEnv [Pipeline] } [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] // wrap [Pipeline] } [Pipeline] } [Pipeline] // node [Pipeline] // wrap [Pipeline] } [Pipeline] } [Pipeline] // node [Pipeline] } The command '/bin/sh -c export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 4 [Pipeline] } [Pipeline] // withEnv ls: cannot access '/etc/apt/sources.list': No such file or directory ls: cannot access '/etc/apt/sources.list.d/*.list': No such file or directory sed: no input files The command '/bin/sh -c export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 4 [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // wrap [Pipeline] } [Pipeline] } [Pipeline] // node [Pipeline] // withEnv [Pipeline] } Failed in branch bookworm nightly amd64 [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } + docker push docker.openmodelica.org/build-deps:noble.nightly.armhf The push refers to repository [docker.openmodelica.org/build-deps] c203083c168b: Preparing c55f4cc49d17: Preparing ced9fee827ea: Preparing ced9fee827ea: Layer already exists c203083c168b: Layer already exists c55f4cc49d17: Layer already exists [Pipeline] // wrap [Pipeline] } [Pipeline] // node [Pipeline] } Failed in branch bookworm nightly armhf Running on arm-opi-1 in /var/lib/jenkins/ws/LINUX_BUILDS [Pipeline] { [Pipeline] wrap [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker push docker.openmodelica.org/build-deps:jammy.nightly.armhf The push refers to repository [docker.openmodelica.org/build-deps] 2ca1639bb72f: Preparing f58282a6047e: Preparing 89724f6f5a37: Preparing 2ca1639bb72f: Layer already exists f58282a6047e: Layer already exists 89724f6f5a37: Layer already exists noble.nightly.armhf: digest: sha256:8afd92053907123c30212fb71838f2869c7b27cb52cabb285fca29b002a82161 size: 950 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // wrap ls: cannot access '/etc/apt/sources.list': No such file or directory ls: cannot access '/etc/apt/sources.list.d/*.list': No such file or directory sed: no input files [Pipeline] } [Pipeline] // node [Pipeline] } Running on arm64-1-1 in /var/lib/jenkins1/ws/LINUX_BUILDS [Pipeline] { [Pipeline] wrap + docker pull arm64v8/ubuntu:jammy [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh jammy.nightly.armhf: digest: sha256:d47424a6a6ae2bbc244a10aeb1cf659459ccf6a716517cbff46f8b62cc439536 size: 950 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // wrap [Pipeline] } [Pipeline] // node [Pipeline] } The command '/bin/sh -c export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // wrap [Pipeline] } [Pipeline] // node [Pipeline] } Failed in branch bookworm nightly arm64 + docker pull arm64v8/ubuntu:noble 0c5a86865c5d: Pull complete 85122059be2c: Pull complete jammy: Pulling from arm64v8/ubuntu Digest: sha256:299378f154a199f1cbaedab607dd20b901f6824b26de4c33924ae7c9b6357d61 Status: Image is up to date for arm64v8/ubuntu:jammy docker.io/arm64v8/ubuntu:jammy [Pipeline] } [Pipeline] // withEnv [Pipeline] dir Running in /var/lib/jenkins/ws/LINUX_BUILDS/docker.openmodelica.org/build-deps:jammy.nightly.arm64 [Pipeline] { [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] } [Pipeline] // dir [Pipeline] withDockerRegistry [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker build -t docker.openmodelica.org/build-deps:jammy.nightly.arm64 docker.openmodelica.org/build-deps:jammy.nightly.arm64 DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 8.704kB Step 1/3 : FROM arm64v8/ubuntu:jammy ---> 981912c48e9a Step 2/3 : COPY openmodelica.dsc openmodelica-build-deps libiomp-fake /var/lib/openmodelica-depends/ ---> Using cache ---> ff84004187f9 Step 3/3 : RUN export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/* ---> Using cache ---> 140c11148787 Successfully built 140c11148787 Successfully tagged docker.openmodelica.org/build-deps:jammy.nightly.arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh noble: Pulling from arm64v8/ubuntu Digest: sha256:56667caaaa5a0d9c20d252fd4f7eda2cf63493ab8fcc0ea8d990a4cbfc118321 Status: Image is up to date for arm64v8/ubuntu:noble docker.io/arm64v8/ubuntu:noble [Pipeline] } [Pipeline] // withEnv [Pipeline] dir Running in /var/lib/jenkins1/ws/LINUX_BUILDS/docker.openmodelica.org/build-deps:noble.nightly.arm64 [Pipeline] { [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] writeFile [Pipeline] } [Pipeline] // dir [Pipeline] withDockerRegistry + docker tag docker.openmodelica.org/build-deps:jammy.nightly.arm64 docker.openmodelica.org/build-deps:jammy.nightly.arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins/ws/LINUX_BUILDS_tmp/d47f89bb-56d7-44ba-a29f-1eb22349fb1b/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker push docker.openmodelica.org/build-deps:jammy.nightly.arm64 The push refers to repository [docker.openmodelica.org/build-deps] f6b0f130bcfe: Preparing f784318dca22: Preparing 54cb91f3fa5e: Preparing 54cb91f3fa5e: Layer already exists f6b0f130bcfe: Layer already exists f784318dca22: Layer already exists + docker build -t docker.openmodelica.org/build-deps:noble.nightly.arm64 docker.openmodelica.org/build-deps:noble.nightly.arm64 DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 8.704kB Step 1/3 : FROM arm64v8/ubuntu:noble ---> 20377134ad88 Step 2/3 : COPY openmodelica.dsc openmodelica-build-deps libiomp-fake /var/lib/openmodelica-depends/ ---> Using cache ---> 3ebf9bef91d8 Step 3/3 : RUN export DEBIAN_FRONTEND=noninteractive && sed -i -e 's,http://deb.debian.org/debian ,http://ftp.se.debian.org/debian ,' `ls /etc/apt/sources.list /etc/apt/sources.list.d/*.list` && apt-get update && apt-get install -qy build-essential devscripts equivs wget && (apt-get install -qy libiomp-dev || (apt-get install -qy libomp-dev && equivs-build /var/lib/openmodelica-depends/libiomp-fake && dpkg -i libiomp-fake_*.deb)) && mk-build-deps /var/lib/openmodelica-depends/openmodelica.dsc && (dpkg -i ./openmodelica-build-deps*.deb ; apt-get install -fqy) && rm -f *.deb && clang --version && rm -rf /var/lib/apt/lists/* ---> Using cache ---> df03994dd834 Successfully built df03994dd834 Successfully tagged docker.openmodelica.org/build-deps:noble.nightly.arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh jammy.nightly.arm64: digest: sha256:2158a50b510c8e7ed3cf3573dad56dcff0a13d3f008087aee1142b6ca4569d69 size: 950 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // wrap [Pipeline] } [Pipeline] // node [Pipeline] } + docker tag docker.openmodelica.org/build-deps:noble.nightly.arm64 docker.openmodelica.org/build-deps:noble.nightly.arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh $ docker login -u jenkins-nexus -p ******** https://docker.openmodelica.org WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /var/lib/jenkins1/ws/LINUX_BUILDS_tmp/9428a056-ef6e-4fff-97d2-910c546cfd0c/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded + docker push docker.openmodelica.org/build-deps:noble.nightly.arm64 The push refers to repository [docker.openmodelica.org/build-deps] cbc51c659a37: Preparing 71adde6c9df2: Preparing 1575723d84b8: Preparing 1575723d84b8: Layer already exists cbc51c659a37: Layer already exists 71adde6c9df2: Layer already exists noble.nightly.arm64: digest: sha256:7031f8ff3a850354db1b985c35d7ffe31df967f0189b93232a277c9367cef158 size: 951 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // wrap [Pipeline] } [Pipeline] // node [Pipeline] } 6299667869c4: Pull complete 485923326c8a: Pull complete f62e3f1fef56: Verifying Checksum f62e3f1fef56: Download complete d030384b984f: Verifying Checksum d030384b984f: Download complete f62e3f1fef56: Pull complete Digest: sha256:fba202a7f60e3844955594f6bf8a006ac53669a00fe7abcf2fddec2db55298de Status: Downloaded newer image for docker.openmodelica.org/build-deps:fc41.amd64 docker.openmodelica.org/build-deps:fc41.amd64 [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker inspect -f . docker.openmodelica.org/build-deps:fc41.amd64 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer dev.openmodelica.org does not seem to be running inside a container $ docker run -t -d -u 1026:1026 -w /var/lib/jenkins/ws/LINUX_BUILDS -v /var/lib/jenkins/ws/LINUX_BUILDS:/var/lib/jenkins/ws/LINUX_BUILDS:rw,z -v /var/lib/jenkins/ws/LINUX_BUILDS_tmp:/var/lib/jenkins/ws/LINUX_BUILDS_tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** docker.openmodelica.org/build-deps:fc41.amd64 cat [Pipeline] { [Pipeline] sh + cat /var/lib/openmodelica-depends/openmodelica.spec.tpl [Pipeline] } $ docker top 7f226d9390800d8ecb916aee10dca0abc70ad3cb7de85c94c2cec5db23ba096b -eo pid,comm $ docker stop --time=1 7f226d9390800d8ecb916aee10dca0abc70ad3cb7de85c94c2cec5db23ba096b [Pipeline] // withDockerContainer [Pipeline] sh + rm -f openmodelica.spec.tpl.fc41 + wget -q -O openmodelica.spec.tpl.fc41 https://raw.githubusercontent.com/OpenModelica/OpenModelicaBuildScripts/master/rpm/SPECS/openmodelica.spec.tpl [Pipeline] sh $ docker rm -f --volumes 7f226d9390800d8ecb916aee10dca0abc70ad3cb7de85c94c2cec5db23ba096b + test -s openmodelica.spec.tpl.fc41 [Pipeline] echo # See also Jenkinsfile in apt-build repository for stuff that is installed BEFORE everything here # Don't try fancy stuff like debuginfo, which is useless on binary-only # packages. Don't strip binary too # Be sure buildpolicy set to do nothing %define __spec_install_post %{nil} %define debug_package %{nil} %define __os_install_post %{_dbpath}/brp-compress Summary: OpenModelica Name: NAME Version: RPMVERSION Release: RELEASENUM%{?dist} License: OSMC-PL Group: Development/Tools # spectool -g -R SPECS/xxx.spec # sudo yum-builddep SPECS/xxx.spec SOURCE0 : https://build.openmodelica.org/apt/pool/contrib/openmodelica_DEBVERSION.orig.tar.xz SOURCE1 : https://openmodelica.org/doc/openmodelica-doc-DOCUMENTATIONVERSION.tar.xz PATCHES URL: https://openmodelica.org/ %if 0%{?rhel} == 6 Autoreq: 0 Requires: readline Requires: qt5-qtbase Requires: qt5-qtsvg Requires: qt5-qtwebkit Requires: qt5-qtxmlpatterns Requires: libffi %endif Autoprov: 0 Prefix: /opt/%{name} Prefix: %{_bindir} %global __requires_exclude ^(PRIVATELIBS)$ # Recommended (for the repo): git rpm-build rpmdevtools epel-release %if 0%{?rhel} > 0 # CentOS / RHEL requires the EPEL repository (for omniORB, etc) BuildRequires: epel-release Requires: epel-release %endif Requires: lapack-devel Requires: make Requires: gcc Requires: gcc-gfortran Requires: gcc-c++ BuildRequires: automake %if 0%{?rhel} >= 8 %define withomniorb --without-omniORB %else %define withomniorb --with-omniORB BuildRequires: omniORB-devel BuildRequires: lpsolve-devel %endif BuildRequires: expat-devel BuildRequires: bison BuildRequires: flex BuildRequires: lapack-devel BuildRequires: libtool BuildRequires: uuid BuildRequires: uuid-devel BuildRequires: hdf5-devel BuildRequires: boost-devel BuildRequires: boost-static BuildRequires: hwloc-devel BuildRequires: readline-devel BuildRequires: libffi-devel BuildRequires: curl-devel BuildRequires: gettext BuildRequires: make BuildRequires: java BuildRequires: tar BuildRequires: xz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: qt5-qtwebkit-devel BuildRequires: qt5-linguist BuildRequires: qt5-qttools BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtsvg-devel %if 0%{?rhel} >= 7 BuildRequires: qt5-qt3d-devel %endif BuildRequires: qt5-qtxmlpatterns-devel # Use cmake versions > 3. On EL7 this is provided by cmake3 package. # On EL > 7 it is just cmake. %if 0%{?rhel} == 7 BuildRequires: cmake3 %define cmakecommand CMAKE=cmake3 %else BuildRequires: cmake %define cmakecommand CMAKE=cmake %endif # The base centos:8 image (we use for our build-deps:el8 image) comes with # broken cmake package due to old libarchive (v3.3.2). v3.3.3 Seems to work. # Once the base image is updated this can be removed. %if 0%{?rhel} == 8 BuildRequires: libarchive >= 3.3.3 %endif # Use gcc-11 on EL8 as well. devtoolset does not seem to be available on # EL8. One is supposed to use gcc-toolset instead. %{?el8:Requires: gcc-toolset-11-gcc gcc-toolset-11-gcc-c++ gcc-toolset-11-gcc-gfortran} %if 0%{?rhel} == 8 BuildRequires: gcc-toolset-11-gcc gcc-toolset-11-gcc-c++ gcc-toolset-11-gcc-gfortran %define devtoolsconfigureflags CC=/opt/rh/gcc-toolset-11/root/usr/bin/gcc CXX=/opt/rh/gcc-toolset-11/root/usr/bin/g++ FC=/opt/rh/gcc-toolset-11/root/usr/bin/gfortran AS=/opt/rh/gcc-toolset-11/root/usr/bin/as %endif # EL7 has -static-libstdc++ inside devtools (but the system g++ does not know the flag) -- adrpo: check this, also for el6 %{?el7:Requires: devtoolset-11-gcc} %{?el7:Requires: devtoolset-11-gcc-c++} %{?el7:Requires: devtoolset-11-gcc-gfortran} %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 BuildRequires: devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-gcc-gfortran %define devtoolsconfigureflags CC=/opt/rh/devtoolset-11/root/usr/bin/gcc CXX=/opt/rh/devtoolset-11/root/usr/bin/g++ FC=/opt/rh/devtoolset-11/root/usr/bin/gfortran %endif %if 0%{?fedora} >= 25 BuildRequires: OpenSceneGraph-devel %endif # We should use clang, but OMEdit does not compile with it due to odd default qmake flags Requires: gcc Requires: gcc-c++ Requires: lapack-devel Requires(post): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives # CentOS does not have suggests %if 0%{?fedora} >= 24 || 0%{?rhel} >= 8 Suggests: boost-devel Suggests: boost-static Suggests: lapack-static Suggests: openblas-static %else Requires: boost-devel Requires: boost-static %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description %{summary} %prep %setup -q -n openmodelica_DEBVERSION tar xJf %{_sourcedir}/openmodelica-doc-DOCUMENTATIONVERSION.tar.xz PATCHCMDS %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 source /opt/rh/devtoolset-11/enable %endif %if 0%{?rhel} == 8 source /opt/rh/gcc-toolset-11/enable %endif autoreconf --install ./configure CFLAGS="-Os" CXXFLAGS="-Os" QTDIR=/usr/%{_lib}/qt5/ %{withomniorb} CONFIGUREFLAGS %{?devtoolsconfigureflags} --without-omc --prefix=/opt/%{name} --without-omlibrary %{cmakecommand} %build %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 source /opt/rh/devtoolset-11/enable %endif %if 0%{?rhel} == 8 source /opt/rh/gcc-toolset-11/enable %endif make -j8 test ! -f libraries/install-index.json || make -j8 omlibrary %install rm -rf %{buildroot} make install DESTDIR="%{buildroot}" mkdir -p %{buildroot}/opt/%{name}/lib/ %{buildroot}/opt/%{name}/share/doc/omc/ %{buildroot}%{_bindir} ln -s /usr/lib/omlibrary %{buildroot}/opt/%{name}/lib/ ln -s /opt/%{name}/bin/omc %{buildroot}%{_bindir}/omc-BRANCH ln -s /opt/%{name}/bin/OMEdit %{buildroot}%{_bindir}/OMEdit-BRANCH ln -s /opt/%{name}/bin/OMShell %{buildroot}%{_bindir}/OMShell-BRANCH ln -s /opt/%{name}/bin/OMShell-terminal %{buildroot}%{_bindir}/OMShell-terminal-BRANCH ln -s /opt/%{name}/bin/OMNotebook %{buildroot}%{_bindir}/OMNotebook-BRANCH ln -s /opt/%{name}/bin/OMPlot %{buildroot}%{_bindir}/OMPlot-BRANCH touch %{buildroot}%{_bindir}/omc touch %{buildroot}%{_bindir}/OMEdit touch %{buildroot}%{_bindir}/OMShell touch %{buildroot}%{_bindir}/OMShell-terminal touch %{buildroot}%{_bindir}/OMNotebook touch %{buildroot}%{_bindir}/OMPlot cp -a openmodelica-doc*/* %{buildroot}/opt/%{name}/share/doc/omc/ %postun if [ "$1" -ge "1" ]; then if [ "`readlink %{_sysconfdir}/alternatives/openmodelica`" == "%{_bindir}/omc-BRANCH" ]; then %{_sbindir}/alternatives --set openmodelica %{_bindir}/omc-BRANCH fi fi %post %{_sbindir}/update-alternatives --install %{_bindir}/omc openmodelica %{_bindir}/omc-BRANCH PRIORITY \ --slave %{_bindir}/OMEdit openmodelica-OMEdit %{_bindir}/OMEdit-BRANCH \ --slave %{_bindir}/OMShell openmodelica-OMShell %{_bindir}/OMShell-BRANCH \ --slave %{_bindir}/OMShell-terminal openmodelica-OMShell-terminal %{_bindir}/OMShell-terminal-BRANCH \ --slave %{_bindir}/OMNotebook openmodelica-OMNotebook %{_bindir}/OMNotebook-BRANCH \ --slave %{_bindir}/OMPlot openmodelica-OMPlot %{_bindir}/OMPlot-BRANCH %preun if [ $1 = 0 ]; then %{_sbindir}/update-alternatives --remove openmodelica %{_bindir}/omc-BRANCH fi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) /opt/%{name}/* %{_bindir}/*-BRANCH %ghost %{_bindir}/omc %ghost %{_bindir}/OMEdit %ghost %{_bindir}/OMShell %ghost %{_bindir}/OMShell-terminal %ghost %{_bindir}/OMNotebook %ghost %{_bindir}/OMPlot %changelog * DATE OpenModelica ${version}-1 - First Build [Pipeline] writeFile [Pipeline] sh + diff -uw openmodelica.spec.tpl.old.fc41 openmodelica.spec.tpl.fc41 [Pipeline] } [Pipeline] // wrap [Pipeline] } [Pipeline] // node [Pipeline] } d030384b984f: Pull complete Digest: sha256:bf759011c9f0a87cc6ffc995e12c3d0d5327c1b12394f13dd79997965043cb59 Status: Downloaded newer image for docker.openmodelica.org/build-deps:fc40.amd64 docker.openmodelica.org/build-deps:fc40.amd64 [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker inspect -f . docker.openmodelica.org/build-deps:fc40.amd64 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer intel-4930k-1 does not seem to be running inside a container $ docker run -t -d -u 1001:1001 -w /var/lib/jenkins/ws/LINUX_BUILDS -v /var/lib/jenkins/ws/LINUX_BUILDS:/var/lib/jenkins/ws/LINUX_BUILDS:rw,z -v /var/lib/jenkins/ws/LINUX_BUILDS_tmp:/var/lib/jenkins/ws/LINUX_BUILDS_tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** docker.openmodelica.org/build-deps:fc40.amd64 cat [Pipeline] { [Pipeline] sh + cat /var/lib/openmodelica-depends/openmodelica.spec.tpl [Pipeline] } $ docker top 847ab704b0238ba0ba3c267ed21dcf9053aaeb03097873ad892376cc3454f7e7 -eo pid,comm $ docker stop --time=1 847ab704b0238ba0ba3c267ed21dcf9053aaeb03097873ad892376cc3454f7e7 [Pipeline] // withDockerContainer [Pipeline] sh + rm -f openmodelica.spec.tpl.fc40 + wget -q -O openmodelica.spec.tpl.fc40 https://raw.githubusercontent.com/OpenModelica/OpenModelicaBuildScripts/master/rpm/SPECS/openmodelica.spec.tpl [Pipeline] sh + test -s openmodelica.spec.tpl.fc40 [Pipeline] echo # See also Jenkinsfile in apt-build repository for stuff that is installed BEFORE everything here # Don't try fancy stuff like debuginfo, which is useless on binary-only # packages. Don't strip binary too # Be sure buildpolicy set to do nothing %define __spec_install_post %{nil} %define debug_package %{nil} %define __os_install_post %{_dbpath}/brp-compress Summary: OpenModelica Name: NAME Version: RPMVERSION Release: RELEASENUM%{?dist} License: OSMC-PL Group: Development/Tools # spectool -g -R SPECS/xxx.spec # sudo yum-builddep SPECS/xxx.spec SOURCE0 : https://build.openmodelica.org/apt/pool/contrib/openmodelica_DEBVERSION.orig.tar.xz SOURCE1 : https://openmodelica.org/doc/openmodelica-doc-DOCUMENTATIONVERSION.tar.xz PATCHES URL: https://openmodelica.org/ %if 0%{?rhel} == 6 Autoreq: 0 Requires: readline Requires: qt5-qtbase Requires: qt5-qtsvg Requires: qt5-qtwebkit Requires: qt5-qtxmlpatterns Requires: libffi %endif Autoprov: 0 Prefix: /opt/%{name} Prefix: %{_bindir} %global __requires_exclude ^(PRIVATELIBS)$ # Recommended (for the repo): git rpm-build rpmdevtools epel-release %if 0%{?rhel} > 0 # CentOS / RHEL requires the EPEL repository (for omniORB, etc) BuildRequires: epel-release Requires: epel-release %endif Requires: lapack-devel Requires: make Requires: gcc Requires: gcc-gfortran Requires: gcc-c++ BuildRequires: automake %if 0%{?rhel} >= 8 %define withomniorb --without-omniORB %else %define withomniorb --with-omniORB BuildRequires: omniORB-devel BuildRequires: lpsolve-devel %endif BuildRequires: expat-devel BuildRequires: bison BuildRequires: flex BuildRequires: lapack-devel BuildRequires: libtool BuildRequires: uuid BuildRequires: uuid-devel BuildRequires: hdf5-devel BuildRequires: boost-devel BuildRequires: boost-static BuildRequires: hwloc-devel BuildRequires: readline-devel BuildRequires: libffi-devel BuildRequires: curl-devel BuildRequires: gettext BuildRequires: make BuildRequires: java BuildRequires: tar BuildRequires: xz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: qt5-qtwebkit-devel BuildRequires: qt5-linguist BuildRequires: qt5-qttools BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtsvg-devel %if 0%{?rhel} >= 7 BuildRequires: qt5-qt3d-devel %endif BuildRequires: qt5-qtxmlpatterns-devel # Use cmake versions > 3. On EL7 this is provided by cmake3 package. # On EL > 7 it is just cmake. %if 0%{?rhel} == 7 BuildRequires: cmake3 %define cmakecommand CMAKE=cmake3 %else BuildRequires: cmake %define cmakecommand CMAKE=cmake %endif # The base centos:8 image (we use for our build-deps:el8 image) comes with # broken cmake package due to old libarchive (v3.3.2). v3.3.3 Seems to work. # Once the base image is updated this can be removed. %if 0%{?rhel} == 8 BuildRequires: libarchive >= 3.3.3 %endif # Use gcc-11 on EL8 as well. devtoolset does not seem to be available on # EL8. One is supposed to use gcc-toolset instead. %{?el8:Requires: gcc-toolset-11-gcc gcc-toolset-11-gcc-c++ gcc-toolset-11-gcc-gfortran} %if 0%{?rhel} == 8 BuildRequires: gcc-toolset-11-gcc gcc-toolset-11-gcc-c++ gcc-toolset-11-gcc-gfortran %define devtoolsconfigureflags CC=/opt/rh/gcc-toolset-11/root/usr/bin/gcc CXX=/opt/rh/gcc-toolset-11/root/usr/bin/g++ FC=/opt/rh/gcc-toolset-11/root/usr/bin/gfortran AS=/opt/rh/gcc-toolset-11/root/usr/bin/as %endif # EL7 has -static-libstdc++ inside devtools (but the system g++ does not know the flag) -- adrpo: check this, also for el6 %{?el7:Requires: devtoolset-11-gcc} %{?el7:Requires: devtoolset-11-gcc-c++} %{?el7:Requires: devtoolset-11-gcc-gfortran} %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 BuildRequires: devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-gcc-gfortran %define devtoolsconfigureflags CC=/opt/rh/devtoolset-11/root/usr/bin/gcc CXX=/opt/rh/devtoolset-11/root/usr/bin/g++ FC=/opt/rh/devtoolset-11/root/usr/bin/gfortran %endif %if 0%{?fedora} >= 25 BuildRequires: OpenSceneGraph-devel %endif # We should use clang, but OMEdit does not compile with it due to odd default qmake flags Requires: gcc Requires: gcc-c++ Requires: lapack-devel Requires(post): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives # CentOS does not have suggests %if 0%{?fedora} >= 24 || 0%{?rhel} >= 8 Suggests: boost-devel Suggests: boost-static Suggests: lapack-static Suggests: openblas-static %else Requires: boost-devel Requires: boost-static %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description %{summary} %prep %setup -q -n openmodelica_DEBVERSION tar xJf %{_sourcedir}/openmodelica-doc-DOCUMENTATIONVERSION.tar.xz PATCHCMDS %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 source /opt/rh/devtoolset-11/enable %endif %if 0%{?rhel} == 8 source /opt/rh/gcc-toolset-11/enable %endif autoreconf --install ./configure CFLAGS="-Os" CXXFLAGS="-Os" QTDIR=/usr/%{_lib}/qt5/ %{withomniorb} CONFIGUREFLAGS %{?devtoolsconfigureflags} --without-omc --prefix=/opt/%{name} --without-omlibrary %{cmakecommand} %build %if 0%{?rhel} <= 7 && 0%{?rhel} >= 1 source /opt/rh/devtoolset-11/enable %endif %if 0%{?rhel} == 8 source /opt/rh/gcc-toolset-11/enable %endif make -j8 test ! -f libraries/install-index.json || make -j8 omlibrary %install rm -rf %{buildroot} make install DESTDIR="%{buildroot}" mkdir -p %{buildroot}/opt/%{name}/lib/ %{buildroot}/opt/%{name}/share/doc/omc/ %{buildroot}%{_bindir} ln -s /usr/lib/omlibrary %{buildroot}/opt/%{name}/lib/ ln -s /opt/%{name}/bin/omc %{buildroot}%{_bindir}/omc-BRANCH ln -s /opt/%{name}/bin/OMEdit %{buildroot}%{_bindir}/OMEdit-BRANCH ln -s /opt/%{name}/bin/OMShell %{buildroot}%{_bindir}/OMShell-BRANCH ln -s /opt/%{name}/bin/OMShell-terminal %{buildroot}%{_bindir}/OMShell-terminal-BRANCH ln -s /opt/%{name}/bin/OMNotebook %{buildroot}%{_bindir}/OMNotebook-BRANCH ln -s /opt/%{name}/bin/OMPlot %{buildroot}%{_bindir}/OMPlot-BRANCH touch %{buildroot}%{_bindir}/omc touch %{buildroot}%{_bindir}/OMEdit touch %{buildroot}%{_bindir}/OMShell touch %{buildroot}%{_bindir}/OMShell-terminal touch %{buildroot}%{_bindir}/OMNotebook touch %{buildroot}%{_bindir}/OMPlot cp -a openmodelica-doc*/* %{buildroot}/opt/%{name}/share/doc/omc/ %postun if [ "$1" -ge "1" ]; then if [ "`readlink %{_sysconfdir}/alternatives/openmodelica`" == "%{_bindir}/omc-BRANCH" ]; then %{_sbindir}/alternatives --set openmodelica %{_bindir}/omc-BRANCH fi fi %post %{_sbindir}/update-alternatives --install %{_bindir}/omc openmodelica %{_bindir}/omc-BRANCH PRIORITY \ --slave %{_bindir}/OMEdit openmodelica-OMEdit %{_bindir}/OMEdit-BRANCH \ --slave %{_bindir}/OMShell openmodelica-OMShell %{_bindir}/OMShell-BRANCH \ --slave %{_bindir}/OMShell-terminal openmodelica-OMShell-terminal %{_bindir}/OMShell-terminal-BRANCH \ --slave %{_bindir}/OMNotebook openmodelica-OMNotebook %{_bindir}/OMNotebook-BRANCH \ --slave %{_bindir}/OMPlot openmodelica-OMPlot %{_bindir}/OMPlot-BRANCH %preun if [ $1 = 0 ]; then %{_sbindir}/update-alternatives --remove openmodelica %{_bindir}/omc-BRANCH fi %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) /opt/%{name}/* %{_bindir}/*-BRANCH %ghost %{_bindir}/omc %ghost %{_bindir}/OMEdit %ghost %{_bindir}/OMShell %ghost %{_bindir}/OMShell-terminal %ghost %{_bindir}/OMNotebook %ghost %{_bindir}/OMPlot %changelog * DATE OpenModelica ${version}-1 - First Build [Pipeline] writeFile [Pipeline] sh + diff -uw openmodelica.spec.tpl.old.fc40 openmodelica.spec.tpl.fc40 [Pipeline] } [Pipeline] // wrap [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] End of Pipeline ERROR: script returned exit code 4 Finished: FAILURE