Date: Mon, 3 Feb 2014 01:11:49 GMT From: Craig Butler <craig001@lerwick.hopto.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/186395: net/freerdp fails to build on sparc64 Message-ID: <201402030111.s131BnCg031297@oldred.freebsd.org> Resent-Message-ID: <201402030120.s131K0nb072422@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 186395 >Category: ports >Synopsis: net/freerdp fails to build on sparc64 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 03 01:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Craig Butler >Release: 9.2-RELEASE sparc64 >Organization: >Environment: FreeBSD blueeye.lerwick.hopto.org 9.2-RELEASE FreeBSD 9.2-RELEASE #0: Tue Oct 8 16:09:50 BST 2013 root@blueeye.lerwick.hopto.org:/usr/obj/usr/src/sys/GENERIC sparc64 >Description: currently when building freerdp (as a dependency for xrdp) on a sparc64 machine build complains about -mfpu=neon and -mfloat-abi I don't think sparc64 supports neon >How-To-Repeat: build net/freerdp on a sparc64 machine >Fix: nasty hack to remove all mention of --mfpu=neon and -mfloat-abi allows the port to build. I think there maybe a way to pass in WITH_NEON=off or something to stop it trying to build with neon support... Patch attached with submission follows: diff -ruN freerdp.orig/files/patch-config.h.in freerdp/files/patch-config.h.in --- freerdp.orig/files/patch-config.h.in 1970-01-01 01:00:00.000000000 +0100 +++ freerdp/files/patch-config.h.in 2014-01-30 10:26:24.310205195 +0000 @@ -0,0 +1,10 @@ +--- config.h.in.orig 2014-01-30 10:24:02.141682858 +0000 ++++ config.h.in 2014-01-30 10:24:22.330677704 +0000 +@@ -36,7 +36,6 @@ + /* Options */ + #cmakedefine WITH_PROFILER + #cmakedefine WITH_SSE2 +-#cmakedefine WITH_NEON + #cmakedefine WITH_IPP + #cmakedefine WITH_NATIVE_SSPI + #cmakedefine WITH_JPEG diff -ruN freerdp.orig/files/patch-noneon freerdp/files/patch-noneon --- freerdp.orig/files/patch-noneon 1970-01-01 01:00:00.000000000 +0100 +++ freerdp/files/patch-noneon 2014-01-30 11:17:21.805194456 +0000 @@ -0,0 +1,48 @@ +diff -ruN ../FreeRDP-FreeRDP-780d451.orig/cmake/AndroidToolchain.cmake ./cmake/AndroidToolchain.cmake +--- ../FreeRDP-FreeRDP-780d451.orig/cmake/AndroidToolchain.cmake 2013-07-10 09:00:21.000000000 +0100 ++++ ./cmake/AndroidToolchain.cmake 2014-01-30 11:12:22.989675950 +0000 +@@ -1196,7 +1196,7 @@ + if( ARMEABI_V7A ) + set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -march=armv7-a -mfloat-abi=softfp" ) + if( NEON ) +- set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -mfpu=neon" ) ++ set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS}" ) + elseif( VFPV3 ) + set( ANDROID_CXX_FLAGS "${ANDROID_CXX_FLAGS} -mfpu=vfpv3" ) + else() +diff -ruN ../FreeRDP-FreeRDP-780d451.orig/libfreerdp/codec/CMakeLists.txt ./libfreerdp/codec/CMakeLists.txt +--- ../FreeRDP-FreeRDP-780d451.orig/libfreerdp/codec/CMakeLists.txt 2013-07-10 09:00:21.000000000 +0100 ++++ ./libfreerdp/codec/CMakeLists.txt 2014-01-30 11:13:18.167681417 +0000 +@@ -71,7 +71,7 @@ + + if(WITH_NEON) + set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} ${${MODULE_PREFIX}_NEON_SRCS}) +- set_source_files_properties(${${MODULE_PREFIX}_NEON_SRCS} PROPERTIES COMPILE_FLAGS "-mfpu=neon -mfloat-abi=${ARM_FP_ABI} -Wno-unused-variable") ++ set_source_files_properties(${${MODULE_PREFIX}_NEON_SRCS} PROPERTIES COMPILE_FLAGS "-Wno-unused-variable") + endif() + + if(WITH_JPEG) +diff -ruN ../FreeRDP-FreeRDP-780d451.orig/libfreerdp/primitives/CMakeLists.txt ./libfreerdp/primitives/CMakeLists.txt +--- ../FreeRDP-FreeRDP-780d451.orig/libfreerdp/primitives/CMakeLists.txt 2013-07-10 09:00:21.000000000 +0100 ++++ ./libfreerdp/primitives/CMakeLists.txt 2014-01-30 11:14:11.661680959 +0000 +@@ -58,7 +58,7 @@ + endif() + elseif(WITH_NEON) + if(CMAKE_COMPILER_IS_GNUCC) +- set(OPTIMIZATION "${OPTIMIZATION} -mfpu=neon -mfloat-abi=${ARM_FP_ABI}") ++ set(OPTIMIZATION "${OPTIMIZATION}") + endif() + # TODO: Add MSVC equivalent + endif() +diff -ruN ../FreeRDP-FreeRDP-780d451.orig/libfreerdp/primitives/test/CMakeLists.txt ./libfreerdp/primitives/test/CMakeLists.txt +--- ../FreeRDP-FreeRDP-780d451.orig/libfreerdp/primitives/test/CMakeLists.txt 2013-07-10 09:00:21.000000000 +0100 ++++ ./libfreerdp/primitives/test/CMakeLists.txt 2014-01-30 11:13:51.405675967 +0000 +@@ -92,7 +92,7 @@ + endif() + elseif(WITH_NEON) + if(CMAKE_COMPILER_IS_GNUCC) +- set(OPTFLAGS "${OPTFLAGS} -mfpu=neon -mfloat-abi=${ARM_FP_ABI} -O2") ++ set(OPTFLAGS "${OPTFLAGS} -O2") + endif() + # TODO: Add MSVC equivalent + endif() >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402030111.s131BnCg031297>