Open janithpet opened 2 years ago
This issue seems to be fixed by changing the version of clang to clang-11
, and compiling using gcc
.
On the system, I :
sudo apt remove clang
sudo apt autoremove
sudo apt install clang-11
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
.COMPILEVARIANT = gcc
in src/common/Makefile
, src/newton/Makefile
, and submodules/libflex/Makefile
.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?
No I didn't, I jumped straight to 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 git@github.com: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
Output of
git diff
:-COMPILERVARIANT = gcc #clang +COMPILERVARIANT = clang
LLVM_CONFIG?=llvm-config
diff --git a/submodules/libflex b/submodules/libflex --- a/submodules/libflex +++ b/submodules/libflex @@ -1 +1 @@ -Subproject commit d7207627830fc093e4259281b757bdd1305018f6 +Subproject commit d7207627830fc093e4259281b757bdd1305018f6-dirty
origin git@github.com:phillipstanleymarbell/Noisy-lang-compiler.git (fetch) origin git@github.com:phillipstanleymarbell/Noisy-lang-compiler.git (push)
diff --git a/Makefile b/Makefile index 89849a2..4b7c4c9 100755 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@
make OSTYPE=android MACHTYPE=x86_64 COMPILERVARIANT= WFLAGS=
# include config.local -COMPILERVARIANT = gcc #clang +COMPILERVARIANT = clang include $(CONFIGPATH)/config.$(OSTYPE)-$(MACHTYPE).$(COMPILERVARIANT)
TARGET = libflex-$(OSTYPE).a
origin git@github.com:phillipstanleymarbell/libflex.git (fetch) origin git@github.com:phillipstanleymarbell/libflex.git (push)