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

Two more build fixes #8371

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Two more build fixes #8371

merged 2 commits into from
Aug 9, 2024

Conversation

LebedevRI
Copy link
Contributor

Without CXX propagation, there isn't really any way to test with any but default compiler.
In fact, that happened to be GCC, and on i386 the test didn't pass, even though the package built,
because it was built with clang. The second patch addresses the GCC failure on i386,
but there are more issues on other architectures i strongly suspect.

It is not known by GCC13:
https://ci.debian.net/packages/h/halide/testing/i386/50047733/

and fails with
```
/usr/bin/g++ -DHALIDE_ENABLE_RTTI -DHALIDE_VERSION_MAJOR=18 -DHALIDE_VERSION_MINOR=0 -DHALIDE_VERSION_PATCH=0 -DHALIDE_WITH_EXCEPTIONS -isystem /usr/include/halide18 -O3 -DNDEBUG -MD -MT CMakeFiles/main.dir/main.cpp.o -MF CMakeFiles/main.dir/main.cpp.o.d -o CMakeFiles/main.dir/main.cpp.o -c /tmp/autopkgtest.pviDWM/build.Sjp/src/test/integration/jit/main.cpp
In file included from /tmp/autopkgtest.pviDWM/build.Sjp/src/test/integration/jit/main.cpp:1:
/usr/include/halide18/Halide.h: In member function ‘Halide::float16_t::operator _Float16() const’:
/usr/include/halide18/Halide.h:3054:40: error: SSE register return with SSE2 disabled
 3054 |     explicit operator _Float16() const {
      |                                        ^
/usr/include/halide18/Halide.h:3057:16: error: SSE register return with SSE2 disabled
 3057 |         return result;
      |                ^~~~~~
/usr/include/halide18/Halide.h: In constructor ‘Halide::Expr::Expr(_Float16)’:
/usr/include/halide18/Halide.h:4679:64: error: invalid conversion from type ‘_Float16’ without option ‘-msse2’
 4679 |         : IRHandle(Internal::FloatImm::make(Float(16), (double)x)) {
      |                                                                ^
ninja: build stopped: subcommand failed.

```
with GCC14.
@alexreinking
Copy link
Member

CMake honors the CXX environment variable. Is that getting unset somehow?

@LebedevRI
Copy link
Contributor Author

LebedevRI commented Aug 7, 2024

It's not getting pass-through either:
https://ci.debian.net/packages/h/halide/testing/i386/50047733/#L525

@alexreinking alexreinking added the buildbot_test_everything Buildbots should run all available tests on this PR (unless build_test_nothing is set). label Aug 7, 2024
@alexreinking
Copy link
Member

It's not getting pass-through either:

Strange, but thanks for trying. I'll approve this.

@LebedevRI
Copy link
Contributor Author

As usual, osx is being oh so picky.

@alexreinking
Copy link
Member

That particular failure is fixed by #8381

@alexreinking alexreinking merged commit 6f650c6 into halide:main Aug 9, 2024
18 of 19 checks passed
@LebedevRI LebedevRI deleted the upstreaming branch August 9, 2024 16:27
@LebedevRI
Copy link
Contributor Author

@alexreinking @steven-johnson thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buildbot_test_everything Buildbots should run all available tests on this PR (unless build_test_nothing is set).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants