jart / cosmopolitan

build-once run-anywhere c library
ISC License
18.31k stars 628 forks source link

Tracking issue for build breaks #273

Open Keithcat1 opened 3 years ago

Keithcat1 commented 3 years ago

I'm planning to track any build breaks here and close this issue once everything has been building fine for a while. I got these while trying to build APE Python on WSL. I made sure to clean out the output folder incase that matters. Assembler messages: Fatal error: can't create o/rel/third_party/compiler_rt/nexgen32e/floatundixf.o: No such file or directory gcc 9 exited with 1: o/third_party/gcc/bin/x86_64-linux-musl-gcc -msse3 -mno-red-zone -fno-ma th-errno -fno-trapping-math -fno-fp-int-builtin-inexact -fno-ident -fno-common -fno-gnu-uniqu e -fstrict-aliasing -fstrict-overflow -fno-semantic-interposition -mno-omit-leaf-frame-pointe r -Wall -Werror -fdebug-prefix-map=/mnt/c/py/git/cosmopolitan= -frecord-gcc-switches -O2 -fno -code-hoisting -g -gdescribe-dies -DCOSMO -DMODE="rel" -DIMAGE_BASE_VIRTUAL=0x400000 -nostdin c -iquote. -DNDEBUG -include libc/integral/normalize.inc -Wa,-W -Wa,-I. -Wa,--noexecstack -Wa ,--nocompress-debug-sections -c -o o/rel/third_party/compiler_rt/nexgen32e/floatundixf.o thir d_party/compiler_rt/nexgen32e/floatundixf.S -no-canonical-prefixes -fdiagnostics-color=always -fno-omit-frame-pointer

ballooned to 10,652kb in size needed 40,883µs cpu (14% kernel) caused 1,080 page faults (95% memcpy) 744 context switches (99% consensual) performed 3,160 reads and 0 write i/o operations

make: *** [build/rules.mk:57: o/rel/third_party/compiler_rt/nexgen32e/floatundixf.o] Error 1

o/build/bootstrap/zipobj.com: 22: exec: o/build/bootstrap/zipobj.com: Text file busy zipobj.com exited with 2: build/bootstrap/zipobj.com -b0x400000 -o o/rel/usr/share/zoneinfo/U TC.zip.o usr/share/zoneinfo/UTC

ballooned to 1,752kb in size needed 2,880µs cpu (0% kernel) caused 90 page faults (100% memcpy) 29 context switches (93% consensual)

make: [build/rules.mk:79: o/rel/usr/share/zoneinfo/UTC.zip.o] Error 2 make: Waiting for unfinished jobs....

error:tool/build/lib/elfwriter.c:166:zipobj.com: check failed on keith-pc pid 13090 CHECK_NE(-1, (elf->fd = open(elf->tmppath, O_CREAT | O_TRUNC | O_RDWR | O_EXCL, mode) )); → 0xffffffffffffffff (-1) != 0xffffffffffffffff ((elf->fd = open(elf->tmppath, O_CREAT | O_TRUNC | O_RD WR | O_EXCL, mode))) ENOENT[2] o/build/bootstrap/zipobj.com \ -b0x400000 \ -P.python \ -C3 \ -o \ o/rel/third_party/python/Lib/venv/scripts/common/activate.zip.o \ third_party/python/Lib/venv/scripts/common/activate 6ffffffffde0 00000040945a UNKNOWN 6ffffffffdf0 0000004093c7 UNKNOWN 6fffffffff40 000000407e49 UNKNOWN 6fffffffff90 0000004077e1 UNKNOWN 6fffffffffc0 000000407849 UNKNOWN 6fffffffffe0 000000402829 UNKNOWN 7fffbb489e30 000000402174 UNKNOWN zipobj.com exited with 77: build/bootstrap/zipobj.com -b0x400000 -P.python -C3 -o o/rel/third _party/python/Lib/venv/scripts/common/activate.zip.o third_party/python/Lib/venv/scripts/comm on/activate

