public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq
@ 2015-03-04  6:54 research at matthewniemerg dot com
  2015-03-04  9:26 ` [Bug libgcc/65306] " mkuvyrkov at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: research at matthewniemerg dot com @ 2015-03-04  6:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65306
           Summary: make error with clang on OSX 10.9.5 -- movq
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: research at matthewniemerg dot com

I am trying to compile gcc 4.9.2, downloaded from an ftp mirror, using my Mac's
native clang compiler.  My OS is OSX 10.9.5.

The following is the output from gcc -v and g++ -v.

gcc - v

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix


g++ -v

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

I run into the following error when I run make after using the following for my
configure.


../gcc-4.9.2/configure --prefix=/usr/local/gcc/4.9.2 --enable-threads
--enable-static

----

/Users/matthewniemerg/Research/Packages/gcc-4.9.2.build/./gcc/xgcc
-B/Users/matthewniemerg/Research/Packages/gcc-4.9.2.build/./gcc/
-B/usr/local/gcc/4.9.2/x86_64-apple-darwin13.4.0/bin/
-B/usr/local/gcc/4.9.2/x86_64-apple-darwin13.4.0/lib/ -isystem
/usr/local/gcc/4.9.2/x86_64-apple-darwin13.4.0/include -isystem
/usr/local/gcc/4.9.2/x86_64-apple-darwin13.4.0/sys-include    -g -O2 -O2  -g
-O2 -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include   -pipe -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector   -pipe -fno-common -I. -I. -I../.././gcc
-I../../../gcc-4.9.2/libgcc -I../../../gcc-4.9.2/libgcc/.
-I../../../gcc-4.9.2/libgcc/../gcc -I../../../gcc-4.9.2/libgcc/../include 
-DHAVE_CC_TLS -DUSE_EMUTLS -Wno-missing-prototypes -Wno-type-limits -o
extenddftf2_s.o -MT extenddftf2_s.o -MD -MP -MF extenddftf2_s.dep -DSHARED  -c
../../../gcc-4.9.2/libgcc/soft-fp/extenddftf2.c
{standard input}:19:suffix or operands invalid for `movq'
:49:suffix or operands invalid for `movq'
make[3]: *** [extenddftf2_s.o] Error 1
make[2]: *** [all-stage1-target-libgcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

----

Please note that I am creating the build directory not in the source directory
and not as a subdirectory of the source directory, i.e. directory structure is

--parent
gcc-4.9.2
gcc-4.9.2.build

This appears to be similar (although not the same) to Bug libgcc/56656 .

Kind Regards,
Matthew Niemerg
The Institute for Interdisciplinary Information Sciences
Tsinghua University
Beijing, China


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
@ 2015-03-04  9:26 ` mkuvyrkov at gcc dot gnu.org
  2015-03-04  9:50 ` research at matthewniemerg dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2015-03-04  9:26 UTC (permalink / raw)
  To: gcc-bugs

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

Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> changed:

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

--- Comment #1 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> ---
Apple ships clang compiler in its recent versions of OS X, and it aliases "gcc"
to it.  You are not, in fact, using GCC, so please file bugs in clang's
bugzilla at http://llvm.org/bugs/ .

Thank you.


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
  2015-03-04  9:26 ` [Bug libgcc/65306] " mkuvyrkov at gcc dot gnu.org
@ 2015-03-04  9:50 ` research at matthewniemerg dot com
  2015-03-04 10:00 ` mkuvyrkov at gcc dot gnu.org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: research at matthewniemerg dot com @ 2015-03-04  9:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Matthew Niemerg <research at matthewniemerg dot com> ---
I understand I am using clang as the compiler.  I am trying to build gcc-4.9.2
with clang as my compiler.

I have successfully used clang for compiling gcc-4.3.3, gcc-4.4.3, gcc-4.7.3,
and gcc-4.8.4 from source but am now trying to compile with clang for gcc-4.9.2
and this fails as indicated in the original report, hence why I filed the bug
report here.

I will also submit this bug report to their bugzilla.  

Thank you.


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
  2015-03-04  9:26 ` [Bug libgcc/65306] " mkuvyrkov at gcc dot gnu.org
  2015-03-04  9:50 ` research at matthewniemerg dot com
