public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386
@ 2011-01-29 22:33 yuri at tsoft dot com
  2011-01-29 22:36 ` [Bug c++/47536] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: yuri at tsoft dot com @ 2011-01-29 22:33 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: gcc-4.5.2 fails to build on Solaris 10 i386
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: yuri@tsoft.com


I downloaded gcc-core-4.5.2 and gcc-g++-4.5.2, configured with command:
../src/configure --with-gmp=/opt/local --with-mpfr=/opt/local
--with-mpc=/opt/local --prefix=/opt/local/gcc/4.5.2
Current binutils is in path.

This is an error I am getting after a while:
<...skiped...>
checking for i386-pc-solaris2.10-gcc... /tmp/gcc-build/4.5.2/bld/./gcc/xgcc
-B/tmp/gcc-build/4.5.2/bld/./gcc/
-B/opt/local/gcc/4.5.2/i386-pc-solaris2.10/bin/
-B/opt/local/gcc/4.5.2/i386-pc-solaris2.10/lib/ -isystem
/opt/local/gcc/4.5.2/i386-pc-solaris2.10/include -isystem
/opt/local/gcc/4.5.2/i386-pc-solaris2.10/sys-include  -m64
checking for suffix of object files... configure: error: in
`/tmp/gcc-build/4.5.2/bld/i386-pc-solaris2.10/amd64/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
gmake[2]: *** [configure-stage1-target-libgcc] Error 1
gmake[2]: Leaving directory `/tmp/gcc-build/4.5.2/bld'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/tmp/gcc-build/4.5.2/bld'
gmake: *** [all] Error 2


Its strange that there is an option -m64 that appears in the command line.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
@ 2011-01-29 22:36 ` pinskia at gcc dot gnu.org
  2011-01-29 22:40 ` yuri at tsoft dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-01-29 22:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-01-29 21:51:08 UTC ---
>Its strange that there is an option -m64 that appears in the command line.
Not really because i386-solaris is a multi-arch target which includes amd64
too.  Can you attach config.log from
/tmp/gcc-build/4.5.2/bld/i386-pc-solaris2.10/amd64/libgcc ?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
  2011-01-29 22:36 ` [Bug c++/47536] " pinskia at gcc dot gnu.org
@ 2011-01-29 22:40 ` yuri at tsoft dot com
  2011-01-30  1:23 ` yuri at tsoft dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: yuri at tsoft dot com @ 2011-01-29 22:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Yuri <yuri at tsoft dot com> 2011-01-29 22:15:45 UTC ---
Created attachment 23165
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23165
Requested config.log


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
  2011-01-29 22:36 ` [Bug c++/47536] " pinskia at gcc dot gnu.org
  2011-01-29 22:40 ` yuri at tsoft dot com
@ 2011-01-30  1:23 ` yuri at tsoft dot com
  2011-01-30 11:48 ` yuri at tsoft dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: yuri at tsoft dot com @ 2011-01-30  1:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Yuri <yuri at tsoft dot com> 2011-01-29 22:40:09 UTC ---
Assembler complains on -xarch option.
/opt/local/bin/as: unrecognized option `-xarch=generic64'

But '/opt/local/bin/as --help' doeasn't list -xarch as the valid option. It has
-march option.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
                   ` (2 preceding siblings ...)
  2011-01-30  1:23 ` yuri at tsoft dot com
@ 2011-01-30 11:48 ` yuri at tsoft dot com
  2011-01-30 22:28 ` yuri at tsoft dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: yuri at tsoft dot com @ 2011-01-30 11:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Yuri <yuri at tsoft dot com> 2011-01-30 11:17:32 UTC ---
Passing --with-gnu-as option to configure fixes the problem.
But why can't configure detect this by itself? GNU as has --version which
clearly says that its GNU assembler. And original Solaris as doesn't have
--version option.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
                   ` (3 preceding siblings ...)
  2011-01-30 11:48 ` yuri at tsoft dot com
@ 2011-01-30 22:28 ` yuri at tsoft dot com
  2011-01-30 22:40 ` redi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: yuri at tsoft dot com @ 2011-01-30 22:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Yuri <yuri at tsoft dot com> 2011-01-30 21:53:47 UTC ---
--with-gnu-as lets gcc build to succeed.
But resulting g++ has the problem on all c++ modules:
g++ -c m.cpp
Assembler: m.cpp
        "/var/tmp//ccEysWY5.s", line 7 : Illegal mnemonic
        Near line: "    .cfi_startproc"
        "/var/tmp//ccEysWY5.s", line 7 : Syntax error
        Near line: "    .cfi_startproc"
        "/var/tmp//ccEysWY5.s", line 9 : Illegal mnemonic
        Near line: "    .cfi_def_cfa_offset 8"
        "/var/tmp//ccEysWY5.s", line 9 : Syntax error
        Near line: "    .cfi_def_cfa_offset 8"
        "/var/tmp//ccEysWY5.s", line 11 : Illegal mnemonic
        Near line: "    .cfi_offset 5, -8"
        "/var/tmp//ccEysWY5.s", line 11 : Syntax error
        Near line: "    .cfi_offset 5, -8"
        "/var/tmp//ccEysWY5.s", line 12 : Illegal mnemonic
        Near line: "    .cfi_def_cfa_register 5"
        "/var/tmp//ccEysWY5.s", line 12 : Syntax error
        Near line: "    .cfi_def_cfa_register 5"
        "/var/tmp//ccEysWY5.s", line 15 : Illegal mnemonic
        Near line: "    .cfi_restore 5"
        "/var/tmp//ccEysWY5.s", line 15 : Syntax error
        Near line: "    .cfi_restore 5"
        "/var/tmp//ccEysWY5.s", line 16 : Illegal mnemonic
        Near line: "    .cfi_def_cfa 4, 4"
        "/var/tmp//ccEysWY5.s", line 16 : Syntax error
        Near line: "    .cfi_def_cfa 4, 4"
        "/var/tmp//ccEysWY5.s", line 18 : Illegal mnemonic
        Near line: "    .cfi_endproc"
        "/var/tmp//ccEysWY5.s", line 18 : Syntax error
        Near line: "    .cfi_endproc"
ba


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
                   ` (4 preceding siblings ...)
  2011-01-30 22:28 ` yuri at tsoft dot com
@ 2011-01-30 22:40 ` redi at gcc dot gnu.org
  2011-01-30 23:13 ` yuri at tsoft dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2011-01-30 22:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-30 22:02:18 UTC ---
(In reply to comment #4)
> Passing --with-gnu-as option to configure fixes the problem.

Which is why it's recommended in the docs:
http://gcc.gnu.org/install/specific.html#ix86-x-solaris210

Please try using the suggested configuration


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
                   ` (5 preceding siblings ...)
  2011-01-30 22:40 ` redi at gcc dot gnu.org
@ 2011-01-30 23:13 ` yuri at tsoft dot com
  2011-01-30 23:27 ` yuri at tsoft dot com
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: yuri at tsoft dot com @ 2011-01-30 23:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Yuri <yuri at tsoft dot com> 2011-01-30 22:03:50 UTC ---
Actually g++ produces the correct assembler file, but still calls original Sun
assembler /usr/ccs/bin/as instead of the GNU one from the path, regardless of
the option --with-gnu-as passed to gcc configure.

Removing /usr/ccs/bin/as fixes the problem.

So there are two issues with gcc-4.5.2 on Solaris:
1. Inability to detect GNU assembler in path (unwarranted requirement to pass
--with-gnu-as). Broken build when either no GNU assembler in path or no option
--with-gnu-as passed.
2. GNU assembler from path isn't used by g++, causing Sun assembler to fail on
GNU-formatted assembler file.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
                   ` (6 preceding siblings ...)
  2011-01-30 23:13 ` yuri at tsoft dot com
@ 2011-01-30 23:27 ` yuri at tsoft dot com
  2011-01-31  0:46 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: yuri at tsoft dot com @ 2011-01-30 23:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Yuri <yuri at tsoft dot com> 2011-01-30 22:06:50 UTC ---
(In reply to comment #6)
> Which is why it's recommended in the docs:
> http://gcc.gnu.org/install/specific.html#ix86-x-solaris210
> 
> Please try using the suggested configuration

There is nothing in these recommendations that configure can't do by itself.
Please update configure so that all users don't have to stumble upon the same
things over and over.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
                   ` (7 preceding siblings ...)
  2011-01-30 23:27 ` yuri at tsoft dot com
@ 2011-01-31  0:46 ` redi at gcc dot gnu.org
  2011-01-31  1:40 ` yuri at tsoft dot com
  2011-01-31 10:16 ` ebotcazou at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2011-01-31  0:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-30 23:13:28 UTC ---
well if you don't want a working compiler feel free to ignore the docs and
refuse to try the options that might help

patches to configure are welcome.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
                   ` (8 preceding siblings ...)
  2011-01-31  0:46 ` redi at gcc dot gnu.org
@ 2011-01-31  1:40 ` yuri at tsoft dot com
  2011-01-31 10:16 ` ebotcazou at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: yuri at tsoft dot com @ 2011-01-31  1:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Yuri <yuri at tsoft dot com> 2011-01-30 23:27:13 UTC ---
(In reply to comment #9)
> well if you don't want a working compiler feel free to ignore the docs and
> refuse to try the options that might help

I didn't refuse to try anything, I already got the working compiler.
I have suggested the improvement of configure to avoid further user confusion.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c++/47536] gcc-4.5.2 fails to build on Solaris 10 i386
  2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
                   ` (9 preceding siblings ...)
  2011-01-31  1:40 ` yuri at tsoft dot com
@ 2011-01-31 10:16 ` ebotcazou at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-01-31 10:16 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org
         Resolution|                            |INVALID

--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-01-31 09:49:04 UTC ---
> So there are two issues with gcc-4.5.2 on Solaris:
> 1. Inability to detect GNU assembler in path (unwarranted requirement to pass
> --with-gnu-as). Broken build when either no GNU assembler in path or no option
> --with-gnu-as passed.

This works as designed.  If you don't specify --with-as=xxx at configure time,
the compiler is configured to pick whatever assembler it finds at run time.  On
Solaris, the default is the Sun assembler.

> 2. GNU assembler from path isn't used by g++, causing Sun assembler to fail on
> GNU-formatted assembler file.

Likewise.  --with-gnu-as doesn't mean "pick the GNU assembler", it means that
the default assembler GCC will find is the GNU assembler.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-01-31  9:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-29 22:33 [Bug c++/47536] New: gcc-4.5.2 fails to build on Solaris 10 i386 yuri at tsoft dot com
2011-01-29 22:36 ` [Bug c++/47536] " pinskia at gcc dot gnu.org
2011-01-29 22:40 ` yuri at tsoft dot com
2011-01-30  1:23 ` yuri at tsoft dot com
2011-01-30 11:48 ` yuri at tsoft dot com
2011-01-30 22:28 ` yuri at tsoft dot com
2011-01-30 22:40 ` redi at gcc dot gnu.org
2011-01-30 23:13 ` yuri at tsoft dot com
2011-01-30 23:27 ` yuri at tsoft dot com
2011-01-31  0:46 ` redi at gcc dot gnu.org
2011-01-31  1:40 ` yuri at tsoft dot com
2011-01-31 10:16 ` ebotcazou at gcc dot gnu.org

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).