From owner-freebsd-ports@FreeBSD.ORG Tue Jan 29 17:29:31 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 8DACB16A419 for ; Tue, 29 Jan 2008 17:29:31 +0000 (UTC) (envelope-from korpela@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id 4647613C465 for ; Tue, 29 Jan 2008 17:29:31 +0000 (UTC) (envelope-from korpela@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so3111840pyb.10 for ; Tue, 29 Jan 2008 09:29: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:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=1u/wDxLoqSQlBoBbVw9cHqCm0nrTHykhRXArPYQtmuk=; b=rtlKj8gl73ovTsJMPLf+6n1C8AVniqIP5pVaWPrbODf3t1CMArMob8g/IDVPgzyZrN/P92ZjNwRznGNRko+AxtxwkLoI/wJRxx+Ay5U1RrYRqdaIznVvZhRYZVZAE/7dMLEwekQqfA2xDAUGw9NNUhvKnK0WzS9gtiMbLa4RfLg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=IwTaROjW+/qHX2/m5/rMADr1qjD07gq9hqHdVh7r/hBkHa5BTJTMrHn22xPSzQGPxgZoy70bahK9aY/1IgGAGv/b/JI5TBFqnYfsvh3F5M1e0lGJ2UVEBFCalP1u889ZAPOTMtnEC5dAP2PQJscQ3TLfW5Zzc3UR9E5kOQ5dgL8= Received: by 10.64.131.4 with SMTP id e4mr14773805qbd.68.1201626921329; Tue, 29 Jan 2008 09:15:21 -0800 (PST) Received: by 10.65.59.12 with HTTP; Tue, 29 Jan 2008 09:15:21 -0800 (PST) Message-ID: Date: Tue, 29 Jan 2008 09:15:21 -0800 From: "Eric J Korpela" Sender: korpela@gmail.com To: "List for discussing optimization of BOINC apps" In-Reply-To: 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> X-Google-Sender-Auth: aa7d2f2e2043c25b Cc: ports@freebsd.org, alex Subject: Re: [Boinc_opt] 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 17:29:31 -0000 Yes, try putting an "#include " at the top of analyzeFuncs_fpu.cpp. If that works, I will make the change in our source. Eric On Jan 29, 2008 1:30 AM, Rene Ladan wrote: > 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 > _______________________________________________ > boinc_opt mailing list > boinc_opt@ssl.berkeley.edu > http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_opt >