Giter Site home page Giter Site logo

Comments (5)

mavavilj avatar mavavilj commented on June 15, 2024

Not specific to fib.js. Error produced also with, e.g.:

hello.js

// hello world

NOTE:

Possibly the first report of this error, since other Issues seem to be using nectar as opposed to nerd.

from nerd.

mavavilj avatar mavavilj commented on June 15, 2024

Fixable by adding the type std::string to:

__NERD_DIRNAME = argv_str.substr(0, argv_str.find_last_of("/"));

Then the compiler finishes.

from nerd.

mavavilj avatar mavavilj commented on June 15, 2024

Also,

node nerd --run hello.ng
[*] Generating source file
[*] Compiling with preset: speed
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information
../6yng6/nerdcore/src/./class/fixed_array.h: In member function ‘__ct_comp ’:
../6yng6/nerdcore/src/./class/fixed_array.h:50:50: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
   50 |                 value = new NerdCore::VAR[_length];
      |                                                  ^
/usr/include/c++/12/new:128:26: note: in a call to allocation function ‘operator new []’ declared here
  128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |                          ^

[*] Executing /root/Downloads/nerd-master/hello
Hello World !

from nerd.

adrien-thierry avatar adrien-thierry commented on June 15, 2024

could you try with GCC10 or 9 just to check if it comes from GCC ?

from nerd.

mavavilj avatar mavavilj commented on June 15, 2024

could you try with GCC10 or 9 just to check if it comes from GCC ?

The __NERD_DIRNAME problem persists, but is fixable as I wrote earlier.

in reply to: #161 (comment)

node ../nerd --run hello.js
[*] Generating source file
[*] Compiling with preset: speed

[*] Executing /root/Downloads/nerd-master/example/hello

I am not an expert on GCC, but to me the programming error at L75 and L77 at

__NERD_DIRNAME = argv_str.substr(0, argv_str.find_last_of("\\"));
looks evident, since L73 is never executed and thus the variable is never initialized.

from nerd.

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.