ballooned to 380kb in size needed 1,387µs cpu (0% kernel) caused 54 page faults (100% memcpy) 15 context switches (86% consensual)

make: [build/rules.mk:79: o/rel/third_party/python/Lib/venv/scripts/common/activate.zip.o ] Error 77 make: Waiting for unfinished jobs....

error:o/rel/third_party/python/pyobj: check failed: 0xffffffffffffffff != 0xffffffffffffffff (2) 0x00000000004038bd: elfwriter_open at tool/build/lib/elfwriter.c:165 0x0000000000402b4c: Objectify at third_party/python/pyobj.c:618 (inlined by) main at third_party/python/pyobj.c:680 0x00000000004033d0: cosmo at libc/runtime/cosmo.S:65 0x0000000000402246: _start at libc/crt/crt.S:67 pyobj exited with 77: o/rel/third_party/python/pyobj -b0x400000 -B -P.python -C3 -o o/rel/thi rd_party/python/Lib/xml/dom/NodeFilter.o third_party/python/Lib/xml/dom/NodeFilter.py

ballooned to 10,556kb in size needed 56,559µs cpu (27% kernel) caused 3,012 page faults (99% memcpy) 545 context switches (99% consensual) performed 1,832 reads and 0 write i/o operations

make: [build/rules.mk:85: o/rel/third_party/python/Lib/xml/dom/NodeFilter.o] Error 77 make: Waiting for unfinished jobs....

Keithcat1 commented 3 years ago

make -j4 MODE=dbg -O o/dbg/third_party/python/python.com ... third_party/python/Python/frozen.c:10:10: fatal error: o//third_party/python/Python/importlib.inc: No such file or directory 10 | #include "o//third_party/python/Python/importlib.inc" | ^~~~~~~~~~~~ compilation terminated.

make MODE=dbg -j4 o/dbg/third_party/python/Python/frozen.o exited with 1: o/third_party/gcc/bin/x86_64-linux-musl-gcc -msse3 -mno-red-zone -fno-math-errno -fno-trapping-math -fno-fp-int-builtin-inexact -fno-ident -fno-common -fno-gnu-unique - fstrict-aliasing -fstrict-overflow -fno-semantic-interposition -Wall -Werror -fdebug-prefix-map=/mnt/c/py/git/cosmopolitan= -frecord-gcc-switches -fno-optimize-sibling- calls -mno-omit-leaf-frame-pointer -O2 -fno-code-hoisting -fno-inline -fno-pie -g -gdescribe-dies -DCOSMO -DMODE="dbg" -DIMAGE_BASE_VIRTUAL=0x400000 -nostdinc -iquote. -DMODE_DBG -DPy_BUILD_CORE -DMULTIARCH="x86_64-cosmo" -includelibc/integral/normalize.inc -Wa,-W -Wa,-I. -Wa,--noexecstack -Wa,--nocompress-debug-sections -msse3 -mno-r ed-zone -fno-math-errno -fno-trapping-math -fno-fp-int-builtin-inexact -fno-ident -fno-common -fno-gnu-unique -fstrict-aliasing -fstrict-overflow -fno-semantic-interpos ition -std=gnu2x -fwrapv -ffunction-sections -fdata-sections -c -o o/dbg/third_party/python/Python/frozen.o third_party/python/Python/frozen.c -no-canonical-prefixes -f diagnostics-color=always -pg -DPG -fsanitize=address -D__FSANITIZE_ADDRESS__ -fno-omit-frame-pointer consumed 610,482µs wall time ballooned to 14,656kb in size needed 124,254us cpu (85% kernel) caused 1,297 page faults (90% memcpy) 4,090 context switch (99% consensual) performed 27,784 read and 0 write i/o operations

make: *** [build/rules.mk:43: o/dbg/third_party/python/Python/frozen.o] Error 1 I think this error is because it's failing to account that importlib.inc is in o/dbg/, not o//.