GithubHelp home page GithubHelp logo

hello.js prints undefined? about just HOT 3 CLOSED

just-js avatar just-js commented on May 14, 2024 1
hello.js prints undefined?

from just.

Comments (3)

kokizzu avatar kokizzu commented on May 14, 2024

just eval "just.print(just.memoryUsage().rss)" works tho

9187328

but after creating new project, it shows this error:

build blabla 0.0.22 (just.js) g++ -c -fno-exceptions -ffunction-sections -fdata-sections  -DJUST_VERSION='"0.0.22"' -std=c++17 -DV8_COMPRESS_POINTERS -I. -I./deps/v8/include -O3 -march=native -mtune=native -Wpedantic -Wall -Wextra -flto -Wno-unused-parameter just.cc
g++ -c -fno-exceptions -ffunction-sections -fdata-sections  -std=c++17 -DV8_COMPRESS_POINTERS -I. -I./deps/v8/include -O3 -march=native -mtune=native -Wpedantic -Wall -Wextra -flto -Wno-unused-parameter main.cc
g++ -s -static -flto -pthread -m64 -Wl,--start-group deps/v8/libv8_monolith.a main.o just.o builtins.o modules/sys/sys.o modules/fs/fs.o modules/net/net.o modules/vm/vm.o modules/epoll/epoll.o -Wl,--end-group -Wl,--gc-sections  -ldl -lrt -o blabla
/usr/bin/ld: /tmp/blabla.pU5vnP.ltrans0.ltrans.o: in function `_sub_I_65535_0.8055':
<artificial>:(.text.startup+0xb7): undefined reference to `_binary_blabla_js_end'
/usr/bin/ld: <artificial>:(.text.startup+0xbe): undefined reference to `_binary_blabla_js_start'
/usr/bin/ld: /tmp/blabla.pU5vnP.ltrans2.ltrans.o: in function `main':
<artificial>:(.text.startup+0x1e9): undefined reference to `_binary_blabla_js_start'
/usr/bin/ld: <artificial>:(.text.startup+0x1f7): undefined reference to `_binary_blabla_js_end'
collect2: error: ld returned 1 exit status
make: *** [Makefile:87: main-static] Error 1
failed in 4.6 sec

from just.

billywhizz avatar billywhizz commented on May 14, 2024

yes. it looks like a couple of bugs here. there's a lot of things that need to be fixed and will have a roadmap for a stable release soon. looks like the code here is out of date: https://github.com/just-js/just/blob/main/lib/build.js#L311.

and if you do

just build --clean

it should resolve the issue with the missing symbols. i'll have a fix for this out shortly.

from just.

billywhizz avatar billywhizz commented on May 14, 2024

closing this as these issues should be resolved in upcoming 0.1.2 release

from just.

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.