AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO
FTBFS with Clang + Arm64 on Windows
- Langage dominant
- C++
- Étoiles
- 2.1k
- Forks
- 505
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
```
In file included from C:/M/B/src/OpenColorIO-2.4.2/src/OpenColorIO/ops/lut1d/Lut1DOpCPU_SSE2.cpp:10:
C:/M/B/src/OpenColorIO-2.4.2/src/OpenColorIO/SSE2.h:354:19: error: incompatible pointer types assigning to '__fp16 *' from 'int16_t *' (aka 'short *')
354 | vst1q_f16((float16_t *)(out+0), rgba);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/clangarm64/lib/clang/20/include/arm_neon.h:39424:26: note: expanded from macro 'vst1q_f16'
39424 | __builtin_neon_vst1q_v(__p0, (int8x16_t)__s1, 40); \
| ^~~~
In file included from C:/M/B/src/OpenColorIO-2.4.2/src/OpenColorIO/ops/lut1d/Lut1DOpCPU_SSE2.cpp:10:
C:/M/B/src/OpenColorIO-2.4.2/src/OpenColorIO/SSE2.h:357:19: error: incompatible pointer types assigning to '__fp16 *' from 'int16_t *' (aka 'short *')
357 | vst1q_f16((float16_t *)(out+8), rgba);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/clangarm64/lib/clang/20/include/arm_neon.h:39424:26: note: expanded from macro 'vst1q_f16'
39424 | __builtin_neon_vst1q_v(__p0, (int8x16_t)__s1, 40); \
| ^~~~
2 errors generated.
```
This makes it build: https://github.com/msys2/MINGW-packages/blob/3027f4fc33ee83d31bdcefb2cc07442e02ff8e50/mingw-w64-opencolorio/0006-fix-neon-build.patch
I don't know how that plays with MSVC though, and if this needs to be changed instead: https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/05466120f3f9c23b23778f3ccbafc4dde93abe4b/src/OpenColorIO/SSE2.h#L30-L34
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par src/OpenColorIO/SSE2.h aux lignes 354 et 357, puis examinez les conditionnelles de plateforme près des lignes 30-34. Reproduisez le build Clang Arm64 Windows et comparez le patch MSYS2 proposé, en vérifiant sa compatibilité avec MSVC. Le travail est terminé lorsque le build concerné s’achève sans erreurs de pointeur incompatibles.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- build-system, operating-systems
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100