theopolis / build-anywhere

Scripts for building compilers that run anywhere, which build things that run anywhere
89 stars 10 forks source link

will-it-run script to check linkage requirements and x86 extensions #1

Closed theopolis closed 5 years ago

theopolis commented 5 years ago

After a binary or library is built we want to check the linkage requirements.

  1. run ldd -v and check the glibc version requirement.
  2. check a small-list of expected dynamic link requirements (m, rt, pthreads, z)
  3. disassemble and search for vector/etc instructions that only exist on newer CPUs (non-deterministic check)
theopolis commented 5 years ago

Fixed with https://github.com/theopolis/build-anywhere/commit/54c5eaf0f2cee0e80f5cfc60091b5e08ded43d7c