#1719·cxx

cxx.cc not compiled by the compiler MCST LCC

Author: sanua356Created Jun 9, 2026Updated Jun 9, 2026

In the process of compiling a project using the MCST LCC compiler, the following error occurs:

cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_e2k8c2_unknown_linux_gnu
CXXFLAGS_e2k8c2_unknown_linux_gnu = None
cargo:rerun-if-env-changed=CXXFLAGS_e2k8c2-unknown-linux-gnu
CXXFLAGS_e2k8c2-unknown-linux-gnu = None
cargo:warning=lcc: "/home/alexander/projects/cxx/src/cxx.cc", line 87: error #1882:
cargo:warning=
cargo:warning= attributes are not allowed on explicit instantiations
cargo:warning= template void panic<std::out_of_range> [[noreturn]] (const char *msg);
cargo:warning=
cargo:warning= ^
cargo:warning=
cargo:warning=1 error detected in the compilation of "/home/alexander/projects/cxx/src/cxx.cc".

--- stderr

error occurred in cc-rs: command did not execute successfully (status code exit status: 1):
C_ALL="C" "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-gdwarf-2" "-fno-omit-frame-pointer" "-std=c++11" "-Wall" "-Wextra" "-o" "/home/alexander/projects/cxx/target/debug/build/cxx-1310f531cf4ab733/out/c16f17691ff6f04b-cxx.o" "-c" "/home/alexander/projects/cxx/src/cxx.cc"

For a correct build, a small patch is required that takes into account the features of the compiler.