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

Enable ppc64le #29

Merged
merged 11 commits into from
Oct 5, 2024
Merged

Conversation

jeongseok-meta
Copy link
Contributor

@jeongseok-meta jeongseok-meta commented Oct 2, 2024

Attempt to enable ppc64le by using the Clang compiler, as it fails to build with GCC.

Resolves #20, #22, #28

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

@jeongseok-meta
Copy link
Contributor Author

@conda-forge-admin, please rerender

@conda-forge-admin
Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

conda-forge-webservices[bot] and others added 2 commits October 2, 2024 18:13
@jeongseok-meta
Copy link
Contributor Author

@conda-forge-admin, please rerender

conda-forge-webservices[bot] and others added 2 commits October 2, 2024 18:59
@jeongseok-meta
Copy link
Contributor Author

@conda-forge-admin, please rerender

c_compiler:
- clang # [ppc64le]
c_compiler_version:
- 18 # [ppc64le]
Copy link
Member

Choose a reason for hiding this comment

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

I saw that the version must be specified (475c28f). I'm wondering if this could be automatically updated by conda-forge-admin.

Related: https://conda-forge.org/news/2024/04/30/clang-everywhere/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The conda_build_config.yaml file is used to manually override or specify the compiler and its version. I followed the article you referred to (please see the summary) because the package failed to build with GCC.

Copy link
Member

Choose a reason for hiding this comment

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

Also, could you add a comment with a link to related issues saying that we forced clang due to ICE in GCC?

Copy link
Member

@sshockwave sshockwave Oct 4, 2024

Choose a reason for hiding this comment

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

The conda_build_config.yaml file is used to manually override or specify the compiler and its version. I followed the article you referred to (please see the summary) because the package failed to build with GCC.

I know, I'm just asking whether we have to manually upgrade the compiler version in the future to be compatible with the pinned dependencies. It seems that the Clang toolchain hasn't been pinned yet and it might cause problems due to conflicting C++ std library versions.

Edit: I just checked the build and it seems it's linked with libstdcxx. That solves my problem!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm, I'm not sure about pinning the Clang toolchain. Feel free to make any changes that make sense to you.

@sshockwave
Copy link
Member

sshockwave commented Oct 4, 2024

@conda-forge-admin, please rerender

conda-forge-webservices[bot] and others added 2 commits October 4, 2024 05:49
conda-forge.yml Outdated
@@ -1,6 +1,6 @@
build_platform:
linux_aarch64: linux_64
linux_ppc64le: linux_64
linux_ppc64le: linux_ppc64le
Copy link
Contributor

Choose a reason for hiding this comment

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

did cross compiling really fail that hard?

Copy link
Contributor

Choose a reason for hiding this comment

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

travis has been giving ALOT of problems.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From what I see, it built fine with cross-compiling (https://github.com/conda-forge/libjxl-split-feedstock/runs/30992590715)

Copy link
Contributor

Choose a reason for hiding this comment

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

it would be great if we could go back to cross compilation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll leave it to @sshockwave (or you as maintainer), just in case he made that change for a reason.

Copy link
Contributor

Choose a reason for hiding this comment

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

Well just for your reference:
conda-forge/status#185

Copy link
Member

Choose a reason for hiding this comment

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

Excuse me for that. I didn't know Travis CI had problems since the log looks fine and the default in the document is to build natively. I will revert to cross-compilation.

@sshockwave sshockwave added the automerge Merge the PR when CI passes label Oct 5, 2024
@github-actions github-actions bot merged commit 5ba3c49 into conda-forge:main Oct 5, 2024
8 checks passed
Copy link
Contributor

github-actions bot commented Oct 5, 2024

Hi! This is the friendly conda-forge automerge bot!

I considered the following status checks when analyzing this PR:

  • linter: passed
  • azure: passed

Thus the PR was passing and merged! Have a great day!

@jeongseok-meta jeongseok-meta deleted the enable_ppc64le branch October 5, 2024 17:41
@sshockwave sshockwave mentioned this pull request Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge the PR when CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internal Compiler Error for PPC64le
4 participants