Skip to content

Add Ubuntu 24.04 support for WDL bench on ARM (G5)#437

Open
ahmadelyoussef wants to merge 1 commit intofacebookresearch:v2-betafrom
ahmadelyoussef:export-D92189863-to-v2-beta
Open

Add Ubuntu 24.04 support for WDL bench on ARM (G5)#437
ahmadelyoussef wants to merge 1 commit intofacebookresearch:v2-betafrom
ahmadelyoussef:export-D92189863-to-v2-beta

Conversation

@ahmadelyoussef
Copy link
Contributor

Summary:
Ubuntu 24.04 ships with Python 3.12+ which enforces PEP 668 (externally managed environments) and Boost 1.83+ which uses CMake config mode instead of the legacy FindBoost module. These changes break the WDL benchmark installation on Ubuntu 24.04 ARM (G5 instances).

This diff fixes the issues by:

  1. Setting PIP_BREAK_SYSTEM_PACKAGES=1 to allow pip installations without virtual environments on Python 3.12+
  2. Adding comprehensive Boost path detection logic that prioritizes system paths (/usr/lib/aarch64-linux-gnu) over /usr/local to avoid version mismatches from stale CMake config files
  3. Passing explicit Boost_INCLUDE_DIR and Boost_LIBRARY_DIR to CMake via --extra-cmake-defines to fix builds with modern Boost (1.70+)
  4. Setting Boost_NO_BOOST_CMAKE=ON to disable searching in /usr/local for mismatched CMake configs
  5. Cleaning stale CMake cache and build directories before builds to avoid "missing library" errors from previous builds

Differential Revision: D92189863

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 4, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 4, 2026

@ahmadelyoussef has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92189863.

)

Summary:

Ubuntu 24.04 ships with Python 3.12+ which enforces PEP 668 (externally managed environments) and Boost 1.83+ which uses CMake config mode instead of the legacy FindBoost module. These changes break the WDL benchmark installation on Ubuntu 24.04 ARM (G5 instances).

This diff fixes the issues by:
1. Setting `PIP_BREAK_SYSTEM_PACKAGES=1` to allow pip installations without virtual environments on Python 3.12+
2. Adding comprehensive Boost path detection logic that prioritizes system paths (`/usr/lib/aarch64-linux-gnu`) over `/usr/local` to avoid version mismatches from stale CMake config files
3. Passing explicit `Boost_INCLUDE_DIR` and `Boost_LIBRARY_DIR` to CMake via `--extra-cmake-defines` to fix builds with modern Boost (1.70+)
4. Setting `Boost_NO_BOOST_CMAKE=ON` to disable searching in `/usr/local` for mismatched CMake configs
5. Cleaning stale CMake cache and build directories before builds to avoid "missing library" errors from previous builds

Differential Revision: D92189863
@ahmadelyoussef ahmadelyoussef force-pushed the export-D92189863-to-v2-beta branch from 972d86a to 9a3414a Compare February 5, 2026 02:05
meta-codesync bot pushed a commit that referenced this pull request Feb 6, 2026
Summary:
Pull Request resolved: #437

Ubuntu 24.04 ships with Python 3.12+ which enforces PEP 668 (externally managed environments) and Boost 1.83+ which uses CMake config mode instead of the legacy FindBoost module. These changes break the WDL benchmark installation on Ubuntu 24.04 ARM (G5 instances).

This diff fixes the issues by:
1. Setting `PIP_BREAK_SYSTEM_PACKAGES=1` to allow pip installations without virtual environments on Python 3.12+
2. Adding comprehensive Boost path detection logic that prioritizes system paths (`/usr/lib/aarch64-linux-gnu`) over `/usr/local` to avoid version mismatches from stale CMake config files
3. Passing explicit `Boost_INCLUDE_DIR` and `Boost_LIBRARY_DIR` to CMake via `--extra-cmake-defines` to fix builds with modern Boost (1.70+)
4. Setting `Boost_NO_BOOST_CMAKE=ON` to disable searching in `/usr/local` for mismatched CMake configs
5. Cleaning stale CMake cache and build directories before builds to avoid "missing library" errors from previous builds

Reviewed By: excelle08

Differential Revision: D92189863

fbshipit-source-id: d4553b98a4e3097473e067744694fd1c131f68ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant