You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cosmoc++: x86_64 succeeded but aarch64 failed to build object
aarch64-linux-cosmo-g++: fatal error: SIGTERM signal terminated program cc1plus
compilation terminated.
The same program works fine with Zig v0.13.0 (Clang v18.1.6) zig c++
zig c++ -std=c++23 main.cpp
./a.out
Hello Ada Lovelace!
I'm using GitHub Codespaces default image. Ubuntu 20.04 x86_64
x86_64-linux-cosmo-g++: fatal error: SIGTERM signal terminated program cc1plus
compilation terminated.
I ran it multiple times and it's weird: if I run cosmoc++ -std=c++23 main.cpp on either of the std::println() or std::format() programs there's like a 50/50 chance the x86_64 one will fail, or else it will succeed but the aarch64 one fails. I don't know what it is.
Version
cosmocc (GCC) 14.1.0
What operating system are you seeing the problem on?
Linux
Relevant log output
# std::println()
cosmoc++: x86_64 succeeded but aarch64 failed to build object
aarch64-linux-cosmo-g++: fatal error: SIGTERM signal terminated program cc1plus
compilation terminated.
# OR
x86_64-linux-cosmo-g++: fatal error: SIGTERM signal terminated program cc1plus
compilation terminated.
# std::format()
x86_64-linux-cosmo-g++: fatal error: SIGTERM signal terminated program cc1plus
compilation terminated.
# OR
cosmoc++: x86_64 succeeded but aarch64 failed to build object
aarch64-linux-cosmo-g++: fatal error: SIGTERM signal terminated program cc1plus
compilation terminated.
The text was updated successfully, but these errors were encountered:
Contact Details
[email protected]
What happened?
Trying to use
std::println()
seems to causecosmoc++
to hang and crash.The same program works fine with Zig v0.13.0 (Clang v18.1.6)
zig c++
I'm using GitHub Codespaces default image. Ubuntu 20.04 x86_64
This same thing also happens with
std::format()
.I ran it multiple times and it's weird: if I run
cosmoc++ -std=c++23 main.cpp
on either of thestd::println()
orstd::format()
programs there's like a 50/50 chance the x86_64 one will fail, or else it will succeed but the aarch64 one fails. I don't know what it is.Version
cosmocc (GCC) 14.1.0
What operating system are you seeing the problem on?
Linux
Relevant log output
The text was updated successfully, but these errors were encountered: