public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/26146]  New: Bootstrapping mainline on Solaris 10/x86 fails
Date: Tue, 07 Feb 2006 01:10:00 -0000	[thread overview]
Message-ID: <bug-26146-81@http.gcc.gnu.org/bugzilla/> (raw)


Trying to bootstrap mainline as of 20060206 on i386-pc-solaris2.10 with gas
2.15 and no options to select a specific target fails when trying to build
the amd64 libgcc multilib:

/vol/gcc/obj/gcc-4.2.0-20060206/10-gcc-gas/./gcc/xgcc
-B/vol/gcc/obj/gcc-4.2.0-20060206/10-gcc-gas/./gcc/
-B/vol/gcc/share/i386-pc-solaris2.10/bin/
-B/vol/gcc/share/i386-pc-solaris2.10/lib/ -isystem
/vol/gcc/share/i386-pc-solaris2.10/include -isystem
/vol/gcc/share/i386-pc-solaris2.10/sys-include -O2 -g -O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
 -isystem ./include  -I. -Iamd64 -I/vol/gcc/src/gcc-dist/gcc
-I/vol/gcc/src/gcc-dist/gcc/amd64 -I/vol/gcc/src/gcc-dist/gcc/../include
-I/vol/gcc/src/gcc-dist/gcc/../libcpp/include -I/vol/gnu/obj/gmp-4.1.3/mpfr
-I/vol/gnu/obj/gmp-4.1.3 -I/vol/gcc/src/gcc-dist/gcc/../libdecnumber
-I../libdecnumber -m64 \
        -c /vol/gcc/src/gcc-dist/gcc/config/i386/gmon-sol2.c -o amd64/gmon.o
/vol/gcc/src/gcc-dist/gcc/config/i386/gmon-sol2.c:1: error: CPU you selected
does not support x86-64 instruction set
make[5]: *** [amd64/gmon.o] Error 1

This is due to this patch:

2006-01-19  Jan Hubicka  <jh@suse.cz>
            H.J. Lu  <hongjiu.lu@intel.com>
            Evandro Menezes <evandro.menezes@amd.com>

        * invoke.texi (generic): Document
        (i686) Update.
        * config.gcc: Make x86_64-* and i686-* default to generic tunning.

Adding -v to the xgcc invocation above, I see

/vol/gcc/obj/gcc-4.2.0-20060206/10-gcc-gas/./gcc/cc1 -E -quiet -v -I. -Iamd64
-I/vol/gcc/src/gcc-dist/gcc -I/vol/gcc/src/gcc-dist/gcc/amd64
-I/vol/gcc/src/gcc-dist/gcc/../include
-I/vol/gcc/src/gcc-dist/gcc/../libcpp/include -I/vol/gnu/obj/gmp-4.1.3/mpfr
-I/vol/gnu/obj/gmp-4.1.3 -I/vol/gcc/src/gcc-dist/gcc/../libdecnumber
-I../libdecnumber -imultilib amd64 -iprefix
/amnt/figaro/volumes/obj-gcc/gcc/obj.sol86/gcc-4.2.0-20060206/10-gcc-gas/gcc/../lib/gcc/i386-pc-solaris2.10/4.2.0/
-isystem /vol/gcc/obj/gcc-4.2.0-20060206/10-gcc-gas/./gcc/include -DIN_GCC
-isystem /vol/gcc/share/i386-pc-solaris2.10/include -isystem
/vol/gcc/share/i386-pc-solaris2.10/sys-include -isystem ./include
/vol/gcc/src/gcc-dist/gcc/config/i386/gmon-sol2.c -m64 -mtune=i386 -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-fworking-directory -O2 -O2 -fpch-preprocess -o gmon-sol2.i

So an implicit -mtune=i386 is passed, which conflicts with -m64 as observed.

Environment:
System: SunOS australien 5.10 Generic_118844-19 i86pc i386 i86pc
Architecture: i86pc


host: i386-pc-solaris2.10
build: i386-pc-solaris2.10
target: i386-pc-solaris2.10
configured with: /vol/gcc/src/gcc-dist/configure --prefix=/vol/gcc
--with-local-prefix=/vol/gcc --disable-nls --with-gnu-as
--with-as=/usr/sfw/bin/gas --with-gmp-dir=/vol/gnu/obj/gmp-4.1.3
--with-mpfr-dir=/vol/gnu/obj/gmp-4.1.3/mpfr
--enable-languages=c,c++,fortran,java,objc,ada --disable-libmudflap

How-To-Repeat:
Bootstrap mainline as described above.


------- Comment #1 from ro at techfak dot uni-bielefeld dot de  2006-02-07 01:10 -------
Fix:
As a workaround, I can configure for i386-sun-solaris2.10; this bootstrap
is currently in stage2 and thus isn't affected.


-- 
           Summary: Bootstrapping mainline on Solaris 10/x86 fails
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at techfak dot uni-bielefeld dot de
 GCC build triplet: i386-pc-solaris2.10
  GCC host triplet: i386-pc-solaris2.10
GCC target triplet: i386-pc-solaris2.10


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26146


             reply	other threads:[~2006-02-07  1:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07  1:10 gcc-bugzilla at gcc dot gnu dot org [this message]
2006-02-07  1:12 ` [Bug target/26146] " ro at gcc dot gnu dot org
2006-02-07  1:13 ` [Bug target/26146] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-02-21 18:42 ` brett dot albertson at stratech dot com
2006-03-02  0:00 ` hjl at lucon dot org
2006-03-02  1:59 ` hjl at lucon dot org
2006-03-02 12:29 ` pinskia at gcc dot gnu dot org
2006-03-02 14:15 ` brett dot albertson at stratech dot com
2006-06-04 17:33 ` mmitchel at gcc dot gnu dot org
2006-06-30  6:23 ` patchapp at dberlin dot org
2006-07-05 18:50 ` hjl at gcc dot gnu dot org
2006-07-05 18:54 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-26146-81@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).