[Debichem-devel] Bug#718689: indigo: FTBFS on arm*, ia64, mips*, s390: cc: error: unrecognized command line option '-m32'/'-m64'

Sebastian Ramacher sramacher at debian.org
Sun Aug 4 11:57:31 UTC 2013


Source: indigo
Version: 1.1.11-1
Severity: serious
Justification: FTBFS but built successfully in the past

indigo now fails to build from source on arm*, mips*, ia64 and s390 with
(from the armel build log):
| make[4]: Entering directory `/«PKGBUILDDIR»/build_scripts/indigo-utils'
| /usr/bin/cmake -E cmake_progress_report /«PKGBUILDDIR»/build_scripts/indigo-utils/CMakeFiles 
| [  0%] Building C object indigo/common/CMakeFiles/common.dir/base_c/os_tls_posix.c.o
| cd /«PKGBUILDDIR»/build_scripts/indigo-utils/indigo/common && /usr/bin/cc   -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -m32 -m32 -I/«PKGBUILDDIR»/common     -fvisibility=hidden -fPIC -fvisibility=hidden -fPIC -fvisibility=hidden -fPIC -o CMakeFiles/common.dir/base_c/os_tls_posix.c.o   -c /«PKGBUILDDIR»/common/base_c/os_tls_posix.c
| cc: error: unrecognized command line option '-m32'
| cc: error: unrecognized command line option '-m32'
| make[4]: *** [indigo/common/CMakeFiles/common.dir/base_c/os_tls_posix.c.o] Error 1
| make[4]: Leaving directory `/«PKGBUILDDIR»/build_scripts/indigo-utils'
| make[3]: *** [indigo/common/CMakeFiles/common.dir/all] Error 2
| make[2]: *** [all] Error 2
| make[1]: *** [override_dh_auto_build] Error 2
| make: *** [build-arch] Error 2
| dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2

On ia64 it fails with -m64 instead. This error is probably due to the
very incomplete architecture detection code in
common/cmake/GetSystemVersion.cmake:
| ELSEIF(UNIX)
|   set(SYSTEM_NAME "Linux")
|   if (NOT SUBSYSTEM_NAME)
|     IF(CMAKE_SIZEOF_VOID_P MATCHES 8)
|       set(SUBSYSTEM_NAME "x64")
|     ELSE()
|       set(SUBSYSTEM_NAME "x86")
|     ENDIF()
|   endif()
|   SET(SYSTEM_DL_EXTENSION ".so")
and then in common/cmake/SetBuildParameters.cmake:
| if(UNIX AND NOT APPLE)
|   if (SUBSYSTEM_NAME MATCHES "x86")
|     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
|     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
|   elseif(SUBSYSTEM_NAME MATCHES "x64")
|     set(CMAKE_C_FLAGS "-include ${CMAKE_CURRENT_LIST_DIR}/../hacks/gcc_preinclude.h ${CMAKE_C_FLAGS} -m64")
|     set(CMAKE_CXX_FLAGS "-include ${CMAKE_CURRENT_LIST_DIR}/../hacks/gcc_preinclude.h ${CMAKE_CXX_FLAGS} -m64")
|   endif()
| endif()

Regards
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debichem-devel/attachments/20130804/7b3fa0ae/attachment.sig>


More information about the Debichem-devel mailing list