Source: llvm-defaults
Followup-For: Bug #836591

Dear Maintainer,

Looks like the recently build failure 

https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-3.8&arch=arm64&ver=1:3.8.1-10&stamp=1473007170&file=log

is because LLDB build scripts assume 64-bit systems are all x86-64.

Attached patch fixes this, hopefully it has no other negative effects; I will
also file a bug to upstream and ask them about this.

X

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable'), (300, 'unstable'), (200, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Index: llvm-toolchain-3.8-3.8.1/lldb/cmake/modules/LLDBConfig.cmake
===================================================================
--- llvm-toolchain-3.8-3.8.1.orig/lldb/cmake/modules/LLDBConfig.cmake
+++ llvm-toolchain-3.8-3.8.1/lldb/cmake/modules/LLDBConfig.cmake
@@ -165,13 +165,6 @@ function(find_python_libs_windows)
 endfunction(find_python_libs_windows)
 
 if (NOT LLDB_DISABLE_PYTHON)
-  if(UNIX)
-    # This is necessary for crosscompile on Ubuntu 14.04 64bit. Need a proper fix.
-    if(CMAKE_SIZEOF_VOID_P EQUAL 8)
-      set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
-    endif()
-  endif()
-
   if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
     find_python_libs_windows()
 

Reply via email to