Date: Fri, 19 May 2000 13:12:23 -0700 (PDT) From: MikeM <mike_bsdlists@yahoo.com> To: freebsd-current@freebsd.org Subject: error making world: stage 1 Message-ID: <20000519201223.12769.qmail@web3103.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi, This is the first time I've tried to install current, so if the following issue has already been discussed, please let me know where to find the logs. I am trying to upgrade from 3.2 Release to -current but the build fails in the bootstrap stage. my supfile has the following release=cvs tag=. I synced my source tree at about 10 a.m. Pacific this morning (05/19). I ran make world. As it tried to compile new.cc in gperf I got the following error: /pub/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/new.cc: In function `void operator delete(void *)': /pub/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/new.cc:82: declaration of `operator delete(void *)' throws different exceptions... <internal>:82: ...from previous declaration here *** Error code 1 A look at /usr/src/contrib/gperf/src/new.cc yielded this: /* We need this deletion operator in order to make the linker happy. Because `operator new' and `operator delete' always come together. */ void operator delete (void *ptr) #ifdef HAVE_THROW_DECL throw() #endif { T (Trace t ("operator delete");) // We cannot call free here, as it doesn't match the mallocs. // free ((char *) ptr); (void) ptr; } So, apparently somewhere else delete is declared without throw() or with something inbetween the (). My understanding is that throw() is an optional compile time thing, and acts simply as an "interface contract" between the calling and the called function specifying what exceptions will be thrown by the function, so I took the liberty of adding: #undef HAVE_THROW_DECL just before the function declaration. That seems to have fixed my problem (it's in "stage 3: cross tools" right now). However, that only fixed the symptom, not the cause. Presumably, the problem will still be there next time I cvsup. I would rather not have to muck with the code every time I sync my source tree, and would appreciate it if someone could give me a heads up as to anything I might be doing wrong on my end, or if it is a problem with the code that the maintainer be made aware. I'd appreciate any help/response. Thanks, Mike_TM. --"The beatings will continue until morale improves!" __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000519201223.12769.qmail>