Skip to content

Conversation

@certik
Copy link
Member

@certik certik commented May 1, 2015

No description provided.

@certik
Copy link
Member Author

certik commented May 1, 2015

Currently it fails with:

[gcc] checking for x86_64-unknown-linux-gnu-ar... ar
[gcc] checking for x86_64-unknown-linux-gnu-lipo... lipo
[gcc] checking for x86_64-unknown-linux-gnu-nm... /local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/nm
[gcc] checking for x86_64-unknown-linux-gnu-ranlib... ranlib
[gcc] checking for x86_64-unknown-linux-gnu-strip... strip
[gcc] checking whether ln -s works... yes
[gcc] checking for x86_64-unknown-linux-gnu-gcc... /local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/ -B/local/certik/bld/gcc/o37mtpcfvn5o/x86_64-unknown-linux-gnu/bin/ -B/local/certik/bld/gcc/o37mtpcfvn5o/x86_64-unknown-linux-gnu/lib/ -isystem /local/certik/bld/gcc/o37mtpcfvn5o/x86_64-unknown-linux-gnu/include -isystem /local/certik/bld/gcc/o37mtpcfvn5o/x86_64-unknown-linux-gnu/sys-include   
[gcc] configure: error: in `/local/certik/tmp/gcc-o37mtpcfvn5o/x86_64-unknown-linux-gnu/libgcc':
[gcc] configure: error: cannot compute suffix of object files: cannot compile
[gcc] See `config.log' for more details.
[gcc] make[2]: *** [configure-stage2-target-libgcc] Error 1
[gcc] checking for suffix of object files... make[2]: Leaving directory `/local/certik/tmp/gcc-o37mtpcfvn5o'
[gcc] make[1]: *** [stage2-bubble] Error 2
[gcc] make[1]: Leaving directory `/local/certik/tmp/gcc-o37mtpcfvn5o'
[gcc] make: *** [all] Error 2

The file x86_64-unknown-linux-gnu/libgcc/config.log contains:

/local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/cc1: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/cc1)
/local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/cc1: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/cc1)
configure:3467: $? = 1
configure:3655: checking for suffix of object files
configure:3677: /local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/ -B/local/certik/bld/gcc/o37mtpcfvn5o/x86_64-unknown-linux-gnu/bin/ -B/local/certik/bld/gcc/o37mtpcfvn5o/x86_64-unknown-linux-gnu/lib/ -isystem /local/certik/bld/gcc/o37mtpcfvn5o/x86_64-unknown-linux-gnu/include -isystem /local/certik/bld/gcc/o37mtpcfvn5o/x86_64-unknown-linux-gnu/sys-include    -c -g -O2  conftest.c >&5
/local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/cc1: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/cc1)
/local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/cc1: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /local/certik/tmp/gcc-o37mtpcfvn5o/host-x86_64-unknown-linux-gnu/gcc/cc1)
configure:3681: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3695: error: in `/local/certik/tmp/gcc-o37mtpcfvn5o/x86_64-unknown-linux-gnu/libgcc':
configure:3698: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

@johannesring
Copy link
Contributor

@certik - I could not reproduce. It works fine for me with the following profile:

extends:                                      
- file: linux.yaml                            

packages:                                                            
  launcher:                                                    
  python:                                     
    link: shared                                                   
  gcc:                                        
    version: '5.1.0'                          

This is on my laptop with Debian unstable. Also:

johannr@debian-t420s:hashstack (gcc5.1.0)$ hd_base/bin/gcc --version
gcc (GCC) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@certik
Copy link
Member Author

certik commented Jul 6, 2015

@johannesring thanks! In that case we can merge this. The failure is on my local computer only, it must be caused by some old systemwide packages. I'll debug it further in other issues/PRs, I think this is good to go in.

certik added a commit that referenced this pull request Jul 6, 2015
@certik certik merged commit fc6a206 into master Jul 6, 2015
@certik certik deleted the gcc5.1.0 branch July 6, 2015 03:51
@certik certik changed the title [WIP] Add gcc 5.1.0 Add gcc 5.1.0 Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants