Welcome to MilkyWay@home

Posts by Michael Roberts

1) Message boards : Application Code Discussion : What's needed to compile the app? (Message 6819)
Posted 26 Nov 2008 by Profile Michael Roberts
Post:
ok, ... This one
CXXFLAGS_ALL = $(VARIANTFLAGS) \
-g \
-O

INC = -I$(BOINC_DIR) -I$(BOINC_DIR)/lib -I$(BOINC_DIR)/api

stopped after quite a lot of fast scrolling lines with
make: *** no rule to make target »/home/mic/compile/boinc/api/libboinc_api.a«


I fact the file isn't there. Should have been created by the BOINC make-ing, right?

Yes that should have been made with boinc. Is it really not there? Have you updated make.linux to take the libraries from boinc?

(edit) that was a silly question because the error message would have referred to a different path if you had not done that!

I have just checked a fresh boinc build with both server and client disabled as suggested and confirmed that the library is created.

I suggest you do the following in the boinc directory:


make distclean
svn update
(and then the configure and make commands again)


and check for any build errors. Sometimes the svn is in an inconsistent state and it does not build correctly. (That's assuming you are taking trunk or an active branch - it shoud'nt be a problem if you take an explicit release.)

I'll leave the quoted section as it shows how I am currently managing the changes to make.linux - I have a 'little script' which adds lines or uncomments them as necessary -- the comments are added so it is easy to see what has been changed automatically. See the three lines after the ## comments below:


BOINC_LINK_DIR = /projects/wcl/software/boinc
##zap-cmt
BOINC_LINK_DIR = $(BOINC_DIR)
BOINC_LIB_LINK_DIR = $(BOINC_LINK_DIR)/lib
BOINC_API_LINK_DIR = $(BOINC_LINK_DIR)/api

VARIANTFLAGS = -DGMLE_BOINC

CXXFLAGS_ALL = $(VARIANTFLAGS) \
	-g \
	-O

INC = -I$(BOINC_DIR) -I$(BOINC_DIR)/lib -I$(BOINC_DIR)/api

CXX_i686 = g++
CXXFLAGS_i686 = -m32 -O2 -ftree-vectorize -funroll-loops $(CXXFLAGS_ALL)
LDFLAGS_i686 = -L/usr/X11R6/lib -L../../linux32_libboinc
##zap-cmt
LDFLAGS_i686 = -L$(BOINC_LIB_LINK_DIR) -L$(BOINC_API_LINK_DIR)

CXX_x86_64 = g++
CXXFLAGS_x86_64 = -O2 -msse2 -ftree-vectorize -funroll-loops $(CXXFLAGS_ALL)
LDFLAGS_x86_64 = -L/usr/local/lib
#LDFLAGS_x86_64 = -L/usr/local/lib -L/usr/X11R6/lib
##zap-cmt
LDFLAGS_x86_64 = -L$(BOINC_LIB_LINK_DIR) -L$(BOINC_API_LINK_DIR)
2) Message boards : Application Code Discussion : What's needed to compile the app? (Message 6807)
Posted 26 Nov 2008 by Profile Michael Roberts
Post:
Thanks jedirock!

All you described worked out fine. Then I go "make app_i686" and get this:
myhost:/home/mic/compile/milkyway/bin# make app_i686
g++ -m32 -O2 -ftree-vectorize -funroll-loops -DGMLE_BOINC -g -O -I/home/mic/compile/boinc  -Wall -x c++ -c ../astronomy/boinc_astronomy.C -o ../astronomy/boinc_astronomy.o
../astronomy/boinc_astronomy.C:28:25: error: diagnostics.h: No such file or directory
....

Looking for the files manually I find them in $(BOINC_DIR)/lib
What's wrong?

Looks like the Makefile still needs some more tweaking.
Try changing these lines: ...

You will also need -I$(BOINC_DIR)/api . I pointed out yesterday that the definition of INC was missing from the makefile. I have now checked one directory at a time and am using these definitions:
CXXFLAGS_ALL = $(VARIANTFLAGS) \
	-g \
	-O

INC = -I$(BOINC_DIR) -I$(BOINC_DIR)/lib -I$(BOINC_DIR)/api


