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
Describe the bug
After compiling using clang v14, newton produces the following error message when using newton-linux-EN:
newton-lexer.c:151:89: runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'unsigned long' changed the value to 18446744073709551615 (64-bit, unsigned)
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior newton-lexer.c:151:89 in
newton-lexer.c:151:26: runtime error: implicit conversion from type '__ssize_t' (aka 'long') of value -1 (64-bit, signed) to type 'uint64_t' (aka 'unsigned long') changed the value to 18446744073709551615 (64-bit, unsigned)
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior newton-lexer.c:151:26 in
To Reproduce
Steps to reproduce the behavior:
Clone repo using git clone --recursive [email protected]:phillipstanleymarbell/Noisy-lang-compiler.git
Create config.local in root directory, and submodules/libflex. config.local looks like:
This issue seems to be fixed by changing the version of clang to clang-11, and compiling using gcc.
On the system, I :
ran sudo apt remove clang
ran sudo apt autoremove
ran sudo apt install clang-11
created symbolic links to clang and clang++ from clang-11 and clang++-11 in /usr/bin. The previous step installed the clang tools with the -11 suffix in /usr/bin.
changed the compiler to COMPILEVARIANT = gcc in src/common/Makefile, src/newton/Makefile, and submodules/libflex/Makefile.
reran make (after make clean) in submodules/libflex and src/newton, in that order.
This looks like an error that is already happening and is just not getting caught with clang-11. Did you try with clang-12 or clang-13 before clang-11?
Describe the bug
After compiling using
clang
v14, newton produces the following error message when usingnewton-linux-EN
:To Reproduce
Steps to reproduce the behavior:
git clone --recursive [email protected]:phillipstanleymarbell/Noisy-lang-compiler.git
config.local
in root directory, andsubmodules/libflex
.config.local
looks like:COMPILERVARIANT = gcc #clang
toCOMPILERVARIANT = clang
insrc/common/Makefile
,src/newton/Makefile
, andsubmodules/libflex/Makefile
.make
insubmodules/libflex
.make
insrc/newton
.src/newton
, runnewton-linux-EN <any newton file>
.Host OS (please complete the following information):
lsb_release -a
)clang --version
)gcc --version
)Local changes: Base
git diff
:git remote -v
.Local changes: libflex
git diff
:git remote -v
:The text was updated successfully, but these errors were encountered: