Skip to content

Conversation

@h-vetinari
Copy link
Member

An experiment on top of #326

don't rely on PKG_BUILDNUM resolving this correctly, which is either racy,
or implicitly depends on a separate render pass after setting build.number
otherwise conda breaks
```
conda_build.exceptions.RecipeError: Mismatching hashes in recipe. Exact pins in dependencies that contribute to the hash often cause this. Can you change one or more exact pins to version bound constraints?
Involved packages were:
Mismatching package: libtorch (id cpu_generic_habf3c96_0); dep: libtorch 2.6.0.rc7 *0; consumer package: pytorch
```
and also runs into some openmp issue:
```
----------------------------- Captured stderr call -----------------------------
OMP: Error conda-forge#179: Function pthread_key_create failed:
OMP: System error conda-forge#35: Resource temporarily unavailable
```
this was done for consistency with `build.sh`, but appears unnecessary on windows
keep it on windows though, where there's no issue

This reverts commit 9fcb3a7.
h-vetinari and others added 26 commits February 8, 2025 12:45
Explicitly pass `-Wl,-z,noexecstack` to the linker, to ensure that
`libpytorch_cpu.so` is compiled without an executable stack.  This is
necessary because the raw assembly in oneDNN triggers:

```
$BUILD_PREFIX/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: warning: ittptmark64.S.o: missing .note.GNU-stack section implies executable stack
```

...and glibc 2.41 no longer permits loading libraries with executable
stack.

Fixes conda-forge#350
@h-vetinari h-vetinari changed the title test if windows CPU test suite passes with -n 2 test if windows CUDA test suite passes with -n 2 Feb 13, 2025
@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.

I do have some suggestions for making it better though...

For recipe/meta.yaml:

  • ℹ️ The recipe is not parsable by parser conda-souschef (grayskull). This parser is not currently used by conda-forge, but may be in the future. We are collecting information to see which recipes are compatible with grayskull.
  • ℹ️ The recipe is not parsable by parser conda-recipe-manager. The recipe can only be automatically migrated to the new v1 format if it is parseable by conda-recipe-manager.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/13300674458. Examine the logs at this URL for more detail.

@h-vetinari h-vetinari merged commit cdef276 into conda-forge:main Feb 13, 2025
4 of 27 checks passed
@h-vetinari h-vetinari deleted the 2.6_win branch February 13, 2025 19:25
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.

3 participants