I would prefer the VARIANTFLAGS and INC definitions to remain in separate variables so they can also be used for other commands (such as splint .
3) Message boards : Application Code Discussion : milkyway code releases (Message 6641)
Posted 24 Nov 2008 by Profile Michael Roberts
Post:
Some updates to make.linux for v0.3

  • definition of INC was missing - I've taken that from v0.2
  • please lose the stray tab on the line after the definition of VARIANTFLAGS - make syntax is horrible!
  • definitions of BOINC_API_DIR and BOINC_LIB_DIR are not used
  • an alternative commented-out definition for BOINC_LINK_DIR would be helpful
  • I still suggest a few usage comments!
  • I have prepared a new file Makefile for local definitions which invokes the makefile I need - that means I don't have to make local alterations to make.linux - I show an example below


Here is a patch with the above changes: http://www.pastebin.ca/1266196

Here is the example for Makefile: http://www.pastebin.ca/1266207

4) Message boards : Application Code Discussion : milkyway v0.2 code release (Message 6636)
Posted 24 Nov 2008 by Profile Michael Roberts
Post:
Sorry I'm only able to check the linux builds (practicality rather than dogma - I don't have a compilation environment on our Windows machine.)

Note also the new thread for v0.3 code release.
5) Message boards : Application Code Discussion : milkyway v0.2 code release (Message 6617)
Posted 24 Nov 2008 by Profile Michael Roberts
Post:
(edit - I've just noticed the v0.3 release in another thread - I'll download that...)

Some more updates for make.linux:

  • The definition -I/software/boinc-6.3.14-0/pkg/include/boinc/ is not needed for CXXFLAGS
  • We need to add -L$(BOINC_DIR)/lib -L$(BOINC_DIR)/api to LDFLAGS, and move the definition of BOINC_DIR above that
  • I've added some brief usage comments at the head of the file


Here is a patch with collected changes so far: http://www.pastebin.ca/1266100

6) Message boards : Application Code Discussion : milkyway v0.2 code release (Message 6540)
Posted 23 Nov 2008 by Profile Michael Roberts
Post:
I have downloaded the new tar, but anyway now missing:
/searches/asynchronous_newton_method.<h/c>

do you know what file is including that? it shouldn't be there.

It is just a dependency in the linux makefile, so you could remove that:
...
make: *** No rule to make target `../searches/asynchronous_newton_method.o', needed by `app_x86_64'.  Stop.
xxx> grep -r asynchronous_newton_method .
./make.linux:	$(SEARCH_DIR)/asynchronous_newton_method.o \
xxx>

(edit) I have now finished the initial compiling and I have had to remove dependencies on the following objects from make.linux:
../searches/asynchronous_newton_method.o
 ../searches/hessian.o
 ../searches/gradient.o
 ../searches/recombination.o
 ../util/matrix.o


Thanks jedirock for the hint about the make targets - that is working fine now.
7) Message boards : Application Code Discussion : milkyway v0.2 code release (Message 6534)
Posted 23 Nov 2008 by Profile Michael Roberts
Post:
1. I'm using linux. I don't see how to use the makefiles -- the dependencies for all -- the $(PROGS) definition -- do not appear anywhere as targets. I get:

xxx> make -f make.linux
make: *** No rule to make target `boinc_astronomy', needed by `all'.  Stop.
xxx>


2. If you add a comment line to the beginning of the makefiles, life will be easier for those using emacs/xemacs (and perhaps other editors?):

# -*- Makefile -*-


This turns on Makefile colourisation for that file in a generic editor configuration.
8) Message boards : Number crunching : known issues (Message 3769)
Posted 13 Jun 2008 by Profile Michael Roberts
Post:
You can safely abort that wu. It's caused by a bad set of wus (gs_600).


Thanks for the quick reply. Done that. Happy again!
9) Message boards : Number crunching : known issues (Message 3767)
Posted 13 Jun 2008 by Profile Michael Roberts
Post:
I woke up to a workunit which has been running for about ten hours still with zero progress, so v1.23 hasn't fixed the "some workunits just freeze" problem. I will leave it suspended for a day or so in case there is any useful information we can extract from it.
10) Questions and Answers : Web site : Your Account broken (Message 1192)
Posted 28 Dec 2007 by Profile Michael Roberts
Post:
Newly-created profiles are also broken: view profile shows the error:
Fatal error: Call to undefined method stdClass::hasImagesAsLinks() in /export/share0/www/boinc/milkyway/html/inc/text_transform.inc on line 109


and results:
Notice: Trying to get property of non-object in /export/share0/www/boinc/milkyway/html/inc/result.inc on line 79




©2024 Astroinformatics Group