This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Does the -B flag collide with the use of -I?


At 16:09 17.02.99 , Steinar Bang wrote:
>I wanted to test the bug
>	http://egcs.cygnus.com/ml/egcs-bugs/1999-02/msg00469.html
>on the 1.1.2 pre-release, but I'm having a hard time being able to use
>the result of "make bootstrap-lean" in place (ie. without installing
>it over my patched 1.1.1).
>
>Does use of the -I flags "kill" the "-B" flag?
>
>I may have blinked when setting up the environment variables, but
>since at least one of the include files used is based on the path used
>in the -B flag and without that -I xgcc doesn't find new.h, I don't
>think I have (but if I have, I will be _really_ happy if someone will
>point out my mistake to me...:-) ).
>
>Here's the output:
>cd ~/src/test/cplusplus/egcslinkso/
>make 
>/home/sb/src/install/egcs-1.1.2-pre1/gcc/xgcc 
>-B/home/sb/src/install/egcs-1.1.2-pre1/gcc 
>-I/home/sb/src/install/egcs-1.1.2-pre1/gcc/include 
>-I/home/sb/src/install/egcs-1.1.2-pre1/i686-pc-linux-gnulibc1/libstdc++ 
>-I/home/sb/src/install/egcs-1.1.2-pre1/i686-pc-linux-gnulibc1/libstdc++/std 
>-I/home/sb/src/install/egcs-1.1.2-pre1/i686-pc-linux-gnulibc1/libstdc++/stl 
>-I/home/sb/src/install/egcs-1.1.2-pre1/i686-pc-linux-gnulibc1/libio -fPIC   
>-c b.cc -o b.o
>xgcc: installation problem, cannot exec `cc1plus': No such file or directory
>xgcc: file path prefix `/home/sb/src/install/egcs-1.1.2-pre1/gcc' never used
>make: *** [b.o] Error 1
>
>Here's the GNUmakefile I'm using:
>EGCSBUILD=$(HOME)/src/install/egcs-1.1.2-pre1
>STAGE3=$(EGCSBUILD)/gcc
>GNULIBC=$(EGCSBUILD)/i686-pc-linux-gnulibc1
>LIBSTDCXX=$(GNULIBC)/libstdc++
>INCLCXX= -I$(STAGE3)/include \
>	-I$(LIBSTDCXX) -I$(LIBSTDCXX)/std -I$(LIBSTDCXX)/stl \
>	-I$(GNULIBC)/libio
>CXX=$(STAGE3)/xgcc -B$(STAGE3) $(INCLCXX)
                             ^^^
-B needs a slash at the end, so it should be "-B$(STAGE3)/".

Franz.



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