Skip to content

WIP : Glibc static build#767

Open
vidyalakshmir wants to merge 31 commits intomainfrom
glibc-static-build-tmp
Open

WIP : Glibc static build#767
vidyalakshmir wants to merge 31 commits intomainfrom
glibc-static-build-tmp

Conversation

@vidyalakshmir
Copy link
Contributor

Updated s_frexpl.c with latest glibc code that fixes the build error

vidyalakshmir and others added 29 commits February 1, 2026 21:45
Refactor make_archive.sh to improve comments and structure.
Removed the creation of the libpthread.a archive and its success check.
* Add deterministic signal tests for various scenarios

- Implemented tests for signal handling with fork, threads, longjmp, and signal masks.
- Added tests to verify behavior of blocked signals, recursive signal handling, and signal action flags.
- Removed non-deterministic signal tests to streamline the test suite and ensure consistent behavior.

These changes enhance the robustness of the signal handling tests by focusing on deterministic outcomes.

* update skip test file

* Refactor test cases and update skip list

- Moved 'tls_test.c' from non-deterministic to deterministic tests.
- Removed 'dnstest.c', 'getifaddrs.c', and 'tls_test.c' files from the unit tests to streamline the test suite.

* Add additional test cases to skip list

- Added 'signal_sa_mask.c', 'getifaddrs.c', and 'signal_int_thread.c' to the skip list for deterministic tests.
- Updated the skip_test_cases.txt file to reflect these changes.
* refactor: remove LIND_ROOT namespace from RawPOSIX

- remove path prefixing and stripping across multiple syscalls involved with the fs
- paths do not contain LIND_ROOT manipulation now

Fixes #611

* add missing PathBuf import statement in wasmtime

* remove LIND_ROOT from TESTFILES_DSTin test runner

* experiment: add chroot at rawposix_start

* refactor: add LINDFS_ROOT and chroot to rawposix_start. furthermore, remove LIND_ROOT comments from fs_calls

* fix: linting in imports

* - added LINDFS_ROOT constant - Points to lindfs/ directory
  - updated TESTFILES_DST - Changed from /testfiles to LINDFS_ROOT / "testfiles"
  - updated executable paths - All use LINDFS_ROOT now (3 locations)
  - create directory structure - Creates lindfs/{dev,automated_tests,testfiles}
  - create /dev/null - Uses mknod to create device node

* make modifications in test to support chroot LINDFS_ROOT

* remove creation of /dev/null in pre_test wasm test runner

* enable test execution of skipped tests after chroot filesystem change

* add printf in cloexec.c test

* Revert "add printf in cloexec.c test"

This reverts commit 3d18dcc.

* update net_call.rs

* refactor: wasmtestreport to remove redundnat LIND_ROOT

* debug: Fix three failing tests in lind-wasm

- cloexec.c: changed test to follow automated_tests/ convention
- creat_access.c: File created with  creat()  didn't actually exist on disk, causing
  access()  to fail with ENOENT. Swapped it with open()
- readlinkat.c: dirfd was being ignored incase of relative paths as sc_convert_path_to_host() always normalizes to absolute path
For dirfd case: use raw path string instead of normalized absolute path

* fix:in readlinkat_syscall, for dirfd case: use raw path string instead of normalized absolute path

* fix linting issue

* fix relative path reference to readlinkat

* address review comments

* add creat_access back to skip list

* modify fork exec to assume 0 gid, uids for test

* refactor test with macro and better comments

* refactor: swap print statements with asserts

* use sc_convert_to_cchar_mut

* fix linting issue
Removed non-deterministic test cases from the skip list.
* Update build targets

* Correct sysroot declaration

* Replace fallbacks with exit 127

* ensure Dockerfile.e2e is passing built location of wasmtime to test
Bumps [actions/cache](https://github.com/actions/cache) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@8b402f5...cdf6c1f)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: 5.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add helper functions for vmmap range accessibility check

* Resolve comments and add unit vmmap tests
* add sudo if not root for lind_run

* refactor
* Add 3i and grate documentation

* Deploy 3i doc to web

* Fix type

* Revise Lind-Wasm documentation for clarity and detail

Updated the Lind-Wasm documentation to clarify the concepts of cages, grates, and the 3i system. Enhanced explanations of memory safety, control flow integrity, and the roles of Wasmtime and RawPOSIX.

* Revising 3i doc according to comments

* Update 3i.md (upper portion)

I will comment on some of the lower portions which I think are wrong.

* Update docs/index.md

* Update docs/index.md

* Update docs/internal/3i.md

Co-authored-by: Justin Cappos <justincappos@gmail.com>

* Update docs/internal/3i.md

Co-authored-by: Justin Cappos <justincappos@gmail.com>

* Update docs/internal/3i.md

Co-authored-by: Justin Cappos <justincappos@gmail.com>

* Update docs/index.md

* Update docs/index.md

* Update docs/index.md

* Update docs/index.md

* Update docs/internal/3i.md

Co-authored-by: Justin Cappos <justincappos@gmail.com>

* Update docs/internal/3i.md

Co-authored-by: Justin Cappos <justincappos@gmail.com>

* Update Wasm Implementation

* Update wasm implementation

* Update docs/internal/3i.md

Co-authored-by: Justin Cappos <justincappos@gmail.com>

* Fix typo

* Add 3i API doc + update 3i readme

* Update 3i.md

* Update 3i.md

* Update 3i.md

* todo

* Update grate call routine doc and pic

* Update according to comments

* Add thread pool explanation

* Remove ds_store

* Add link and refine

---------

Co-authored-by: Justin Cappos <justincappos@gmail.com>
* Update gitignore

* Update gitignore
#691)

* Add support for flags to be passed to wasmtestreport.py and lind_compile.sh scripts

* Test permissions on wasmtestreport.py

* Correct permissions on other scripts for tests

* Remove support for json files and hard code math folder as variable
* remove invalid flag: MAP_POPULATE from mmap call in test

* replace error for unsupported flag in mmap with panic for better debugging

* Support MAP_POPULATE in mmap call and update associated test

* add missing MAP_POPULATE const

* fix mmaptest with bitwise or instead of comma
* fix: creat.c to default to no op

* remove creat_access.c from skip list
* fix for malloc_printerr

* added comments
…and fesetround instead of i386 specific implementation containing assembly
…heduler by adding weak symbols within arch specific impl
@vidyalakshmir vidyalakshmir changed the title Glibc static build WIP : Glibc static build Feb 19, 2026
@rennergade
Copy link
Contributor

You should be using a new branch/PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants