Was: buildroot: libstdc++-v3 error., buildroot gcc patch for index being a macro

Peter S. Mazinger ps.m at gmx.net
Tue Apr 4 14:12:40 UTC 2006


On Tue, 4 Apr 2006, Peter S. Mazinger wrote:

Attached the needed patch, someone who cares about buildroot should add it 
to all affected gcc's (3.4.x and 4.x are affected for sure)

Peter
> On Tue, 4 Apr 2006, Pandit Panburana wrote:
> 
> > I am using the buildroot-20060301 and seeing the following errors when include c++ option.  Am I missing any thing during the make menuconfig?
> >  
> >  2 arguments, but only 1 given
> >  /home/pandit/LN2410/buildroot/buildroot/toolchain_build_arm/gcc-3.4.3-final/arm-linux-uclibc/libstdc++-v3/include/ext/ropeimpl.h:1503:48: macro "index" requires 2 arguments, but only 1 given
> >  /home/pandit/LN2410/buildroot/buildroot/toolchain_build_arm/gcc-3.4.3-final/arm-linux-uclibc/libstdc++-v3/include/ext/ropeimpl.h:1503:66: macro "index" requires 2 arguments, but only 1 given
> >  make[4]: *** [ext-inst.lo] Error 1
> >  make[4]: Leaving directory `/home/pandit/LN2410/buildroot/buildroot/toolchain_build_arm/gcc-3.4.3-final/arm-linux-uclibc/libstdc++-v3/src'
> >  make[3]: *** [all-recursive] Error 1
> >  make[3]: Leaving directory `/home/pandit/LN2410/buildroot/buildroot/toolchain_build_arm/gcc-3.4.3-final/arm-linux-uclibc/libstdc++-v3'
> >  make[2]: *** [all] Error 2
> >  make[2]: Leaving directory `/home/pandit/LN2410/buildroot/buildroot/toolchain_build_arm/gcc-3.4.3-final/arm-linux-uclibc/libstdc++-v3'
> >  make[1]: *** [all-target-libstdc++-v3] Error 2
> >  make[1]: Leaving directory `/home/pandit/LN2410/buildroot/buildroot/toolchain_build_arm/gcc-3.4.3-final'
> >  make: *** [/home/pandit/LN2410/buildroot/buildroot/toolchain_build_arm/gcc-3.4.3-final/.compiled] Error 2
> >  
> >  Thank you,
> >  -Pandit
> 
> You have 2 options, either you enable UCLIBC_SUSV3_LEGACY or add the line
> 
> #undef index
> 
> to both rope and ropeimpl
> 
> Peter
> 
> 

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2
-------------- next part --------------
--- gcc-4.1.0/libstdc++-v3/include/ext/rope.mps	2006-03-24 01:49:51 +0100
+++ gcc-4.1.0/libstdc++-v3/include/ext/rope	2006-03-24 01:49:37 +0100
@@ -59,6 +59,9 @@
 #include <bits/allocator.h>
 #include <ext/hash_fun.h>
 
+/* cope w/ index defined as macro, SuSv3 proposal */
+#undef index
+
 # ifdef __GC
 #   define __GC_CONST const
 # else
--- gcc-4.1.0/libstdc++-v3/include/ext/ropeimpl.h.mps	2006-03-24 01:50:04 +0100
+++ gcc-4.1.0/libstdc++-v3/include/ext/ropeimpl.h	2006-03-24 01:50:28 +0100
@@ -53,6 +53,9 @@
 #include <ext/memory> // For uninitialized_copy_n
 #include <ext/numeric> // For power
 
+/* cope w/ index defined as macro, SuSv3 proposal */
+#undef index
+
 namespace __gnu_cxx
 {
   using std::size_t;


More information about the uClibc mailing list