Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

405 cmake issue when building conda on fedora #407

Merged
merged 4 commits into from
Nov 4, 2024

Conversation

bruno-at-orange
Copy link
Contributor

@bruno-at-orange bruno-at-orange commented Oct 11, 2024

This PR contains fixes and improvements that I have made to package khiops on conda-forge.
There is a major fix concerning the use of the compiler of conda instead of the system wide one (commit 2b317f4)

close #403
close #405

@bruno-at-orange bruno-at-orange linked an issue Oct 11, 2024 that may be closed by this pull request
@bruno-at-orange bruno-at-orange force-pushed the 405-cmake-issue-when-building-conda-on-fedora branch 2 times, most recently from 07631ba to 01b2c64 Compare October 14, 2024 13:25
@bruno-at-orange bruno-at-orange marked this pull request as ready for review October 15, 2024 15:38
@bruno-at-orange bruno-at-orange force-pushed the 405-cmake-issue-when-building-conda-on-fedora branch 2 times, most recently from 4bdfa22 to 201819a Compare October 18, 2024 08:05
packaging/conda/build.sh Outdated Show resolved Hide resolved
packaging/conda/build.sh Outdated Show resolved Hide resolved
Copy link
Collaborator

@popescu-v popescu-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments, among which two changes in the Conda package versioning.

@bruno-at-orange bruno-at-orange force-pushed the 405-cmake-issue-when-building-conda-on-fedora branch 2 times, most recently from 0b74ab4 to 03a5ab4 Compare October 28, 2024 08:12
packaging/conda/build.sh Outdated Show resolved Hide resolved
We let CMake choose the good compiler with the variables provided by the compiler packages.
By setting 'gcc' in the preset, the Conda build used the system-wide GCC
When we configure the project on fedora. A fatal error is triggered if the variable MPI_BIN is not defined.
On conda, this variable is not required.
The conda version doesn't contain dashes. We handle this directly in the conda.yml with a search and replace.
Rather than doing it upstream, befor calling conda build. It simplifies both local and CI builds.
From cmake version 3.4 WINDOWS_EXPORT_ALL_SYMBOLS is needed to produce
lib file alongside the dll
@popescu-v popescu-v force-pushed the 405-cmake-issue-when-building-conda-on-fedora branch 5 times, most recently from c711634 to 386cc81 Compare October 31, 2024 15:05
@popescu-v
Copy link
Collaborator

popescu-v commented Oct 31, 2024

Implemented the remaining agreed-upon modification suggestion in the comments: renaming of build-conda to build/conda.

@popescu-v popescu-v force-pushed the 405-cmake-issue-when-building-conda-on-fedora branch from 386cc81 to bff958f Compare October 31, 2024 16:24
@popescu-v popescu-v requested a review from marcboulle October 31, 2024 16:46
@popescu-v popescu-v removed the request for review from marcboulle October 31, 2024 17:25
@popescu-v popescu-v merged commit 643a68c into dev Nov 4, 2024
66 checks passed
@popescu-v popescu-v deleted the 405-cmake-issue-when-building-conda-on-fedora branch November 4, 2024 09:44
@popescu-v popescu-v mentioned this pull request Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CMake issue when building conda on fedora The conda build uses the wrong compiler
2 participants