From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 3 01:20:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D469C4AA for ; Mon, 3 Feb 2014 01:20:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AF7541930 for ; Mon, 3 Feb 2014 01:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s131K0nT072423 for ; Mon, 3 Feb 2014 01:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s131K0nb072422; Mon, 3 Feb 2014 01:20:00 GMT (envelope-from gnats) Resent-Date: Mon, 3 Feb 2014 01:20:00 GMT Resent-Message-Id: <201402030120.s131K0nb072422@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Craig Butler Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C6C1429E for ; Mon, 3 Feb 2014 01:11:49 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B2FC318F4 for ; Mon, 3 Feb 2014 01:11:49 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s131BnHM031307 for ; Mon, 3 Feb 2014 01:11:49 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s131BnCg031297; Mon, 3 Feb 2014 01:11:49 GMT (envelope-from nobody) Message-Id: <201402030111.s131BnCg031297@oldred.freebsd.org> Date: Mon, 3 Feb 2014 01:11:49 GMT From: Craig Butler To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/186395: net/freerdp fails to build on sparc64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2014 01:20:01 -0000 >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: