This is the mail archive of the gcc-bugs@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: VAX Ultrix bootstrap failure: cc: -o would overwrite libgcc/_mulsi3.o


I just noticed that the patch to mklibgcc.in conflicts with Philippe De Muyter'spatch.  The file libgcc1.c should be found in $(srcdir).  However, -DL$name
also needs to be defined.

Dave
> 
> > > I have been attempting to bootstrap gcc-2.96 under VAX Ultrix 4.3.  The
> > > following problem occurs building libgcc:
> > > 
> > > ...
> > > mkdir libgcc
> > > cc -DIN_LIBGCC1 -O -I. -I../../gcc -I../../gcc/config -I../../gcc/../include -c
> > > libgcc1.c -o libgcc/_mulsi3.o
> > > cc: -o would overwrite libgcc/_mulsi3.o
> > > make[3]: *** [libgcc/_mulsi3.o] Error 8
> 
> I believe the following patch corrects the problem.  Will somebody review it
> and install if ok?
> 
> Dave
> -- 
> J. David Anglin                                  dave.anglin@nrc.ca
> National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)
> 
> 2000-05-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
> 
> 	* configure.in Initialize NO_MINUS_C_MINUS_O if no -c and -o.
> 	* mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
> 	* configure (Rebuilt).
> 
> --- configure.in.orig	Wed May 17 14:55:10 2000
> +++ configure.in	Wed May 17 15:24:06 2000
> @@ -322,6 +322,9 @@
>  # Find the native compiler
>  AC_PROG_CC
>  AC_PROG_CC_C_O
> +if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
> +  NO_MINUS_C_MINUS_O=yes
> +fi
>  AC_SUBST(NO_MINUS_C_MINUS_O)
>  
>  gcc_AC_C_LONG_DOUBLE
> --- mklibgcc.in.orig	Sun May 14 17:36:04 2000
> +++ mklibgcc.in	Wed May 17 15:58:31 2000
> @@ -106,9 +106,9 @@
>  
>        echo $out: $libgcc1_c_dep
>        if [ -z "@NO_MINUS_C_MINUS_O@" ]; then
> -	echo "	$oldcc_compile" $flags -c libgcc1.c -o $out
> +	echo "	$oldcc_compile" $flags -DL$name -c libgcc1.c -o $out
>        else
> -	echo "	$oldcc_compile" $flags -c libgcc1.c
> +	echo "	$oldcc_compile" $flags -DL$name -c libgcc1.c
>  	echo "	mv libgcc1${objext} $out"
>        fi
>  
> 


-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

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