Repository navigation
build: List lib/posix/spawn.c in kaem.run and for the Hurd - #5
Merged
Merged
Conversation
src/posix.c's core:spawn calls spawn, which lib/posix/spawn.c defines with fork, execve and waitpid, and lib/windows/spawn.c defines for Windows. kaem.run, the M2-Planet build of mes-m2 for Linux, did not compile lib/posix/spawn.c, so M2-Planet stopped at src/posix.c with "spawn is not a defined symbol" and built no mes-m2. The libc list for mes_kernel=gnu lacked it too, so the Hurd's libc had no spawn for src/posix.c, which mes_SOURCES compiles for every kernel. The Linux libc list already has it. simple.sh, simple.make and a --with-system-libc build lack it too, and are not changed here. * kaem.run: Compile lib/posix/spawn.c, after the fork, execve and waitpid it calls. * build-aux/configure-lib.sh (libc_SOURCES) [gnu]: Add lib/posix/spawn.c.
kaem.run names every file of mes-m2 by hand, and no run built it, so a file src/ came to need could be missing from it unseen. On ubuntu-latest this builds stage0-posix 1.9.1's x86 chain from its hex0 seed, the release nixpkgs' minimal-bootstrap builds GNU Mes 0.27.1's mes-m2 with (nixpkgs 510ce503d505), and then mes-m2 with kaem.run on a PATH of those tools alone. kaem.run runs mes-m2 once it is linked, so the job also fails if it does not boot. * .github/workflows/linux.yml: New file.
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/posix.c'score:spawncallsspawn, whichlib/posix/spawn.cdefines fromfork,execveandwaitpid.kaem.run, the M2-Planet build of mes-m2 for Linux, did not compile that file, so M2-Planet stopped withsrc/posix.c:482:spawn is not a defined symbol. The libc list formes_kernel=gnulacked it too; the Linux list already has it.kaem.runcompileslib/posix/spawn.cafterwaitpid.c, the last of the calls it makes.lib/stub/fork.c. Regenerated, libc, libc+tcc and libc+gnu for gnu each gain that one file; linux and windows are unchanged.kaem.runon a PATH of those tools alone.kaem.runruns mes-m2 once it is linked.Not covered: nothing builds the Hurd list.
simple.sh,simple.makeand a--with-system-libcbuild also compilesrc/posix.cwithoutlib/posix/spawn.c, and the system-libc builds have no declaration either (include/unistd.hdeclaresspawnonly withoutSYSTEM_LIBC).Closes Novavero-AI/nova-nix#367.