@ 2015-03-04 10:00 ` mkuvyrkov at gcc dot gnu.org
  2015-03-04 10:15 ` research at matthewniemerg dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2015-03-04 10:00 UTC (permalink / raw)
  To: gcc-bugs

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

Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|MOVED                       |---

--- Comment #3 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> ---
Oh, I'm sorry, I had a knee-jerk reaction.

Now that I have /actually/ read through your report ...

What assembler are you using?

To troubleshoot this please provide preprocessed source and final assembly. 
You can get these by adding "-save-temps" to the compilation command and
looking for *.i and *.s files.


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
                   ` (2 preceding siblings ...)
  2015-03-04 10:00 ` mkuvyrkov at gcc dot gnu.org
@ 2015-03-04 10:15 ` research at matthewniemerg dot com
  2015-03-04 12:27 ` mkuvyrkov at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: research at matthewniemerg dot com @ 2015-03-04 10:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Matthew Niemerg <research at matthewniemerg dot com> ---
Don't worry about it.

The assembler I am using is

Apple Inc version cctools-862, GNU assembler version 1.38

(from as -v)

So, if I want to get the *.i and *.s files I should add "-save-temps" to say,
CPPFLAGS, when I do configure?

i.e., modifying my original configure to something like

../gcc-4.9.2/configure --prefix=/usr/local/gcc/4.9.2 --enable-threads
--enable-static CPPFLAGS="-save-temps" 

Thanks,
Matt


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
                   ` (3 preceding siblings ...)
  2015-03-04 10:15 ` research at matthewniemerg dot com
@ 2015-03-04 12:27 ` mkuvyrkov at gcc dot gnu.org
  2015-03-04 16:51 ` howarth at bromo dot med.uc.edu
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2015-03-04 12:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> ---
No need to rebuild the whole GCC with -save-temps.  Just go to directory where
compilation of extenddftf2_s.o takes place and copy-paste the compilation
command for that one file with addition of -save-temps.

I'm not familiar with "Apple Inc version cctools-862, GNU assembler version
1.38", so it may be that assembler is broken or too old; you may have to build
recent binutils for your GCC to use.


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
                   ` (4 preceding siblings ...)
  2015-03-04 12:27 ` mkuvyrkov at gcc dot gnu.org
@ 2015-03-04 16:51 ` howarth at bromo dot med.uc.edu
  2015-03-05  5:38 ` research at matthewniemerg dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2015-03-04 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

howarth at bromo dot med.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howarth at bromo dot med.uc.edu

--- Comment #6 from howarth at bromo dot med.uc.edu ---
I don't see this problem with the same Xcode 6.1.1 and associated command line
tools package installed on 10.9.4 as current gcc-4_9_branch...

% ../gcc-4.9.3-20150227/configure --prefix=/Users/howarth/dist
--enable-languages=c,c++ --with-gmp=/sw --with-libiconv-prefix=/sw
--with-isl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-threads
--enable-static

bootstraps fine here. The fact that you aren't aren't using -with-gmp or
--with-mpc is rather disconcerting as it suggests you have been installing into
the system directories instead of /usr/local or /opt. If so, I would suggest
reinstalling the OS to purge out anything you've installed in the system
directories.


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
                   ` (6 preceding siblings ...)
  2015-03-05  5:38 ` research at matthewniemerg dot com
@ 2015-03-05  5:38 ` research at matthewniemerg dot com
  2015-03-05  5:41 ` research at matthewniemerg dot com
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: research at matthewniemerg dot com @ 2015-03-05  5:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Matthew Niemerg <research at matthewniemerg dot com> ---
Created attachment 34961
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34961&action=edit
extenddftf2.s


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
                   ` (5 preceding siblings ...)
  2015-03-04 16:51 ` howarth at bromo dot med.uc.edu
@ 2015-03-05  5:38 ` research at matthewniemerg dot com
  2015-03-05  5:38 ` research at matthewniemerg dot com
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: research at matthewniemerg dot com @ 2015-03-05  5:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Matthew Niemerg <research at matthewniemerg dot com> ---
Created attachment 34960
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34960&action=edit
extenddftf2.i


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
                   ` (7 preceding siblings ...)
  2015-03-05  5:38 ` research at matthewniemerg dot com
