Coder Social home page Coder Social logo

Testing Orange C with CMake about orangec HOT 6 OPEN

 avatar commented on June 27, 2024
Testing Orange C with CMake

from orangec.

Comments (6)

GitMensch avatar GitMensch commented on June 27, 2024

from orangec.

 avatar commented on June 27, 2024

And the compile errors are?

I expect the developer to actually test it himself. But in case of you are too lazy:


C:\Work\covscript\build>ninja -j1
[1/32] Building CXX object CMakeFiles\...ipt.dir\sources\compiler\codegen.cpp.o
FAILED: CMakeFiles/covscript.dir/sources/compiler/codegen.cpp.o
C:\Work\OrangeC\bin\occ.exe  -x c++ -! -c C:\Work\covscript\sources\compiler
\codegen.cpp  -IC:\Work\covscript\include -IC:\Work\covscript\csbuild\deps\i
nclude -fPIC -O3 -std=c++14 -MD -MT CMakeFiles\covscript.dir\sources\compiler\co
degen.cpp.o -MF CMakeFiles\covscript.dir\sources\compiler\codegen.cpp.o.d -o CMa
keFiles\covscript.dir\sources\compiler\codegen.cpp.o
Error C:\Work\covscript\include\covscript\core\core.hpp(32): Could not open  <
covscript/import/libdll/dll.hpp>  for input
Error C:\Work\covscript\include\covscript\core\core.hpp(36): Could not open  <
covscript/import/parallel_hashmap/phmap.h>  for input
Error C:\Work\covscript\include\covscript\core\components.hpp(27): Could not o
pen  <covscript/import/mozart/base.hpp>  for input
Error(396)    C:\Work\covscript\include\covscript\core\components.hpp(615):  T
emplate 'template' parameter missing default
Error C:\Work\covscript\include\covscript\core\variable.hpp(27): Could not ope
n  <covscript/import/mozart/traits.hpp>  for input
Error C:\Work\covscript\include\covscript\core\cni.hpp(27): Could not open  <c
ovscript/import/mozart/bind.hpp>  for input
Error(405)    C:\Work\covscript\sources\compiler\codegen.cpp(662):  Templates
must be classes, functions or data
3 Errors
ninja: build stopped: subcommand failed.

Copied from Windows Command Prompt by Mark and Enter, so it's not pretty. Please try to read.

from orangec.

 avatar commented on June 27, 2024

OK. I forgot to clone the repository with recursive! After all of the submodules are initialized and updated, I have occparse.exe crashed with this dr.mingw report:

occparse.exe caused an Access Violation at location 000000000028FC3E in module occparse.exe Reading from location 0000000000000008.

Registers:
eax=00000000 ebx=0000000b ecx=1347e4f0 edx=00000002 esi=1347f1d0 edi=1449ca20
eip=0028fc3e esp=00d6e8cc ebp=00d6e920 iopl=0         nv up ei pl nz ac po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010216

AddrPC   Params
0028FC3E 14496DC4 1347E4F0 1449C9F0  occparse.exe!0xdfc3e
002908F5 14496DC4 1347E490 1347F270  occparse.exe!0xe08f5
0028CF99 14496DC4 1347E4D0 00D6F220  occparse.exe!0xdcf99
001E126A 00000000 00000000 00000000  occparse.exe!0x3126a


ninja simply said:

C:\Work\covscript\build>ninja -j1
[1/32] Building CXX object CMakeFiles\...ipt.dir\sources\compiler\codegen.cpp.o
FAILED: CMakeFiles/covscript.dir/sources/compiler/codegen.cpp.o
C:\Work\OrangeC\bin\occ.exe  -x c++ -! -c C:\Work\covscript\sources\compiler
\codegen.cpp  -IC:\Work\covscript\include -IC:\Work\covscript\csbuild\deps\i
nclude -fPIC -O3 -std=c++14 -MD -MT CMakeFiles\covscript.dir\sources\compiler\co
degen.cpp.o -MF CMakeFiles\covscript.dir\sources\compiler\codegen.cpp.o.d -o CMa
keFiles\covscript.dir\sources\compiler\codegen.cpp.o
ninja: build stopped: subcommand failed.

from orangec.

 avatar commented on June 27, 2024

@LADSoft Please run some popular static analyzers on your code! Many of them are free! GCC and Clang also offer sanitizers!

from orangec.

GitMensch avatar GitMensch commented on June 27, 2024

from orangec.

LADSoft avatar LADSoft commented on June 27, 2024

@iahunq2 thank you for your efforts, it is much appreciated that you took it to the point of showing the compiler crashing. You might understand, for the issue you had before that I was gonna wonder if something in the setup was wrong because it wasn't finding 'include' files and that didn't seem like a reasonable problem to be having, glad you could take it beyond that!

I'm kinda in the middle of a major rework but after that I will look at these projects and clean up the compiles some more.

from orangec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.