Menu

Building Problems Ubuntu

Hannes
2016-04-13
2016-04-13
  • Hannes

    Hannes - 2016-04-13

    Hi gridlab-d team,

    the compilation and/or successive validation of gridlab-d 3.2 doesn't seem to work for me.
    I pretty much followed this description: http://gridlab-d.sourceforge.net/wiki/index.php/Linux/Unix
    This description was hard to find (I found it in one of the ticket descriptions).
    I used the scripts to install both xerces and cppunit, still one isn't recognized as the right version and the other not found at all.

    configure: WARNING: libxerces-c version 2.8.0
    configure: WARNING: may not be suitable for building gridlabd
    
    -----------------------------------------------------------------------
    
    
      gridlabd 4.0.0: Automatic configuration OK.
    
      Dependencies:
    
        MinGW: ...................... no
        Doxygen: .................... no
        libcppunit: ................. no
        libxerces-c: ................ yes
        matlab: ..................... no
        mysql-connector-c: .......... no
        curses: ..................... no
    

    when then running make

    new=`svn info . | sed -ne 's/^Last Changed Rev: //p'`; \
    dir=`svn info . | sed -ne 's/^URL: //p' | sed -ne 's:^.*gridlab-d/code/::p'`; \
    if test -f core/build.h; then \
        old=`cat core/build.h | sed -ne 's/^#define BUILDNUM //p'`; \
    else \
        old=0; \
    fi; \
    echo "New revnum is '$new', old revnum is '$old', svnurl is '$dir'"; \
    if test -z "$old" -o $new -ne $old; then \
        echo "#define BUILDNUM $new" > core/build.h; \
        if test "${dir:0:6}" != "branch"; then \
                        echo "#define BRANCH \"$dir\"" >> core/build.h; \
        fi \
    fi;
    New revnum is '', old revnum is '0', svnurl is 'trunk'
    /bin/bash: Zeile 8: test: Zu viele Argumente.
    make  all-am
    make[1]: Entering directory '/home/krauss/gridlabd/gridlab-d'
    /bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./core  -I./core -D_NO_CPPUNIT  -pthread  -g -O2 -MT assert/assert_assert_la-assert.lo -MD -MP -MF assert/.deps/assert_assert_la-assert.Tpo -c -o assert/assert_assert_la-assert.lo `test -f 'assert/assert.cpp' || echo './'`assert/assert.cpp
    libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./core -I./core -D_NO_CPPUNIT -pthread -g -O2 -MT assert/assert_assert_la-assert.lo -MD -MP -MF assert/.deps/assert_assert_la-assert.Tpo -c assert/assert.cpp  -fPIC -DPIC -o assert/.libs/assert_assert_la-assert.o
    In file included from ./core/globals.h:10:0,
                     from ./core/object.h:15,
                     from ./core/gridlabd.h:94,
                     from assert/assert.h:10,
                     from assert/assert.cpp:13:
    ./core/version.h:11:75: fatal error: build.h: No such file or directory
    compilation terminated.
    Makefile:4064: recipe for target 'assert/assert_assert_la-assert.lo' failed
    make[1]: *** [assert/assert_assert_la-assert.lo] Error 1
    make[1]: Leaving directory '/home/krauss/gridlabd/gridlab-d'
    Makefile:1425: recipe for target 'all' failed
    make: *** [all] Error 2
    

    I can run gridlabd --version and it outputs the right thing, but these messages are too suspicious.

    After that I ran sudo make install which throw the same text as above and make validate doesn't run through properly.

    Can you help?

    regards
    H. Krauß

     

    Last edit: Hannes 2016-04-13
  • David P. Chassin

    I suspect that what's happening is the script that creates build.h assumes SVN responds in English. Perhaps it is searching for specific words in the output of svn info, i.e., Last Changed Rev: and doesn't find that because it's coming out in German, so it fails.

    You might try this: look at the output of svn info . when it is run in the gridlabd directory and replace the search keys in the makefiles with the correct German wording.

     
  • David P. Chassin

    By the way, Jason just pointed out that you have not addressed to important observations about your output:
    1) You have the wrong version of xerces installed.
    2) You say you're trying to build 3.2, but configure says you're building 4.0.

     

Log in to post a comment.

MongoDB Logo MongoDB