This is the mail archive of the gcc-help@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]

Re: Running Tests Fails with very Minor Fix



On 2017-10-04 06:26 AM, Jonathan Wakely wrote:
> On 3 October 2017 at 19:32, nick <xerofoify@gmail.com> wrote:
>>
>>
>> On 2017-10-03 04:38 AM, Jonathan Wakely wrote:
>>> On 3 October 2017 at 05:09, nick wrote:
>>>> I ran them again with autogen same failure. I am attaching the full libgomp output as clearly
>>>> something is up as this literally passed completely last Friday.
>>>
>>> Well then obviously you've changed something. Since you've not even
>>> told us how you ran configure, we can't really guess what you've done.
>>>
>>>> The only three things that
>>>> seem to be possible failures that would be causing it are:
>>>>
>>>> 1) My fix is breaking the test suite which is very unlikely.
>>>> 2) I am missing some packages or have not running it correctly:
>>>> make bootstrap
>>>
>>> It hasn't been necessary to run "make bootstrap" for many years. Just "make".
>>>
>>>> make -k check
>>>> 3) There is a bug in the test suite or it requires a workaround for my machine.
>>>
>>> Seems unlikely.
>>>
>>>> I have tried it with all the required packages or so it seems. May I am missing something
>>>> very small.
>>>
>>> Did you delete the entire build directory and start again from a clean slate?
>>>
>>> Try reverting your fix, and testing again with completely untouched
>>> sources in a clean build directory, and see if the error still
>>> happens.
>>>
>>> In other words, try debugging it.
>>>
>>
>> It still occurs with the exact same failure. Here is how I am configuring it:
>> $PWD/../configure --prefix=$HOME/GCC-7.0.1 --enable-languages=c,c++,fortran,go
>>
>> GCC-7.0.1 directory does not exist but I am not installing so that shouldn't be
>> an exist. Unless the test suite requires gcc to be installed there? I am assuming
>> that either it requires a package I am missing or the git clone I have is corrupted
>> but how?
> 
> Why are you using gcc-7.0.1?
> 
Jonathan,

This is what the docs stat that command does:
--prefix=dirname

    Specify the toplevel installation directory. This is the recommended way to install the tools into a directory other than the default. The toplevel installation directory defaults to /usr/local.

We highly recommend against dirname being the same or a subdirectory of objdir or vice versa. If specifying a directory beneath a user’s home directory tree, some shells will not expand dirname correctly if it contains the ‘~’ metacharacter; use $HOME instead. 

Care to explain how that's an issue when not installing gcc and
just running the test suite? Also care to explain how ccache 
fails everything I run a change to my build config?


