scons: Out of memory in compiler while using ghs compiler - scons

I have used the ghs compiler with scons.
The following error occurred while compiling the test.c file, which is about 5M in size.
As far as I'm aware, the following error is not a compiler error since the compiler is marked 'fatal error #4: out of memory'
So, I think it's the error that scons throws, but I don't know why this error occur.
"Generated/bt_out/src/test.c", line 2015: warning #550-D: variable
"Dw_Gal_Local_PC_10_C_C_Status_1" was set but never
used
static VAR(ReturnT, RTE_VINIT) R_Gus_Local_PC_1_4_C_ = ATE__OK;
Out of memory in compiler
scons: *** [Debug\Generated/bt_out/src/test.o] Error 1

Related

Unable to build Kernel

I was following the tutorial of Phillip Opperman (https://os.phil-opp.com/) and I was in the chapter- building the kernel(https://os.phil-opp.com/minimal-rust-kernel/#building-our-kernel) and I keep getting the same error. It seems system-related but I don't know.
C:\Users\radri\%radri%\projects\jcomp>cargo build --target jcomp.json
Compiling core v0.0.0 (C:\Users\radri\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
Compiling rustc-std-workspace-core v1.99.0 (C:\Users\radri\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\rustc-std-workspace-core)
Compiling compiler_builtins v0.1.71
error: failed to build archive: no such file or directory
error: could not compile `rustc-std-workspace-core` due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `core` due to previous error
error: could not compile `compiler_builtins` due to previous error
Created a directory without the '%' as apparently Rust "doesn't like" such directory names. Thanks #SvenMarnach

How to fix this warning un torque?

When trying ./configure I get this
configure: WARNING: This compilation has strict compiler options enabled that cause the build to fail if any compiler warnings are emitted. If this build fails because of a harmless warning, please report the problem to torqueusers#supercluster.org
After I get an error when make
attr_fn_acl.c: In the 'set_allacl' function:
attr_fn_acl.c:454:20: error: this statement may fail [-Werror=implicit-fallthrough=]
pas->as_next = pas->as_buf;
~~~~~~~~~~~~~%~~~~~~~~~~~~
attr_fn_acl.c:458:5: note: here
case INCR:
%~~~
cc1: all warnings are treated as errors
How can this be fixed?
Tried other versions, same
Only with version 6.0.1 it turned out, but there he writes that he requires crypto, which I already have

Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat? this appears to me when compiling

The error below appears after compiling.
How can I prevent this error from occuring?

Is there way to treat Makefile warnings as errors and halt compilation

I used --just-print,--print-data-base, and --warn-undefined-variables command line options to debug makefile.
Is there a way to stop makefile when an warning is found in makefile. Just like werror flag treat warning as error in case of GCC.

Duplicate definition for symbol __module_registered error

I get an error message from GHCi about a "duplicate definition for symbol __module_registered", like this:
GHCi runtime linker: fatal error: I found a duplicate definition for symbol
__module_registered
whilst processing object file
/usr/local/lib/ghc-6.2/HSfgl.o
How to fix this?
Thats is easy, probably indicates that when building a library for GHCi (HSfgl.o in the above example), you should use the -x option to ld.

Resources