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]
Other format: [Raw text]

[Bug bootstrap/81926] go/parse.o differs between stage2 and stage3


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81926

--- Comment #16 from Dennis Clarke <dclarke at blastwave dot org> ---
This is excellent follow up and it looks like GNU binutils must be around
somewhere on the system for "Go" to build.  Also, I always run "gmake -k check"
for the testsuite and not sure why it would look otherwise.  

Here is the diff on 7.2.0 gcc/config/sparc/sparc.c based on your patch :

v9_7++ $ diff -c  ./gcc/config/sparc/sparc.c_20170829115516 
./gcc/config/sparc/sparc.c
*** ./gcc/config/sparc/sparc.c_20170829115516   Thu Jul 27 12:57:23 2017
--- ./gcc/config/sparc/sparc.c  Tue Aug 29 11:59:32 2017
***************
*** 652,657 ****
--- 652,658 ----
  static int sparc_arg_partial_bytes (cumulative_args_t,
                                    machine_mode, tree, bool);
  static void sparc_output_dwarf_dtprel (FILE *, int, rtx) ATTRIBUTE_UNUSED;
+ static void sparc_file_start (void);
  static void sparc_file_end (void);
  static bool sparc_frame_pointer_required (void);
  static bool sparc_can_eliminate (const int, const int);
***************
*** 834,839 ****
--- 835,843 ----
  #define TARGET_ASM_OUTPUT_DWARF_DTPREL sparc_output_dwarf_dtprel
  #endif

+ #undef TARGET_ASM_FILE_START
+ #define TARGET_ASM_FILE_START sparc_file_start
+ 
  #undef TARGET_ASM_FILE_END
  #define TARGET_ASM_FILE_END sparc_file_end

***************
*** 12121,12126 ****
--- 12125,12144 ----
    fputs (")", file);
  }

+ /* Do whatever processing is required at the start of a file.  */
+ 
+ static void
+ sparc_file_start (void)
+ {
+   default_file_start ();
+ 
+ #ifdef TARGET_SOLARIS
+   /* The Solaris/SPARC assembler doesn't always emit a .text section,
+      leading to comparison failures.  */
+   switch_to_section (text_section);
+ #endif
+ }
+ 
  /* Do whatever processing is required at the end of a file.  */

  static void
v9_7++ $ 

I do have GNU objcopy laying about also : 

v9_7++ $ /usr/local/bin/gobjcopy --version 
GNU objcopy (GNU Binutils) 2.23.1
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
v9_7++ $ 

v9_7++ $ ../gcc-7.2.0/configure \
> --build=sparc64-sun-solaris2.10 \
> --target=sparc64-sun-solaris2.10 \
> --host=sparc64-sun-solaris2.10 \
> --prefix=/usr/local/gcc7 \
> --without-gnu-as --without-gnu-ld \
> --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/sparcv9/ld \
> --disable-nls --enable-threads=posix --enable-shared \
> --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local \
> --with-isl=/usr/local --with-build-time-tools=/usr/local/bin \
> --with-cpu=v9 --enable-bootstrap \
> --enable-stage1-languages=c,c++ --enable-stage1-checking=misc \
> --enable-languages=ada,c,c++,fortran,go,lto,objc,obj-c++ \
> --with-pkgversion="genunix Tue Aug 29 11:48:17 GMT 2017"
checking build system type... sparc64-sun-solaris2.10
checking host system type... sparc64-sun-solaris2.10
checking target system type... sparc64-sun-solaris2.10
checking for a BSD-compatible install... ../gcc-7.2.0/install-sh -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for gawk... /usr/local/bin/gawk
checking for libatomic support... yes
checking for libcilkrts support... yes
checking for libitm support... yes
checking for libsanitizer support... no
checking for libvtv support... no
checking for libmpx support... no
checking for libhsail-rt support... no
checking for sparc64-sun-solaris2.10-gcc... sparc64-sun-solaris2.10-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether sparc64-sun-solaris2.10-gcc accepts -g... yes
checking for sparc64-sun-solaris2.10-gcc option to accept ISO C89... none
needed
checking for sparc64-sun-solaris2.10-g++... sparc64-sun-solaris2.10-g++
checking whether we are using the GNU C++ compiler... yes
checking whether sparc64-sun-solaris2.10-g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for sparc64-sun-solaris2.10-gnatbind... no
checking for gnatbind... gnatbind
checking for sparc64-sun-solaris2.10-gnatmake... no
checking for gnatmake... gnatmake
checking whether compiler driver understands Ada... yes
checking how to compare bootstrapped objects... cmp $$f1 $$f2 16 16
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... yes
checking for isl 0.15 or later... yes
The following languages will be built: c,ada,c++,fortran,go,lto,objc,obj-c++
*** This configuration is not supported in the following subdirectories:
     target-libsanitizer target-libvtv target-libmpx target-libhsail-rt
target-liboffloadmic
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG... 
checking for --enable-vtable-verify... no
checking for bison... bison -y
checking for bison... bison
checking for gm4... /usr/local/bin/m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... expect
checking for runtest... runtest
checking for ar... (cached) /usr/xpg4/bin/ar
checking for sparc64-sun-solaris2.10-ar... (cached) /usr/xpg4/bin/ar
checking for as... (cached) /usr/ccs/bin/as
checking for sparc64-sun-solaris2.10-as... (cached) /usr/ccs/bin/as
checking for sparc64-sun-solaris2.10-dlltool... no
checking for dlltool... no
checking for ld... (cached) /usr/ccs/bin/ld
checking for sparc64-sun-solaris2.10-ld... (cached) /usr/ccs/bin/ld
checking for sparc64-sun-solaris2.10-lipo... no
checking for lipo... no
checking for nm... (cached) /usr/ccs/bin/sparcv9/nm -p
checking for sparc64-sun-solaris2.10-nm... (cached) /usr/ccs/bin/sparcv9/nm -p
checking for ranlib... (cached) /usr/ccs/bin/ranlib
checking for sparc64-sun-solaris2.10-ranlib... (cached) /usr/ccs/bin/ranlib
checking for strip... (cached) /usr/ccs/bin/strip
checking for sparc64-sun-solaris2.10-strip... (cached) /usr/ccs/bin/strip
checking for sparc64-sun-solaris2.10-windres... no
checking for windres... no
checking for sparc64-sun-solaris2.10-windmc... no
checking for windmc... no
checking for objcopy... (cached) /usr/local/bin/gobjcopy
checking for sparc64-sun-solaris2.10-objcopy... (cached)
/usr/local/bin/gobjcopy
checking for objdump... (cached) /usr/local/bin/gobjdump
checking for sparc64-sun-solaris2.10-objdump... (cached)
/usr/local/bin/gobjdump
checking for sparc64-sun-solaris2.10-readelf... no
checking for readelf... no
checking for cc in /usr/local/bin... no
checking for gcc in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-cc... no
checking for cc... cc
checking for c++ in /usr/local/bin... no
checking for g++ in /usr/local/bin... no
checking for cxx in /usr/local/bin... no
checking for gxx in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-c++... sparc64-sun-solaris2.10-c++
checking for gcc in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-gcc... sparc64-sun-solaris2.10-gcc
checking for gfortran in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-gfortran...
sparc64-sun-solaris2.10-gfortran
checking for gccgo in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-gccgo... no
checking for gccgo... no
checking for ar in /usr/local/bin... no
checking for ar... no
checking for ar in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-ar... no
checking for ar... ar
checking for as in /usr/local/bin... no
checking for as... no
checking for as in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-as... no
checking for as... as
checking for dlltool in /usr/local/bin... no
checking for dlltool... no
checking for dlltool in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-dlltool... no
checking for dlltool... no
checking for ld in /usr/local/bin... no
checking for ld... no
checking for ld in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-ld... no
checking for ld... ld
checking for lipo in /usr/local/bin... no
checking for lipo... no
checking for lipo in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-lipo... no
checking for lipo... no
checking for nm in /usr/local/bin... no
checking for nm... no
checking for nm in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-nm... no
checking for nm... nm
checking for objcopy in /usr/local/bin... no
checking for objcopy... no
checking for objcopy in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-objcopy... no
checking for objcopy... no
checking for objdump in /usr/local/bin... no
checking for objdump... no
checking for objdump in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-objdump... no
checking for objdump... no
checking for ranlib in /usr/local/bin... no
checking for ranlib... no
checking for ranlib in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-ranlib... no
checking for ranlib... ranlib
checking for readelf in /usr/local/bin... no
checking for readelf... no
checking for readelf in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-readelf... no
checking for readelf... no
checking for strip in /usr/local/bin... no
checking for strip... no
checking for strip in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-strip... no
checking for strip... strip
checking for windres in /usr/local/bin... no
checking for windres... no
checking for windres in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-windres... no
checking for windres... no
checking for windmc in /usr/local/bin... no
checking for windmc... no
checking for windmc in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gfortran... just compiled
checking where to find the target gccgo... just compiled
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objcopy... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile


There I see : 

checking for objcopy... (cached) /usr/local/bin/gobjcopy
checking for sparc64-sun-solaris2.10-objcopy... (cached)
/usr/local/bin/gobjcopy
checking for objdump... (cached) /usr/local/bin/gobjdump
checking for sparc64-sun-solaris2.10-objdump... (cached)
/usr/local/bin/gobjdump

Then a little lower : 

checking for objcopy in /usr/local/bin... no
checking for objcopy... no
checking for objcopy in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-objcopy... no
checking for objcopy... no
checking for objdump in /usr/local/bin... no
checking for objdump... no
checking for objdump in /usr/local/bin... no
checking for sparc64-sun-solaris2.10-objdump... no
checking for objdump... no

So looks like a yes/no situation and I'll see what happens.

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