Skip to content

Report error message when installer build fails #4

@spacemig

Description

@spacemig

When running the installer on a system where the GCC compiler is not configured correctly, the script will continue without an error. It will report that the COSMOS build was successful without actually building the code. To fix this we need to report an error and stop the process with a message to the user to fix the gcc issue

------------------------
COSMOS folder is set to: /home/miguel/cosmos
Setup as  user , OS:  linux-gnu
------------------
Downloading COSMOS Repositories >>>> 
Setup as user
------------------
Cloning COSMOS/core from https://github.com/hsfl/cosmos-core.git
Cloning into '/home/miguel/cosmos/source/core'...
remote: Enumerating objects: 35267, done.
remote: Counting objects: 100% (4784/4784), done.
remote: Compressing objects: 100% (230/230), done.
remote: Total 35267 (delta 4585), reused 4587 (delta 4553), pack-reused 30483 (from 1)
Receiving objects: 100% (35267/35267), 116.18 MiB | 18.95 MiB/s, done.
Resolving deltas: 100% (25862/25862), done.
------------------
Cloning COSMOS/nodes/cubesat1 from https://github.com/hsfl/cosmos-node-cubesat1.git
Cloning into '/home/miguel/cosmos/nodes/cubesat1'...
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 33 (delta 9), reused 33 (delta 9), pack-reused 0 (from 0)
Receiving objects: 100% (33/33), 23.32 KiB | 253.00 KiB/s, done.
Resolving deltas: 100% (9/9), done.
------------------
Cloning COSMOS/resources from https://github.com/hsfl/cosmos-resources.git
Cloning into '/home/miguel/cosmos/resources'...
remote: Enumerating objects: 181, done.
remote: Total 181 (delta 0), reused 0 (delta 0), pack-reused 181 (from 1)
Receiving objects: 100% (181/181), 54.45 MiB | 22.56 MiB/s, done.
Resolving deltas: 100% (57/57), done.
------------------
Cloning COSMOS/project-template from https://github.com/hsfl/cosmos-project-template.git
Cloning into '/home/miguel/cosmos/source/projects/template'...
remote: Enumerating objects: 170, done.
remote: Counting objects: 100% (118/118), done.
remote: Compressing objects: 100% (75/75), done.
remote: Total 170 (delta 42), reused 107 (delta 38), pack-reused 52 (from 1)
Receiving objects: 100% (170/170), 47.40 KiB | 557.00 KiB/s, done.
Resolving deltas: 100% (49/49), done.
------------------
COSMOS deployment >>>> 
Creating tmp folder to build COSMOS
COSMOS/nodes exists
COSMOS/resources exists
COSMOS/bin folder not found on the PATH
------------------
COSMOS Build >>>> 
cmake exists. going ahead with build. verbose no. This might take a few minutes ....
COSMOS Build done!```

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions