From owner-freebsd-ports@FreeBSD.ORG Wed Nov 30 22:25:53 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6232106564A; Wed, 30 Nov 2011 22:25:53 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4FDFC8FC0C; Wed, 30 Nov 2011 22:25:52 +0000 (UTC) Received: by eaai12 with SMTP id i12so1841205eaa.13 for ; Wed, 30 Nov 2011 14:25:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=X6B9ghXyAEuy3tizv0KrGFtp4RHUoq9iX01Adqku2IQ=; b=WW+Px/aSxuGp4GXsE9B+8PrcJuwUNqF0CBU+5358nemljowGlQWM7fPJV2MBlIpQr9 Nju3PlBQw9Jcns0D4JRFLQQN0cO4ZJaqgntHxXnqPRXM/IS//53fTFqseUpW/q0Levr4 F7JVnmGWaL+BsnAcp0ZmuAdj/yXHKz4PNXwq0= MIME-Version: 1.0 Received: by 10.216.137.42 with SMTP id x42mr103281wei.56.1322691952145; Wed, 30 Nov 2011 14:25:52 -0800 (PST) Received: by 10.180.94.131 with HTTP; Wed, 30 Nov 2011 14:25:52 -0800 (PST) Date: Wed, 30 Nov 2011 22:25:52 +0000 Message-ID: From: "b. f." To: freebsd-ports@FreeBSD.org, Rene Ladan Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: altivec for boinc-setiathome-enhanced on powerpc? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2011 22:25:54 -0000 > despite the --disable-altivec configure option in the Makefile of > astro/boinc-setiathome-ennhanced (which should be removed because it is > autodetected), it is enabled automatically for PowerPC but there it > fails with cc1plus not recognizing the -faltivec option: > > http://pointyhat.freebsd.org/errorlogs/powerpc-errorlogs/e.9.20111009030040/boinc-setiathome-enhanced-6.12_1.log > > Does this mean we have no Altivec support or is something else going wrong? "-faltivec" is only recognized by certain compilers, like Apple's modified version of gcc. You can try patching the port to use "-maltivec -mabi=altivec" instead. We don't want the presence of such CPU extensions to be auto-detected by default, because then default packages that are built on altivec-capable machines may fail on machines that have the same ARCH, but either do not support altivec, or have had their altivec support disabled. Instead, the auto-detection should be turned on if !empty(MACHINE_CPU:Maltivec). This is a little awkward, because the powerpc developers didn't add code to src/share/mk/bsd.cpu.mk to automatically add altivec to the MACHINE_CPU of certain variants of powerpc, as was done, for example, with mmx and certain families of Intel and AMD processors. But the users can always add it themselves, in an included Makefile, like make.conf. b.