|
| 1 | +### Build details |
| 2 | + |
| 3 | +We build Bitwuzla with the following configuration: |
| 4 | +```shell |
| 5 | +./configure production --shared --only-cadical |
| 6 | +``` |
| 7 | +To make our distribution portable we statically link Bitwuzla against `libgmp`. |
| 8 | + |
| 9 | +Jni bindings `bitwuzla_jni` are built without any tricks. |
| 10 | + |
| 11 | +### Building on windows |
| 12 | +To produce Windows builds we use MSYS2 environment prepared as described [here](https://github.com/aytey/bitwuzla/blob/refreshed_windows_instructions/docs/building_on_windows.rst). |
| 13 | +Also, it is important to link statically with `libwinpthread`. |
| 14 | + |
| 15 | +### Expected dynamic dependencies |
| 16 | +To ensure that our distribution is portable, we verify that the produced binaries have no dependencies that might not be present on the user's machine. |
| 17 | + |
| 18 | +#### Linux x64 |
| 19 | +```shell |
| 20 | +$ ldd libbitwuzla.so |
| 21 | + linux-vdso.so.1 (0x00007ffce92d0000) |
| 22 | + libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f2fdaa00000) |
| 23 | + libm.so.6 => /usr/lib/libm.so.6 (0x00007f2fdad18000) |
| 24 | + libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f2fdb192000) |
| 25 | + libc.so.6 => /usr/lib/libc.so.6 (0x00007f2fda819000) |
| 26 | + /usr/lib64/ld-linux-x86-64.so.2 (0x00007f2fdb1e0000) |
| 27 | +$ ldd libbitwuzla_jni.so |
| 28 | + libbitwuzla.so => not found |
| 29 | + linux-vdso.so.1 (0x00007ffd1ddc6000) |
| 30 | + libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f6188800000) |
| 31 | + libm.so.6 => /usr/lib/libm.so.6 (0x00007f6188b18000) |
| 32 | + libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f6189006000) |
| 33 | + libc.so.6 => /usr/lib/libc.so.6 (0x00007f6188619000) |
| 34 | + /usr/lib64/ld-linux-x86-64.so.2 (0x00007f618906d000) |
| 35 | +``` |
| 36 | + |
| 37 | +#### Windows x64 |
| 38 | +```shell |
| 39 | +$ ldd libbitwuzla.dll |
| 40 | + ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffb7a190000) |
| 41 | + KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ffb78240000) |
| 42 | + KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffb77a70000) |
| 43 | + msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffb79410000) |
| 44 | + CRYPTBASE.DLL => /c/Windows/SYSTEM32/CRYPTBASE.DLL (0x7ffb77190000) |
| 45 | + bcryptPrimitives.dll => /c/Windows/System32/bcryptPrimitives.dll (0x7ffb77de0000) |
| 46 | +$ ldd libbitwuzla_jni.dll |
| 47 | + ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffb7a190000) |
| 48 | + KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ffb78240000) |
| 49 | + KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffb77a70000) |
| 50 | + msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffb79410000) |
| 51 | + libbitwuzla.dll => not found |
| 52 | + CRYPTBASE.DLL => /c/Windows/SYSTEM32/CRYPTBASE.DLL (0x7ffb77190000) |
| 53 | + bcryptPrimitives.dll => /c/Windows/System32/bcryptPrimitives.dll (0x7ffb77de0000) |
| 54 | +``` |
| 55 | + |
| 56 | +#### MacOS aarch64 |
| 57 | +```shell |
| 58 | +$ otool -L libbitwuzla.dylib |
| 59 | +libbitwuzla.dylib: |
| 60 | + @rpath/libbitwuzla.dylib (compatibility version 0.0.0, current version 0.0.0) |
| 61 | + /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.36.0) |
| 62 | + /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0) |
| 63 | +$ otool -L libbitwuzla_jni.dylib |
| 64 | +libbitwuzla_jni.dylib: |
| 65 | + @rpath/libbitwuzla_jni.dylib (compatibility version 0.0.0, current version 0.0.0) |
| 66 | + @rpath/libbitwuzla.dylib (compatibility version 0.0.0, current version 0.0.0) |
| 67 | + /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1300.36.0) |
| 68 | + /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0) |
| 69 | +``` |
0 commit comments