Skip to content

[Build] onnxruntime-1.25.0 does not build on Raspberry Pi (Bookworm) 32-bit #28728

@dave-richards

Description

@dave-richards

Describe the issue

The issue is the lack of a -latomic being passed to the linker. I was able to force this in the main onnxruntime cmakelist.txt file, but the unit tests have the same issue. My uname -a is:
Linux rpi4 6.12.75+rpt-rpi-v7l #1 SMP Raspbian 1:6.12.75-1+rpt1~bookworm (2026-03-11) armv7l GNU/Linux

Urgency

No response

Target platform

Raspberry Pi OS Bookworm (32-bit)

Build script

build.sh

Error / output

/usr/lib/ld gets an error claiming it cannot add symbols to libatoic.so.

Visual Studio Version

No response

GCC / Compiler Version

12

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using template

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions