This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Backtrace library [1/3]


On Mon, 17 Sep 2012, Ian Lance Taylor wrote:
> Please let me know about any build problems.

i386-unknown-freebsd10.0 now fails as follows.  Others presumably
have not run into this since "This source file is compiled if the
unwind library is not available".

/scratch2/tmp/gerald/gcc-HEAD/libbacktrace/nounwind.c:48: warning: no previous prototype for 'backtrace'
/scratch2/tmp/gerald/gcc-HEAD/libbacktrace/nounwind.c:59: error: conflicting types for 'backtrace_simple'
/scratch2/tmp/gerald/gcc-HEAD/libbacktrace/backtrace.h:130: error: previous declaration of 'backtrace_simple' was here
gmake[4]: *** [nounwind.lo] Error 1
gmake[4]: Leaving directory 
`/scratch2/tmp/gerald/OBJ-0917-1906/libbacktrace'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory 
`/scratch2/tmp/gerald/OBJ-0917-1906/libbacktrace'
gmake[2]: *** [all-stage1-libbacktrace] Error 2 
gmake[2]: Leaving directory `/scratch2/tmp/gerald/OBJ-0917-1906' 
gmake[1]: *** [stage1-bubble] Error 2 
gmake[1]: Leaving directory `/scratch2/tmp/gerald/OBJ-0917-1906'
gmake: *** [bootstrap-lean] Error 2


Tracked as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54611 .


There are two different issues breaking the build here.

The following patch, which I committed as obvious, addresses the second.
Tested by ensuring the bootstrap on this platform is now only breaking
due to the first item.

2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>

        PR bootstrap/54611
        * nounwind.c (backtrace_simple): Add state parameter.

Index: nounwind.c
===================================================================
--- nounwind.c	(revision 191404)
+++ nounwind.c	(working copy)
@@ -53,7 +53,8 @@
 }
 
 int
-backtrace_simple (int skip ATTRIBUTE_UNUSED,
+backtrace_simple (struct backtrace_state *state ATTRIBUTE_UNUSED,
+		  int skip ATTRIBUTE_UNUSED,
 		  backtrace_simple_callback callback ATTRIBUTE_UNUSED,
 		  backtrace_error_callback error_callback, void *data)
 {


I'm running out of time now, but will check again later today or
tomorrow for the other item (hoping it'll been magically gone ;-).

Gerald


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]