File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
backends/qualcomm/scripts Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -275,16 +275,19 @@ def _check_tmp_glibc() -> bool:
275275
276276def _current_glibc_version () -> str :
277277 try :
278- return ctypes .CDLL ("libc.so.6" ).gnu_get_libc_version ().decode ()
279- except Exception :
280- return "unknown"
278+ libc = ctypes .CDLL ("libc.so.6" )
279+ func = libc .gnu_get_libc_version
280+ func .restype = ctypes .c_char_p
281+ return func ().decode ()
282+ except Exception as e :
283+ return f"error:{ e } "
281284
282285
283286def _ensure_glibc_minimum ():
284287 current = _current_glibc_version ()
285288 logger .info ("[glibc] Current loaded glibc: %s" , current )
286289
287- if current >= GLIBC_VERSION :
290+ if current != "unknown" and current >= GLIBC_VERSION :
288291 logger .info ("[glibc] Current glibc is sufficient, no re-exec needed." )
289292 return
290293
@@ -299,7 +302,9 @@ def _ensure_glibc_minimum():
299302 return
300303
301304 logger .info (
302- "[glibc] Re-executing under %s (target=%s)" , GLIBC_LOADER , GLIBC_VERSION
305+ "[glibc] Re-executing process with loader %s and library path %s" ,
306+ GLIBC_LOADER ,
307+ GLIBC_LIBDIR ,
303308 )
304309
305310 os .environ [GLIBC_REEXEC_GUARD ] = "1"
You can’t perform that action at this time.
0 commit comments