Opened 15 years ago

Closed 15 years ago

#914 closed Defect (worksforme)

Ignoring GCC flags

Reported by: shiki08 Owned by:
Priority: Minor Milestone: Undetermined
Component: Undetermined Version: 6.6.31
Keywords: Cc:

Description

Sorry for opening a new ticket again, I used search and didnt find anything. (And I don't want to ask about this in other tickets)

1.) run ./_autosetup
2.) run CFLAGS="-g -O3 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -fprofile-use -ffast-math" CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr --disable-server --disable-fcgi
3.) edit lib/str_util.h (add #include "config.h")
4.) edit Makefile (edit CFLAGS and CXXFLAGS to the wanted ones)
5.) export CFLAGS="-g -O3 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -fprofile-use -ffast-math"
6.) export CXXFLAGS="${CFLAGS}"
7.) CFLAGS="-g -O3 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -fprofile-use -ffast-math" CXXFLAGS="${CFLAGS}" make

--- it'll still ignore the flags. Any idea? (found this table, but it still ignores it> http://wiki.debian.org/BOINC/ClientBenchmarks )

Change History (6)

comment:1 Changed 15 years ago by shiki08

What do I mean?

/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -I../lib -I../api -I../db -I../client -I../tools -I../sched -I../lib/mac -pthread   -g -O2 -msse2 -march=opteron -mtune=generic -MT boinc_api.lo -MD -MP -MF .deps/boinc_api.Tpo -c -o boinc_api.lo boinc_api.cpp
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I.. -I../lib -I../api -I../db -I../client -I../tools -I../sched -I../lib/mac -pthread -g -O2 -msse2 -march=opteron -mtune=generic -MT boinc_api.lo -MD -MP -MF .deps/boinc_api.Tpo -c boinc_api.cpp  -fPIC -DPIC -o .libs/boinc_api.o

comment:2 Changed 15 years ago by Nicolas

You're supposed to pass variables as parameters to configure, not as environment variables.

./configure --prefix=/usr --disable-server --disable-fcgi  CXXFLAGS="-g -O3 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -fprofile-use -ffast-math"

But I haven't checked if that works or not.

comment:3 Changed 15 years ago by Nicolas

Why are you trying to use those flags anyway? You need to optimize the project applications, not the BOINC client. You won't compute any faster by having an optimized client.

comment:4 Changed 15 years ago by shiki08

Yes , a person already told me that. But surprisingly, my client submits more results and get better results if I can use flags (my compiled one provides much better "cpu benchmark" and speed than the downloadable client).

It works. Thanks. (sorry for opening a ticket just for this.. I always used the other way, and it was working. Thanks.)

comment:5 Changed 15 years ago by shiki08

(I really don't want to open a new ticket. FCGI is a "wontwork" or its just a new bug? Should I report it or should I just STFU? :))

comment:6 Changed 15 years ago by Nicolas

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.