Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2008 10:30:30 +0100
From:      "Rene Ladan" <r.c.ladan@gmail.com>
To:        alex <alexander@schlossadler.net>
Cc:        ports@freebsd.org, List for discussing optimization of BOINC apps <boinc_opt@ssl.berkeley.edu>
Subject:   Re: FreeBSD Port: boinc-setiathome-enhanced-5.27_2
Message-ID:  <e890cae60801290130w9102e9ak92d9b5aab9e883f5@mail.gmail.com>
In-Reply-To: <479EE66F.9050601@schlossadler.net>
References:  <479EDBB0.8030004@schlossadler.net> <e890cae60801290017v4e5a2fb1t6186e9643ac1f630@mail.gmail.com> <479EE66F.9050601@schlossadler.net>

next in thread | previous in thread | raw e-mail | index | archive | help
2008/1/29, alex <alexander@schlossadler.net>:
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e890cae60801290130w9102e9ak92d9b5aab9e883f5>