Am 15.08.2012 22:18, schrieb Renato Botelho: > I was updating a 9.0-RELEASE-p3 i386 system's ports and got the > following error when building pcre 8.31: > > CXX pcrecpp.lo > In file included from /usr/include/c++/4.2/bits/c++allocator.h:39, > from /usr/include/c++/4.2/bits/allocator.h:53, > from /usr/include/c++/4.2/memory:54, > from /usr/include/c++/4.2/string:48, > from pcrecpp.cc:43: > /usr/include/c++/4.2/ext/new_allocator.h:37:15: error: new: No such > file or directory > In file included from /usr/include/c++/4.2/string:48, > from pcrecpp.cc:43: > /usr/include/c++/4.2/memory: In function 'std::pair<_Tp*, int> > std::__get_temporary_buffer(ptrdiff_t, _Tp*)': > /usr/include/c++/4.2/memory:83: error: 'nothrow' was not declared in this > scope > /usr/include/c++/4.2/memory: In function 'void > std::return_temporary_buffer(_Tp*)': > /usr/include/c++/4.2/memory:123: error: 'nothrow' was not declared in this > scope > *** Error code 1
Renato, works for me. Your system appears to have a broken gcc installation. It lacks /usr/include/c++/4.2/new, an include file dated Dec 4 2011 and sized 4041 bytes on my 9.0-RELEASE-p3 i386 system, which would also explain the nothrow-related errors. Anything in [/usr]/lost+found by chance? SHA1 (/usr/include/c++/4.2/new) = 0fa579e92a0c62da703a221fcb55c27b5f2bd88f Two excerpts from its contents: // The -*- C++ -*- dynamic memory management header. // Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, // 2003, 2004, 2005, 2006, 2007 // Free Software Foundation // This file is part of GCC. // [...] /** @file new * This is a Standard C++ Library header. * * The header @c new defines several functions to manage dynamic memory and * handling memory allocation errors; see * http://gcc.gnu.org/onlinedocs/libstdc++/18_support/howto.html#4 for more. */ ... HTH Matthias
signature.asc
Description: OpenPGP digital signature