-
8000
-
Notifications
You must be signed in to change notification settings - Fork 15.6k
cosmopolitan: 2.2 -> 4.0.2 #400333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
cosmopolitan: 2.2 -> 4.0.2 #400333
Conversation
@@ -27,6 +28,18 @@ stdenv.mkDerivation (finalAttrs: { | |||
}) | |||
]; | |||
|
|||
cosmopolitan-cosmocc = fetchzip { | |||
url = "https://github.com/jart/cosmopolitan/releases/download/${finalAttrs.version}/cosmocc-${finalAttrs.version}.zip"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that this binary also runs on arm64... (if testing with qemu-user)? Then we can have aarch64 in our platforms
1b77ea4
to
de6b9ab
Compare
postPatch = '' | ||
sed -i '/^DOWNLOAD := $(shell build\/download-cosmocc.sh /d' Makefile | ||
mkdir .cosmocc | ||
ln -s ${cosmocc} .cosmocc/3.9.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is using the downloaded binary cosmocc to bootstrap, right? Nothing against that just clarifying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
|
My build of this ran into: dbg
cosmopolitan> test/tool/net/lunix_test.lua:123: assertion failed!
cosmopolitan> redbean: test/tool/net/lunix_test.lua:161: UnixTest failed (o/tmp/o/tmp/lunix_test.54380)
cosmopolitan> stack traceback:
cosmopolitan> [C]: in function 'error'
cosmopolitan> test/tool/net/lunix_test.lua:161: in function 'main'
cosmopolitan> test/tool/net/lunix_test.lua:165: in main chunk
cosmopolitan>
cosmopolitan> `make MODE= -j12 o//test/tool/net/lunix_test.lua.runs` exited with 2:
cosmopolitan> o//tool/net/redbean -i test/tool/net/lunix_test.lua
cosmopolitan> consumed 256,502µs wall time
cosmopolitan> ballooned to 1,796kb in size
cosmopolitan> needed 4,888us cpu (42% kernel)
cosmopolitan> caused 449 page faults (96% memcpy)
cosmopolitan> 11 context switches (63% consensual)
cosmopolitan> performed 27 read and 0 write i/o operations
cosmopolitan>
cosmopolitan> make: *** [build/rules.mk:92: o//test/tool/net/lunix_test.lua.runs] Error 2 |
I don't know why, but I can't reproduce it. |
Also works on my end. Based on the code, I would hypothesize that this has something to do with filesystem block size. For me, |
Diff: jart/cosmopolitan@2.2...4.0.2
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.