CXXFLAGS="${CFLAGS"
The left curly brace must be matched by a right curly brace. Make it
CXXFLAGS="${CFLAGS}"
Does it work now ?
On Sun, 2005-02-20 at 20:07 +0000, Qian Qiao wrote:
> On Sun, 20 Feb 2005 22:05:11 +0200, Ivan Yosifov <[EMAIL PROTECTED]> wrote:
> > A typical cause - typos / insanity in CFLAGS. Your /etc/make.conf ,
> > please :)
> >
> > On Sun, 2005-02-20 at 19:53 +0000, Qian Qiao wrote:
> > > Hi,
> > >
> > > I got this error while bootstrap is compiling GCC.
> > >
> > > checking whether the C compiler works... configure: error: cannot run
> > > C compiled programs.
> > > If you meant to cross compile, use `--host'.
> > > See `config.log' for more details.
> > > make[1]: *** [configure-target-libstdc++-v3] Error 1
> > > make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3-r1/work/build'
> > > make: *** [profiledbootstrap] Error 2
> > >
> > > !!! ERROR: sys-devel/gcc-3.4.3-r1 failed.
> > > !!! Function gcc_do_make, Line 1113, Exitcode 2
> > > !!! make failed with profiledbootstrap
> > > !!! If you need support, post the topmost build error, NOT this status
> > > message.
> > >
> > > Here's my emerge --info:
> > >
> > > livecd portage # emerge --info
> > > Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.2,
> > > glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r1 x86_64)
> > > =================================================================
> > > System uname: 2.6.9-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
> > > Gentoo Base System version 1.4.16
> > > Python: [2.3.4 (#1, Oct 28 2004, 03:17:30)]
> > > dev-lang/python: [Not Present]
> > > sys-devel/autoconf: [Not Present]
> > > sys-devel/automake: [Not Present]
> > > sys-devel/binutils: 2.15.92.0.2-r1
> > > sys-devel/libtool: [Not Present]
> > > virtual/os-headers: 2.6.8.1-r2
> > > ACCEPT_KEYWORDS="amd64"
> > > AUTOCLEAN="yes"
> > > CFLAGS="-O2 -pipe"
> > > CHOST="x86_64-pc-linux-gnu"
> > > CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
> > > /usr/share/config /var/qmail/control"
> > > CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
> > > CXXFLAGS="-O2 -pipe"
> > > DISTDIR="/usr/portage/distfiles"
> > > FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
> > > GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk"
> > > MAKEOPTS="-j2"
> > > PKGDIR="/usr/portage/packages"
> > > PORTAGE_TMPDIR="/var/tmp"
> > > PORTDIR="/usr/portage"
> > > SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> > > USE="amd64 acpi alsa berkdb bitmap-fonts cdr crypt dvd f77 font-server
> > > fortran gif gpm ipv6 java jp2 jpeg kde lzw lzw-tiff multilib ncurses
> > > nls nptl nptlonly opengl oss perl png python qt readline ssl tcpd tiff
> > > truetype truetype-fonts type1-fonts usb userlocales xml2 xpm xrandr xv
> > > zlib"
> > > Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
> > >
> > > Any hints?
> > >
> > > Thanks.
>
> CFLAGS="-O2 -pipe"
> CHOST="x86_64-pc-linux-gnu"
> CXXFLAGS="${CFLAGS"
> MAKEOPTS="-j2"
> GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk"
>
> I, myself, can't spot any error. If I add march=athlon64, then the
> bootstrap will fail while compiling gettext, with the same error.
>
> -- Joe
>
--
[email protected] mailing list