Skip to content

Conversation

@octo-sts
Copy link
Contributor

@octo-sts octo-sts bot commented Sep 27, 2024

Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
@octo-sts octo-sts bot added request-version-update request for a newer version of a package automated pr labels Sep 27, 2024
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Sep 27, 2024

Open AI suggestions to solve the build error:

The error message is: "ERROR: failed to build package. the build environment has been preserved:
INFO   workspace dir: /temp/melange-workspace-26968266
INFO   guest dir: /temp/melange-guest-1894819855
ERRO failed to build package: unable to run package libmamba pipeline: unable to run pipeline: unable to run pipeline: exit status 1
make[1]: *** [Makefile:111: packages/aarch64/libmamba-2024.09.25-r0.apk] Error 1
make[1]: Leaving directory '/github/home'
make: *** [Makefile:101: package/libmamba] Error 2
##[error]Process completed with exit code 2."

1. Verify dependencies for `libmamba` are installed.
2. Check for errors in `Makefile` at lines 101 and 111.
3. Ensure the build environment paths are correct.
4. Run `make clean` to clear previous builds.
5. Re-run the build command with verbose logging for more details.
6. Check for any specific logs in `/temp/melange-workspace-26968266` and `/temp/melange-guest-1894819855`.

Signed-off-by: Ajay Kemparaj <ajaykemparaj@gmail.com>
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Sep 28, 2024

Open AI suggestions to solve the build error:

The error message is: "Expected type 'STATIC_LIBRARY' for target 'yaml-cpp::yaml-cpp' but found 'SHARED_LIBRARY'"

1. Open `CMakeLists.txt` in the libmamba project.
2. Locate `target_link_libraries` for `yaml-cpp::yaml-cpp`.
3. Set `BUILD_SHARED_LIBS` to `OFF` in yaml-cpp's CMake configuration.
4. Rebuild yaml-cpp and then rebuild libmamba.

@octo-sts
Copy link
Contributor Author

octo-sts bot commented Sep 28, 2024

Open AI suggestions to solve the build error:

The error message is: 

CMake Error at cmake/Checks.cmake:9 (message):
Expected type "STATIC_LIBRARY" for target "yaml-cpp::yaml-cpp" but found
"SHARED_LIBRARY"
Call Stack (most recent call first):
libmamba/CMakeLists.txt:451 (mamba_target_check_type)
libmamba/CMakeLists.txt:685 (libmamba_create_target)

Configuring incomplete, errors occurred!
ERROR: failed to build package. the build environment has been preserved:
workspace dir: /temp/melange-workspace-327129621
guest dir: /temp/melange-guest-662862879
failed to build package: unable to run package libmamba pipeline: unable to run pipeline: unable to run pipeline: exit status 1
make[1]: *** [Makefile:111: packages/aarch64/libmamba-2024.09.25-r0.apk] Error 1
make[1]: Leaving directory '/github/home'
make: *** [Makefile:101: package/libmamba] Error 2
Process completed with exit code 2.


Suggested steps to resolve the issue:

1. Open `cmake/Checks.cmake` and locate the check for `yaml-cpp::yaml-cpp`.
2. Modify the check to accept `SHARED_LIBRARY` or change the `yaml-cpp` build to produce a `STATIC_LIBRARY`.
3. In `libmamba/CMakeLists.txt`, ensure the target type matches the expected type.
4. Re-run the CMake configuration and build process.

@octo-sts octo-sts bot closed this Oct 1, 2024
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Oct 1, 2024

superseded by #29763

@octo-sts octo-sts bot deleted the wolfictl-08bdbb22-dc51-4797-929a-0e7676069581 branch October 2, 2024 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated pr request-version-update request for a newer version of a package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants