This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: compile failure.


On Wed, 2004-01-28 at 23:32, Benjamin Kosnik wrote:
> >[dhruv@home dhruv]$ g++33 -v
> >Reading specs from /usr/local/lib/gcc-lib/i386-redhat-linux/3.3.2/specs
> >Configured with: /root/temp/gcc-3.3.2/configure
> >--with-gxx-include-dir=/usr/include/libstdc++-3.3 --program-suffix=33 :
> >(reconfigured) /root/temp/gcc-3.3.2/configure
> >--with-gxx-include-dir=/usr/include/libstdc++-3.3 --program-suffix=33
> >--enable-languages=c,c++ : (reconfigured) /root/temp/gcc-3.3.2/configure
> >--with-gxx-include-dir=/usr/include/libstdc++-3.3 --program-suffix=33
> >--enable-threads=posix --enable-__cxa_atexit --host=i386-redhat-linux
> >--enable-languages=c,c++
> 
> You'll need to be working from gcc mainline to work with the allocator
> issue, FYI. I'd suggest a snapshot or working from subversions. 

Ok. Wrt the above, I have the 3.3.2 release sources, so is there any way
to get a patch for 3.3.2 -> 3.4 without downloading the whole source
tree for 3.4. It took me a week to complete this download!


> Make sure you are building out of the source directory. I suggest reading:

Yes. I'm building in the objdir (as the manual says).

> http://gcc.gnu.org/install/

Yes, read it (Twice! as it says!)

> Then, try just configuring like so:
> 
> cd $bld_gcc
> $src_to_gcc/configure --verbose --prefix=/opt/gcc-3.4
> --enable-__cxa_atexit --enable-languages=c,c++
> 
> I'd suggest getting more complicated with the configure options after
> you've built gcc a couple times.

Yes. As you can see from the above g++33 -v command, I have gotten g++33
working with the default libstdc++-v3. The problem arises when I try to
compile the latest (pulled from CVS last night) libstdc++-v3. However,
when I initially configured the compiler without -enable-threads and
--host, it failed to compile during make (-BStage2 throws up!), so, I
just copy pasted the options that red-hat had done from me in the
default install (except for the --program-suffix and stuff..), and then
it compiled fine. Any ideas?





-- 
	-Dhruv Matani.
http://www.geocities.com/dhruvbird/




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