[Dune] Fail to build dune-geometry (or dune-common?)

Uli Sack usack at math.fu-berlin.de
Mon Nov 10 20:14:32 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jö,
thanks for your answer!

On 10.11.2014 14:45, Jö Fahlke wrote:
> For some reason there are no include paths (-I...) given on the
> compilation command line, but a conspicuous space instead.  On the
> top of that config.log should be the exact options configure was
> invoked with.  For me that includes 
> --with-dune-common=/SOME/PATH/dune-common/.  Can you check that
> this is the case for you too?

This seems not to be the case:

[...]It was created by dune-geometry configure 2.4-git, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ /home/usack/refactor/dune-geometry/configure CXX=g++ CXXFLAGS=-g
- --with-gmp=/usr/local



>> dune-common/config.log also reports an error which I cannot
>> interpret well. Maybe that is the culprit?:
>> 
>> configure:27643: gcc -c -g -O2  conftest.c >&5 conftest.c: In
>> function 'main': conftest.c:101:21: error: expected expression
>> before ')' token if (sizeof ((size_t))) ^
> 
> That expression looks wrong to me (if the argument of the operator
> sizeof is a type, there should be exactly one level of parentheses
> around it).  But I have trouble identifying what configure was
> trying to test for here.  Can you give a bit more context from
> config.log here, i.e. there should be lines similar to
> 
> configure:25160: checking for sgemm_ in -lcxml
> 
> and
> 
> configure:25257: result: no

configure:23522: checking for sgemm_
configure:23522: gcc -o conftest -g -O2   conftest.c
- -L/home/usack/usr_progs/gcc_install/lib/gcc/i686-pc-linux-gnu/4.9.2
-
-L/home/usack/usr_progs/gcc_install/lib/gcc/i686-pc-linux-gnu/4.9.2/../../..
- -L/lib/i386-linux-gnu -L/usr/lib/i386-linux-gnu -lgfortran -lm
- -lquadmath >&5
/tmp/ccpOkgvz.o: In function `main':
/home/usack/refactor/dune-common/conftest.c:61: undefined reference to
`sgemm_'
collect2: error: ld returned 1 exit status
[...]
configure:23682: checking for sgemm_ in -lblas
configure:23715: gcc -o conftest -g -O2   conftest.c -lblas
- -L/home/usack/usr_progs/gcc_install/lib/gcc/i686-pc-linux-gnu/4.9.2
-
-L/home/usack/usr_progs/gcc_install/lib/gcc/i686-pc-linux-gnu/4.9.2/../../..
- -L/lib/i386-linux-gnu -L/usr/lib/i386-linux-gnu -lgfortran -lm
- -lquadmath >&5
/usr/bin/ld: cannot find -lblas
collect2: error: ld returned 1 exit status
[...]

the same goes for s/blas/cxml, dxml, scs, complib.sgimath

> 
> and there should usually be the exact source of the failed
> conftest.cc.

The problematic line is the fifth from the bottom:

conftest.c: In function 'main':
conftest.c:101:21: error: expected expression before ')' token
 if (sizeof ((size_t)))
                     ^
configure:27643: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "dune-common"
| #define PACKAGE_TARNAME "dune-common"
| #define PACKAGE_VERSION "2.4-git"
| #define PACKAGE_STRING "dune-common 2.4-git"
| #define PACKAGE_BUGREPORT "dune-devel at dune-project.org"
| #define PACKAGE_URL ""
| #define PACKAGE "dune-common"
| #define VERSION "2.4-git"
| #define DUNE_COMMON_VERSION "2.4-git"
| #define DUNE_COMMON_VERSION_MAJOR 2
| #define DUNE_COMMON_VERSION_MINOR 4
| #define DUNE_COMMON_VERSION_REVISION 0
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define FC_FUNC(name,NAME) name ## _
| #define FC_FUNC_(name,NAME) name ## _
| #define HAVE_INTEGRAL_CONSTANT 1
| #define HAVE_DUNE_HASH 1
| #define HAVE_STD_HASH 1
| #define HAVE_TYPE_TRAITS 1
| #define HAVE_VARIADIC_TEMPLATES 1
| #define HAVE_VARIADIC_CONSTRUCTOR_SFINAE 1
| #define HAVE_RVALUE_REFERENCES 1
| #define HAVE_NULLPTR 1
| #define HAVE_CONSTEXPR 1
| #define HAVE_NOEXCEPT_SPECIFIER 1
| #define HAVE_RANGE_BASED_FOR 1
| #define HAS_ATTRIBUTE_DEPRECATED 1
| #define HAS_ATTRIBUTE_DEPRECATED_MSG 1
| #define HAVE_KEYWORD_FINAL 1
| #define HAS_ATTRIBUTE_UNUSED 1
| #define HAVE_CXA_DEMANGLE 1
| #define DUNE_MINIMAL_DEBUG_LEVEL 4
| #define HAVE_RPC_RPC_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_MPROTECT 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #ifdef F77_DUMMY_MAIN
|
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int F77_DUMMY_MAIN() { return 1; }
|
| #endif
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main ()
| {
| if (sizeof ((size_t)))
| 	    return 0;
|   ;
|   return 0;
| }





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJUYQ6YAAoJEJhzan0mx+qwj98H/1p3mMtTu1gXGUMLGmJGSM0V
6z4XwS634X2gP6U++z5MPNvdlv1KzBcgU3dryPYRb76mTySAKXfWfiCtcUFyxDqJ
MOmtPIcJtv4W3orKHC+35hCbGtGvwsPQqtNLOsmES075X3S3TIIFbVwBvU0V5sOB
lP2pltikUmArKl1NgXvdKbHUVP6yPJRJG9vLAY2aWkfgNfPh2iXTfzb0E50Vq9ac
pJIhNSA/Fp5zvU8QsNXYC8w2ZlIkiZknRnQ09Ib45/QhwrXqiD2/R/61JA77pAV2
ICGlJis9dA1ykM7d2F3/6+HI9SLSam3O5jAg6Y+vLUTBzmymJ5kDkvRC8JTj5hY=
=zEga
-----END PGP SIGNATURE-----




More information about the Dune mailing list