@ 2015-03-05  5:41 ` research at matthewniemerg dot com
  2015-03-05  7:51 ` ubizjak at gmail dot com
  2015-03-05 15:10 ` howarth at bromo dot med.uc.edu
  10 siblings, 0 replies; 12+ messages in thread
From: research at matthewniemerg dot com @ 2015-03-05  5:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Matthew Niemerg <research at matthewniemerg dot com> ---
@Max.  See the attached files.

@Howarth.  I am compiling gcc-4.9.2 with gmp, mpfr, and mpc source directories
in the gcc-4.9.2 source tree.  There is nothing disconcerting about not passing
--with-* to the configure script, as per the directions found on
https://gcc.gnu.org/install/configure.html .

Kind regards,
Matt


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
                   ` (8 preceding siblings ...)
  2015-03-05  5:41 ` research at matthewniemerg dot com
@ 2015-03-05  7:51 ` ubizjak at gmail dot com
  2015-03-05 15:10 ` howarth at bromo dot med.uc.edu
  10 siblings, 0 replies; 12+ messages in thread
From: ubizjak at gmail dot com @ 2015-03-05  7:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Uroš Bizjak <ubizjak at gmail dot com> ---
Assembler support for interunit movq (e.g. "movq %rax, %xmm0") is detected with
configure, and HAVE_AS_IX86_INTERUNIT_MOVQ flag is set accordingly.

It looks that configure checks different assembler than the one used to compile
the library.
>From gcc-bugs-return-479424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 05 08:34:41 2015
Return-Path: <gcc-bugs-return-479424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 33752 invoked by alias); 5 Mar 2015 08:34:41 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 33636 invoked by uid 48); 5 Mar 2015 08:34:37 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64085] ICE on C++14 lambda by-reference capture with an initializer
Date: Thu, 05 Mar 2015 08:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-64085-4-vASohnIPQ8@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64085-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64085-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-03/txt/msg00568.txt.bz2
Content-length: 512

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd085

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |my.pvt.emailaddress@googlem
                   |                            |ail.com

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 64948 has been marked as a duplicate of this bug. ***


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

* [Bug libgcc/65306] make error with clang on OSX 10.9.5 -- movq
  2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
                   ` (9 preceding siblings ...)
  2015-03-05  7:51 ` ubizjak at gmail dot com
@ 2015-03-05 15:10 ` howarth at bromo dot med.uc.edu
  10 siblings, 0 replies; 12+ messages in thread
From: howarth at bromo dot med.uc.edu @ 2015-03-05 15:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from howarth at bromo dot med.uc.edu ---
I see no problems here on darwin13.4.0 (with mpc-1.0.2, gmp-6.0.0a, mpfr-3.1.2,
isl-0.12.2 and cloog-0.18.2 present in the gcc-4_9-branch svn tree as mpc, gmp,
mpfr, isl and cloog) using...

cd work
../gcc-4.9.3-20150227/configure --prefix=/Users/howarth/dist
--enable-languages=c,c++ --with-system-zlib --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-threads --enable-static
make -j8 bootstrap

The in-tree bootstrap completes without errors.


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

end of thread, other threads:[~2015-03-05 15:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-04  6:54 [Bug libgcc/65306] New: make error with clang on OSX 10.9.5 -- movq research at matthewniemerg dot com
2015-03-04  9:26 ` [Bug libgcc/65306] " mkuvyrkov at gcc dot gnu.org
2015-03-04  9:50 ` research at matthewniemerg dot com
2015-03-04 10:00 ` mkuvyrkov at gcc dot gnu.org
2015-03-04 10:15 ` research at matthewniemerg dot com
2015-03-04 12:27 ` mkuvyrkov at gcc dot gnu.org
2015-03-04 16:51 ` howarth at bromo dot med.uc.edu
2015-03-05  5:38 ` research at matthewniemerg dot com
2015-03-05  5:38 ` research at matthewniemerg dot com
2015-03-05  5:41 ` research at matthewniemerg dot com
2015-03-05  7:51 ` ubizjak at gmail dot com
2015-03-05 15:10 ` howarth at bromo dot med.uc.edu

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