From owner-freebsd-ports@FreeBSD.ORG Tue Jan 29 09:30:30 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAE8616A417 for ; Tue, 29 Jan 2008 09:30:30 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id BFAC413C4EA for ; Tue, 29 Jan 2008 09:30:30 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so3507728waf.3 for ; Tue, 29 Jan 2008 01:30:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=UWjVmm2cLcrkWQFbzKK3qvA3ygm3UlAwYaVbreMRnOk=; b=wzU037Tdy5GFc9JVUrDAMXTDK7O30+CZQ6xWlAJ5d6QyD0YU1VpUuu061pSasDY/y31r3ZEzCzYP+euETbpEnP3wyOqQ4IT0VU3OIWw88n2/o6zr04qiQzPSSXknC5LqwMcYNz4T7RvYFnUGbX009ivZsmArheac8mu19bPyIiM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NlHGIkaMlieFeAz0e2VxwX3I0QQfTaxFoI6WDY99D4tbWRsUBdt/BmYgaZMXLMo/u+JMcjvIQe7vtuW2eOn54r+92HPQ3OdUnTeZcMv1qr0bfeLA6zmyLkxR/RnPjZfDJzedd8EHU1BUOFFBsU1BXQEM5xnAoS3nQcihmuMJw30= Received: by 10.115.58.1 with SMTP id l1mr3233368wak.110.1201599030335; Tue, 29 Jan 2008 01:30:30 -0800 (PST) Received: by 10.114.110.16 with HTTP; Tue, 29 Jan 2008 01:30:30 -0800 (PST) Message-ID: Date: Tue, 29 Jan 2008 10:30:30 +0100 From: "Rene Ladan" To: alex In-Reply-To: <479EE66F.9050601@schlossadler.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <479EDBB0.8030004@schlossadler.net> <479EE66F.9050601@schlossadler.net> Cc: ports@freebsd.org, List for discussing optimization of BOINC apps Subject: Re: FreeBSD Port: boinc-setiathome-enhanced-5.27_2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2008 09:30:31 -0000 2008/1/29, alex : > Rene Ladan wrote: > > > > I guess I need to add " USE_GCC=4.2+ " in the Makefile, since FreeBSD > > 6.3 still uses GCC 3.4.6, while FreeBSD 7+ use GCC 4.2. > > > > Could you try that? I only have a 7.0 box... > > > > Thanks, > > Rene > > > Ok, > > I tried again. I added gcc 4.2 and used a compiler override > > [root@networkservices /usr/ports/astro/boinc-setiathome-enhanced]# env > |grep CC > CC=/usr/local/bin/gcc42 > [root@networkservices /usr/ports/astro/boinc-setiathome-enhanced]# env > |grep CXX > CXX=/usr/local/bin/g++42 > > [root@networkservices /usr/ports/astro/boinc-setiathome-enhanced]# $CC > --version > gcc42 (GCC) 4.2.3 20071024 (prerelease) > Copyright (C) 2007 Free Software Foundation, Inc. > > /usr/local/bin/g++42 -DHAVE_CONFIG_H -I. -I.. -O2 -fno-strict-aliasing > -pipe -mfpmath=387 -I/usr/local/include -funroll-loops -ffast-math -O3 > -I/usr/include -I/usr/include/openssl -fPIC -DPIC -DHAVE_CONFIG_H -O2 > -fno-strict-aliasing -pipe -mfpmath=387 -I/usr/local/include > -funroll-loops -ffast-math -O3 -I/usr/include -I/usr/include/openssl > -DHAVE_CONFIG_H -DTEXT_UI -DNDEBUG -DCLIENT -I../db > -I/usr/local/include/BOINC -I/usr/local -I/usr/local/api > -I/usr/local/lib -I/usr/local/sched -I/usr/local/db -D_THREAD_SAFE > -pthread -O2 -fno-strict-aliasing -pipe -mfpmath=387 > -I/usr/local/include -funroll-loops -ffast-math -O3 -O2 > -fno-strict-aliasing -pipe -mfpmath=387 -I/usr/local/include > -funroll-loops -ffast-math -O3 -I/usr/include -I/usr/include/openssl -MT > seti_boinc-analyzeFuncs_fpu.o -MD -MP -MF > .deps/seti_boinc-analyzeFuncs_fpu.Tpo -c -o > seti_boinc-analyzeFuncs_fpu.o `test -f 'vector/analyzeFuncs_fpu.cpp' || > echo './'`vector/analyzeFuncs_fpu.cpp > vector/analyzeFuncs_fpu.cpp: In function 'int fpu_ChirpData(float > (*)[2], float (*)[2], int, double, int, double)': > vector/analyzeFuncs_fpu.cpp:171: error: 'floor' was not declared in this > scope > gmake[2]: *** [seti_boinc-analyzeFuncs_fpu.o] Error 1 > gmake[2]: Leaving directory > `/usr/ports/astro/boinc-setiathome-enhanced/work/boinc-setiathome-enhanced-5.27/client' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory > `/usr/ports/astro/boinc-setiathome-enhanced/work/boinc-setiathome-enhanced-5.27' > gmake: *** [all] Error 2 > *** Error code 2 > > Any more ideas? :) > Hmm, floor(3) is part of libm / math.h here... %gcc -v Using built-in specs. Target: i386-undermydesk-freebsd Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 4.2.1 20070719 [FreeBSD] What happens if you comment out CPUTYPE from /etc/make.conf ? (if it is defined, CPUTYPE=prescott works for me) Thanks, Rene -- GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) "It won't fit on the line." -- me, 2001