configure: loading cache ./config.cache
configure: loading cache ./config.cache
configure: loading cache ./config.cache
configure: error: `CC' has changed since the previous run:
configure:   former value:  ` /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include   '
configure:   current value: ` /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include   '
configure: error: in `/home/nick/gcc/obdjir/libiberty':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
checking build system type... (cached) x86_64-pc-linux-gnu
checking host system type... (cached) x86_64-pc-linux-gnu
checking target system type... (cached) x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... Makefile:10844: recipe for target 'configure-stage2-libiberty' failed
make[2]: *** [configure-stage2-libiberty] Error 1
make[2]: *** Waiting for unfinished jobs....
configure: loading cache ./config.cache
configure: loading cache ./config.cache
configure: loading cache ./config.cache
configure: error: `CC' has changed since the previous run:
configure:   former value:  ` /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include   '
configure:   current value: ` /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include   '
configure: error: in `/home/nick/gcc/obdjir/libdecnumber':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
configure: error: `CC' has changed since the previous run:
configure:   former value:  ` /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include   '
configure:   current value: ` /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include   '
configure: error: in `/home/nick/gcc/obdjir/libbacktrace':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
configure: error: `CC' has changed since the previous run:
configure:   former value:  ` /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include   '
configure:   current value: ` /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include   '
configure: error: in `/home/nick/gcc/obdjir/lto-plugin':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
configure: error: `CC' has changed since the previous run:
configure:   former value:  ` /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include   '
configure:   current value: ` /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/bin/ -B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem /usr/local/x86_64-pc-linux-gnu/include -isystem /usr/local/x86_64-pc-linux-gnu/sys-include   '
configure: error: in `/home/nick/gcc/obdjir/intl':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
Makefile:9747: recipe for target 'configure-stage2-libdecnumber' failed
make[2]: *** [configure-stage2-libdecnumber] Error 1
Makefile:7689: recipe for target 'configure-stage2-libbacktrace' failed
make[2]: *** [configure-stage2-libbacktrace] Error 1
make[3]: Entering directory '/home/nick/gcc/obdjir/build-x86_64-pc-linux-gnu/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
Makefile:14010: recipe for target 'configure-stage2-lto-plugin' failed
make[2]: *** [configure-stage2-lto-plugin] Error 1
make[3]: Leaving directory '/home/nick/gcc/obdjir/build-x86_64-pc-linux-gnu/libcpp'
Makefile:6374: recipe for target 'configure-stage2-intl' failed
make[2]: *** [configure-stage2-intl] Error 1
yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-pc-linux-gnu-gcc... (cached)  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include   
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... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    accepts -g... (cached) yes
checking for  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    option to accept ISO C89... (cached) none needed
checking for style of include used by make... GNU
checking dependency style of  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include   ... (cached) gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking for fgrep... (cached) /bin/grep -F
checking for ld used by  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include   ... (cached) ld
checking if the linker (ld) is GNU ld... (cached) yes
checking for BSD- or MS-compatible name lister (nm)... (cached) nm
checking the name lister (nm) interface... (cached) BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for ld option to reload object files... (cached) -r
checking for x86_64-pc-linux-gnu-objdump... (cached) objdump
checking how to recognize dependent libraries... (cached) pass_all
checking for x86_64-pc-linux-gnu-ar... (cached) ar
checking for x86_64-pc-linux-gnu-strip... no
checking for strip... (cached) strip
checking for x86_64-pc-linux-gnu-ranlib... (cached) ranlib
checking command to parse nm output from  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    object... (cached) ok
checking how to run the C preprocessor... (cached)  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for objdir... (cached) .libs
checking if  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    supports -fno-rtti -fno-exceptions... (cached) no
checking for  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    option to produce PIC... -fPIC -DPIC
checking if  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    PIC flag -fPIC -DPIC works... (cached) yes
checking if  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    static flag -static works... (cached) yes
checking if  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    supports -c -o file.o... (cached) yes
checking if  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    supports -c -o file.o... (cached) yes
checking whether the  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    linker (ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... (cached) no
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C preprocessor...  /home/nick/gcc/obdjir/./prev-gcc/xgcc -B/home/nick/gcc/obdjir/./prev-gcc/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/bin/ -B/home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/lib/ -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/include -isystem /home/nick/GCC-7.0.1/x86_64-pc-linux-gnu/sys-include    -E
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for memcpy... (cached) yes
checking for strerror... (cached) yes
checking for unistd.h... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing default-1 commands
config.status: executing depfiles commands
config.status: executing libtool commands
make[2]: Leaving directory '/home/nick/gcc/obdjir'
Makefile:25587: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/home/nick/gcc/obdjir'
Makefile:947: recipe for target 'all' failed
make: *** [all] Error 2
nick@Merlin:~/gcc/obdjir$ make distclean
make[1]: Entering directory '/home/nick/gcc/obdjir'
rm -f stage_current
make[1]: Leaving directory '/home/nick/gcc/obdjir'
rm -rf stage1-* 
rm -rf stage2-* 
cat: stage_last: No such file or directory
rm -rf stage3-* compare 
cat: stage_last: No such file or directory
rm -rf stage4-* compare3 
cat: stage_last: No such file or directory
rm -rf stageprofile-* 
cat: stage_last: No such file or directory
rm -rf stagetrain-* 
cat: stage_last: No such file or directory
rm -rf stagefeedback-* 
cat: stage_last: No such file or directory
rm -rf stageautoprofile-* 
cat: stage_last: No such file or directory
rm -rf stageautofeedback-* 
make[1]: Entering directory '/home/nick/gcc/obdjir'
make[1]: Leaving directory '/home/nick/gcc/obdjir'
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
rm -f Makefile config.status config.cache mh-frag mt-frag
rm -f maybedep.tmp serdep.tmp stage_final

Cheers,
Nick 


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