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

Uli Sack usack at math.fu-berlin.de
Tue Nov 11 14:49:15 CET 2014


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

On 11.11.2014 13:55, Jö Fahlke wrote:
> Hmm, so this seems to be dunecontrol related.  It might still be
> due to the error in dune-common though, so lets try to solve that
> one first.
> 
>>>> 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))) ^
>>> 
> Actually, sgemm_ was just meant as an example so you know what
> begin and end lines to look for.  But what I want to see is the
> portion delimited by those kinds of lines around the error.  In
> particular I am interested in what configure is checking for there.
> Or did I get this wrong and the error is really in the check for
> sgemm_?
> 

Ah, I see. Sorry, I misunderstood you there. The test is for the type
size_t. I attached the full config.log of dune-common. It seems that
in case of failing test there is simply a #define size_t unsigned int.
Sth that shouldn't have the whole thing failing?!


The relevant parts of configure are (in my case lines 27643ff)

ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t"
"$ac_includes_default"
if test "x$ac_cv_type_size_t" = xyes; then :

else

cat >>confdefs.h <<_ACEOF
#define size_t unsigned int
_ACEOF

fi


and (lines 2427ff)


# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"}
as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#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 ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#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 (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type





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

iQEcBAEBAgAGBQJUYhPaAAoJEJhzan0mx+qw0iMH/0p6gvY5qjX9EzB1I6uTkyQa
/l+ewGpAtcSu67UeEPIooH5ZyXuw+MlXJFBizniymCvGwbFgJg0GrgveLNYeUOVT
xce//w8zKMfTwn2fNe+IASM0ghvV3Yq7aoiTo51b0FM9/D8uUUNX7bew6GeAUFHE
CxiYmEee2sADp6/ByvFKpiX/qltAx+YGTVryPmGqQjxw6cf8n3b6ujsIDFK5CWCh
kYYZIgXSOt2P2DvVmfqERjF5AifQ9bmQLypl5hUYnTy2XpJHK/rK/8Q7WCJF5ji9
9dTF/VbTjK/TMWolSL7T0ptRBKTOX3uUM4lP6ArfVkFFtjhlyr4yXEPdN3NP9uI=
=QoaK
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 85515 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141111/1cc805a8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.sig
Type: application/octet-stream
Size: 287 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141111/1cc805a8/attachment.obj>


More information about the Dune mailing list