preprocessor/4303: main branch link error (compiler build fails completely)

Duncan Simpson (Admin user) admin@io.stargate.co.uk
Tue Sep 11 17:06:00 GMT 2001


>Number:         4303
>Category:       preprocessor
>Synopsis:       C parser wants non-extatnt cpp_pop_buffer
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 11 17:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Duncan Simpson (Admin user)
>Release:        3.1 20010802 (experimental)
>Organization:
None
>Environment:
System: Linux io 2.3.6 #8 SMP Sun May 13 15:04:32 BST 2001 i686
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --enable-shared --prefix=/usr --enable-threads=posix : (reconfigured) ./configure --enable-shared --enable-threads --prefix=/usr : (reconfigured) ./configure --enable-shared --enable-threads=pthreads --prefix=/usr : (reconfigured) ./configure --enable-shared --prefix=/usr --enable-threads=posix : (reconfigured) ./configure --enable-threads=posix --enable-shared --prefix=/usr : (reconfigured) ./configure --enable-threads=posix --enable-shared --prefix=/usr : (reconfigured)  : (reconfigured)  : (reconfigured) ./configure -enable-threads=posix --enable-shared --prefix=/usr : (reconfigured) ./configure -enable-threads=posix --enable-shared --prefix=/usr : (reconfigured) ./configure --with-gcc-version-trigger=/usr/src/gnu/egcs/egcs/gcc/version.c --host=i686-pc-linux-gnu --enable-threads=posix --enable-shared --prefix=/usr
>Description:
	Attempting to link first stage compiler fails due to undefined external reference to cpp_pop_buffer in
	c-parse.o
>How-To-Repeat:
>Fix:
	The following patch fixes the problem but a better solution should be used instead. Presuambly the
	proper fix is an a simialr function somewhere else.
--- c-parse.y.dist      Wed Aug 29 18:21:31 2001
+++ c-parse.y   Wed Sep 12 00:44:54 2001
@@ -281,6 +281,12 @@
   ggc_add_tree_root (&all_prefix_attributes, 1);
 }
 
+#include "cpphash.h"
+cpp_buffer *cpp_pop_buffer(cpp_reader *r)
+{
+  _cpp_pop_buffer(r);
+  return r->buffer;
+}
 %}
 ^L
 %%

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list