psmedley / node-os2 Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Chromium runs some scripts which produce no output. On linux, we get a 0 byte file, on OS/2 we get no file at all which causes problems.
ie link with -lcx and -Zomf - build .exe, etc
Sample trap at
63a0afef-bc39_01-NODE-exceptq.txt
If possible, we want to avoid compiling openssl and use the rpm packages. Meanwhile look at teaching gyp how to build os/2 binaries for openssl
Currently gyp generates make files which fail on OS/2 due to the command line exceeding 32k characters.
We need to adapt make.py to generate response files.
Steven suggests:
`I suspect we may want to tweak gyp. At the moment I am little more than
buzzword compliant in gpy so you may need to ignore me.
We have
tools\gyp\pylib\gyp\generator\make.py:139
LINK_COMMANDS_LINUX = """
quiet_cmd_alink = AR(
cmd_alink = rm -f
which appears to be what is generating the long-ish command lines.
This can be rewritten with make's file function to use response files.
See 8.6 The 'file' Function in make.info
The example provided is:
program: $(OBJECTS)
@rm [email protected]
which does no filtering and is doing rm rather than ar and is multi-line.
Assuming I have the syntax right, something like
rm -f
@[email protected]
should work.
filter is documented in 8.2 Functions for String Substitution and Analysis
ar does response files, so given:
[d:\tmp]cat tmp.rsp
foo
Running results in the expected
[d:\tmp]ar crs a.a @tmp.rsp |& less
D:\USR\BIN\ar.exe: foo: No such file or directory
There actually two make.py's so both may need to be tweaked.
If the above works, it might be better to add our own LINK_COMMANDS_OS2
avoid conflicts going forward.
I may scan the gpy repo later to see if newer version support response
files better.
`
This breaks qtwebengine build:
Simple test:
`
// Node.js program to demonstrate the
// os.cpus() method
// Allocating os module
const os = require('os');
// Printing os.cpus() values
console.log(os.cpus());`
returns 'undefined'
Hacked around this (for now) in qtwebengine with psmedley/qt6-webengine-os2@174e968
current workaround is to edit out/makefile to replace any drive letters pointing to the build directory with /
ie replace u:/node10 with /node10
This avoids errors like:
../deps/v8/src/base/bits.cc:121:1: fatal error: opening dependency file U:/dev/node-v10.19.0/out/Release/.deps/U:/dev/node-v10.19.0/out/Release/obj.host/v8_libbase/deps/v8/src/base/bits.o.d.raw: No such file or directory
When building from this repo, mksnapshot is crashing immediately.
Exceptq report attached
63a5c761-f225_01-MKSNAPSHOT-exceptq.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.