From cc490a10903be43e516c86a3827635c2c19d0142 Mon Sep 17 00:00:00 2001 From: firestarsdog <229254897+firestarsdog@users.noreply.github.com> Date: Fri, 13 Nov 2026 11:50:03 -0500 Subject: [PATCH] Fix linux desktop ui --- msgq_repo/SConscript | 3 +++ openpilot/starpilot/ui/native/SConscript | 2 ++ 2 files changed, 5 insertions(+) diff --git a/msgq_repo/SConscript b/msgq_repo/SConscript index f647e97796..21bc37ba22 100644 --- a/msgq_repo/SConscript +++ b/msgq_repo/SConscript @@ -16,6 +16,9 @@ else: # Python symbols resolve at import time. envNanobind["LINKFLAGS"] = [f for f in env["LINKFLAGS"] if f != "-Wl,--no-undefined"] + ["-pthread", "-shared"] +# Python.h's feature-test macros clash with newer glibc (_POSIX_C_SOURCE/_XOPEN_SOURCE), like the Cython env. +envNanobind["CCFLAGS"] = [f for f in envNanobind["CCFLAGS"] if f != "-Werror"] + # Third-party runtime sources do not follow our shadowing warning policy. envNanobindRuntime = envNanobind.Clone() envNanobindRuntime['CCFLAGS'] = [flag for flag in envNanobindRuntime['CCFLAGS'] if not flag.startswith('-Wshadow')] diff --git a/openpilot/starpilot/ui/native/SConscript b/openpilot/starpilot/ui/native/SConscript index 66d71b1487..9ad8f54348 100644 --- a/openpilot/starpilot/ui/native/SConscript +++ b/openpilot/starpilot/ui/native/SConscript @@ -14,6 +14,8 @@ if arch == 'Darwin': else: native['LINKFLAGS'] = [flag for flag in env['LINKFLAGS'] if flag != '-Wl,--no-undefined'] + ['-shared', '-pthread'] native.Append(LIBS=['dl']) +# Python.h's feature-test macros clash with newer glibc (_POSIX_C_SOURCE/_XOPEN_SOURCE). +native['CCFLAGS'] = [flag for flag in native['CCFLAGS'] if flag != '-Werror'] runtime = native.Clone() runtime['CCFLAGS'] = [flag for flag in runtime['CCFLAGS'] if not flag.startswith('-Wshadow')] combined = runtime.SharedObject('nb_combined.os', str(nb_dir / 'src/nb_combined.cpp'))