Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

Advanced users • Cross-Compile Error for Pi 2W Zero: undefined reference to arc4random_buf@GLIBC_2.36

$
0
0
Hi everyone,

I'm trying to cross-compile a Qt6 application for Raspberry Pi 2W Zero (64-bit OS) on an Ubuntu 22.04 host, but I'm hitting a linker error related to GLIBC: undefined reference to `arc4random_buf@GLIBC_2.36'

System Details:

Host: Ubuntu 22.04 (x86_64, GLIBC 2.35)

Target: Raspberry Pi 2W Zero (aarch64, Raspberry Pi OS with GLIBC 2.36)

Toolchain:

Default aarch64-linux-gnu-g++ (GLIBC 2.35)

Manually synced sysroot from Pi 2W Zero (includes GLIBC 2.36)

Problem:

The symbol arc4random_buf was added in GLIBC 2.36

My host's toolchain (GLIBC 2.35) lacks this symbol, but the Pi 2W Zero's OS expects it.

Statistics: Posted by mbdq — Mon Aug 04, 2025 1:37 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles