[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1024611: rocminfo FTCBFS: confused architecture terminology



Source: rocminfo
Version: 5.2.3-1
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

rocminfo fails to cross build from source, because it passes invalid
compiler flags. The detection is broken due to confusing architecture
terminologies. The system we are building on is called "build" in Debian
and GNU, but for cmake it is called "host". The system we are building
for is called "host" in Debian and GNU, but for cmake it is empty (it
doesn't have a name). I'm attaching a patch for your convenience and
hope to not leave too much confusion.

Helmut
--- rocminfo-5.2.3.orig/CMakeLists.txt
+++ rocminfo-5.2.3/CMakeLists.txt
@@ -143,7 +143,7 @@
 #
 # Extend the compiler flags for 64-bit builds
 #
-if((${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64") OR (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "AMD64"))
+if((${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") OR (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64"))
   set(ROCMINFO_CXX_FLAGS ${ROCMINFO_CXX_FLAGS} -msse -msse2)
 endif()
 

Reply to: