Comments (5)
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.
Fixable by adding the type std::string to:
nerd/self/compiler/native/squel/std.cpp
Line 77 in 400b367
Then the compiler finishes.
from nerd.
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.
could you try with GCC10 or 9 just to check if it comes from GCC ?
from nerd.
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/self/compiler/native/squel/std.cpp
Line 75 in 400b367
from nerd.
Related Issues (20)
- Cyclic references leak memory HOT 2
- nectarjs.com down HOT 8
- ESP32 HOT 3
- Parsing Error: Unexpected Token HOT 1
- Great project HOT 1
- Unexpected behaviors when using Regular Expressions
- nectarjs.com is down again HOT 3
- Confused with cpp out / GPL3 HOT 3
- Unexpected token HOT 2
- javascript file can not exists name is 'main' function HOT 2
- Update description project URL HOT 3
- XDG Spec
- Documentation Template Recommendation
- Compiling HTTP example - no matching function for call to 'NerdCore::Class::Function::New()'
- Has the project been abandoned? HOT 1
- Executables very slow on Debian 12? HOT 6
- Installation instructions are incomplete? HOT 2
- Recursion broken (fibo.js)? HOT 3
- How to setup a dev environment so that the compilation of .js/.ng can be debugged (preferably step-wise)? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nerd.