[uClibc] gcc-3.3.2 building problem
Peter S. Mazinger
ps.m at gmx.net
Sun Jan 25 06:03:46 UTC 2004
On Sat, 24 Jan 2004, Peter S. Mazinger wrote:
> On Fri, 23 Jan 2004, Peter S. Mazinger wrote:
>
> On Fri, 23 Jan 2004, Manuel Novoa III wrote:
>
> > Hello,
> >
> > On Fri, Jan 23, 2004 at 08:07:14PM +0100, Peter S. Mazinger wrote:
> > > If I try to build gcc3_3_target from within buildroot, it works, but
> > > if I unpack gcc-3.3.2 in a uclibc env, apply all the patches from
> > > buildroot, run configure without the host/target/build options (in
> > > gcc3_3_target section) and run make to build c and c++, the libstdc++
> > > stuff can't be built.
> >
> > Since you aren't specifying host/target/build options, you have to
> > fix config.guess to return a tuple like <arch>-<vendor>-linux-uclibc
> > in order for the libstdc++ configuration to choose the correct
> > config/os/<subdir> and config/locale/<subdir> to use.
>
> I have thought it is done by the gcc-uclibc-* patches? I have checked
> again, but only binutils-uclibc-* patches do it, the gcc ones not. So I
> have replaced all config.sub and config.guess with those from
> newest automake (supports linux-uclibc*) and it does not work either.
>
> I have done some checks without copying config.*, it works only if
> host=target=<arch>-linux-uclibc and build=<arch>-linux (as in buildroot),
> but in this case it is taken as a cross-compilation.
>
> If I now copy the config.* files, it is recognized as native compiler but
> can't build libstdc++ (so probably the proper locale is not selected,
> although I have used --disable-nls).
>
> What I have found, the libstdc++/configure.in file is patched (by
> gcc-uclibc-3.3-*), but configure misses the uclibc related parts, so I
> ran autoconf, now I have the missing parts in configure, but nothing
> changes. I have checked the libstdc++-v3/config.status file, the tuple is
> ok: i386-pc-linux-uclibc, so what else can I do?
If I apply attached patch, --target=<arch>-linux-uclibc is not needed.
I haven't found how to omit--build too (earlier I have built with defining
only --host)
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
____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu
-------------- next part --------------
--- libstdc++-v3/configure.target.mps 2004-01-24 17:26:01.000000000 +0100
+++ libstdc++-v3/configure.target 2004-01-24 17:26:38.000000000 +0100
@@ -133,6 +133,9 @@
freebsd*)
os_include_dir="os/bsd/freebsd"
;;
+ *uclibc*)
+ os_include_dir="os/uclibc"
+ ;;
gnu* | linux*)
os_include_dir="os/gnu-linux"
;;
More information about the uClibc
mailing list