Looks like this might be the root:

https://gcc.gnu.org/gcc-4.9/porting_to.html

Unformatted quoting:

"""
Header <cstddef> changes

The <cstddef> header was updated for C++11 support and this breaks some
libraries which misuse macros meant for internal use by GCC only. For
instance with GMP versions up to 5.1.3, you may see:

/usr/include/c++/4.9.0/cstddef:51:11: error: ‘::max_align_t’ has not been
declared
   using ::max_align_t;
           ^
Another possible error is:

someheader.h:99:13: error: ‘ptrdiff_t’ does not name a type

A workaround until libraries get updated is to include <cstddef> or
<stddef.h> before any headers from that library.
"""

On 18 November 2014 15:39, Dima Pasechnik <[email protected]> wrote:

> basically, current (upstream) normaliz does not compile with gcc 4.9.2;
> (with Sage 4.5.beta0).
> I tracked it down to the following test, showing that mpir(xx) does
> something strange...
>
> $ cat b.cpp
> #include <mpirxx.h>
> int main()
> {
>     return alignof(std::max_align_t);
> }
>
> $ g++   -std=c++11 -c b.cpp
> In file included from
> /home/scratch/dimpase/sage/sage6.3/local/include/mpir.h:53:0,
>                  from
> /home/scratch/dimpase/sage/sage6.3/local/include/mpirxx.h:44,
>                  from b.cpp:1:
> /home/scratch/dimpase/sage/sage6.3/local/include/c++/4.9.2/cstddef:51:11:
> error: '::max_align_t' has not been declared
>    using ::max_align_t;
>            ^
> b.cpp: In function 'int main()':
> b.cpp:6:20: error: 'max_align_t' is not a member of 'std'
>      return alignof(std::max_align_t);
>
> e$ g++ -v
> Using built-in specs.
> COLLECT_GCC=/home/scratch/dimpase/sage/sage6.3/local/bin/g++
>
> COLLECT_LTO_WRAPPER=/home/scratch/dimpase/sage/sage6.3/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/lto-wrapper
> Target: x86_64-unknown-linux-gnu
> Configured with: ../src/configure
> --prefix=/home/scratch/dimpase/sage/sage6.3/local
> --with-local-prefix=/home/scratch/dimpase/sage/sage6.3/local
> --with-gmp=/home/scratch/dimpase/sage/sage6.3/local
> --with-mpfr=/home/scratch/dimpase/sage/sage6.3/local
> --with-mpc=/home/scratch/dimpase/sage/sage6.3/local --with-system-zlib
> --disable-multilib --disable-nls --enable-languages=c,c++,fortran
> --disable-libitm
> Thread model: posix
> gcc version 4.9.2 (GCC)
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to