public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/42785]  New: error: impossible constraint in easmf
@ 2010-01-18  0:31 monaka at monami-software dot com
  2010-01-18  0:57 ` [Bug bootstrap/42785] error: impossible constraint in �easm�f pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: monaka at monami-software dot com @ 2010-01-18  0:31 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2404 bytes --]

I got "error: impossible constraint in easmf" on the build time.
It only happens building with "-arch ppc" option. There is no errors in case I
choice "-arch i386"/"-arch x86_64".

gcc -arch ppc -c  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common 
-DHAVE_CONFIG_H -I. -I. -I../../../../../gcc -I../../../../../gcc/.
-I../../../../../gcc/../include -I./../intl
-I../../../../../gcc/../libcpp/include -I/opt/gcc4build/include
-I/opt/gcc4build/include  -I../../../../../gcc/../libdecnumber
-I../../../../../gcc/../libdecnumber/dpd -I../libdecnumber     -I. -I.
-I../../../../../gcc -I../../../../../gcc/. -I../../../../../gcc/../include
-I./../intl -I../../../../../gcc/../libcpp/include -I/opt/gcc4build/include
-I/opt/gcc4build/include  -I../../../../../gcc/../libdecnumber
-I../../../../../gcc/../libdecnumber/dpd -I../libdecnumber   
../../../../../gcc/config/i386/driver-i386.c
../../../../../gcc/config/i386/driver-i386.c: In function edetect_l2_cachef:
../../../../../gcc/config/i386/driver-i386.c:68: error: impossible constraint
in easmf
make[1]: *** [driver-i386.o] Error 1
make: *** [all-gcc] Error 2


the result of host gcc -v is:
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646.1~2/src/configure --disable-checking
--enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib
--build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
--program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10
--target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646) (dot 1)


-- 
           Summary: error: impossible constraint in easmf
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: monaka at monami-software dot com
 GCC build triplet: i386-apple-darwin10.2.0
  GCC host triplet: i386-apple-darwin10.2.0
GCC target triplet: i386-elf


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


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

* [Bug bootstrap/42785] error: impossible constraint in �easm�f
  2010-01-18  0:31 [Bug bootstrap/42785] New: error: impossible constraint in easmf monaka at monami-software dot com
@ 2010-01-18  0:57 ` pinskia at gcc dot gnu dot org
  2010-01-18 23:29 ` [Bug bootstrap/42785] error: impossible constraint in 'asm' monaka at monami-software dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-01-18  0:57 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 802 bytes --]



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-01-18 00:56 -------
If you use -arch ppc, then the host/build is really powerpc-apple-darwin so
obviously you are configuring GCC incorrectly and the error message is correct
as that is x86 inline-asm that is being compiled in that source. 


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
            Summary|error: impossible constraint|error: impossible constraint
                   |in easmf                  |in �easm�f


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


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

* [Bug bootstrap/42785] error: impossible constraint in 'asm'
  2010-01-18  0:31 [Bug bootstrap/42785] New: error: impossible constraint in easmf monaka at monami-software dot com
  2010-01-18  0:57 ` [Bug bootstrap/42785] error: impossible constraint in �easm�f pinskia at gcc dot gnu dot org
@ 2010-01-18 23:29 ` monaka at monami-software dot com
  2010-01-19  0:11 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: monaka at monami-software dot com @ 2010-01-18 23:29 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]



------- Comment #2 from monaka at monami-software dot com  2010-01-18 23:29 -------
(In reply to comment #1)
> If you use -arch ppc, then the host/build is really powerpc-apple-darwin so
> obviously you are configuring GCC incorrectly and the error message is correct
> as that is x86 inline-asm that is being compiled in that source. 

There is no need to use -arch option if we use powerpc-apple-darwin host/build.
I think it can be resolved by a patch follows.

diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
index 17694ef..dc69a80 100644
--- a/gcc/config/i386/driver-i386.c
+++ b/gcc/config/i386/driver-i386.c
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3.  If not see

 const char *host_detect_local_cpu (int argc, const char **argv);

-#ifdef __GNUC__
+#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
 #include "cpuid.h"

 struct cache_desc


-- 

monaka at monami-software dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |
            Summary|error: impossible constraint|error: impossible constraint
                   |in �easm�f              |in 'asm'


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


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

* [Bug bootstrap/42785] error: impossible constraint in 'asm'
  2010-01-18  0:31 [Bug bootstrap/42785] New: error: impossible constraint in easmf monaka at monami-software dot com
  2010-01-18  0:57 ` [Bug bootstrap/42785] error: impossible constraint in �easm�f pinskia at gcc dot gnu dot org
  2010-01-18 23:29 ` [Bug bootstrap/42785] error: impossible constraint in 'asm' monaka at monami-software dot com
@ 2010-01-19  0:11 ` pinskia at gcc dot gnu dot org
  2010-01-19  0:14 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-01-19  0:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2010-01-19 00:10 -------
driver-i386.c should not be included if you are compiling for a PPC host/build
really.  So it is a problem of you misconfiguring GCC really and nothing else.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug bootstrap/42785] error: impossible constraint in 'asm'
  2010-01-18  0:31 [Bug bootstrap/42785] New: error: impossible constraint in easmf monaka at monami-software dot com
                   ` (2 preceding siblings ...)
  2010-01-19  0:11 ` pinskia at gcc dot gnu dot org
@ 2010-01-19  0:14 ` pinskia at gcc dot gnu dot org
  2010-01-19  2:43 ` monaka at monami-software dot com
  2010-01-19  2:46 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-01-19  0:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2010-01-19 00:13 -------
More to the point, use lipo to combine the gcc drivers after the fact to get a
dual arch executable.


-- 


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


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

* [Bug bootstrap/42785] error: impossible constraint in 'asm'
  2010-01-18  0:31 [Bug bootstrap/42785] New: error: impossible constraint in easmf monaka at monami-software dot com
                   ` (3 preceding siblings ...)
  2010-01-19  0:14 ` pinskia at gcc dot gnu dot org
@ 2010-01-19  2:43 ` monaka at monami-software dot com
  2010-01-19  2:46 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: monaka at monami-software dot com @ 2010-01-19  2:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from monaka at monami-software dot com  2010-01-19 02:42 -------
(In reply to comment #3)
> driver-i386.c should not be included if you are compiling for a PPC host/build
> really.  So it is a problem of you misconfiguring GCC really and nothing else.

I see what you want to say, but.
The another viewpoint:
In i386-driver.c, there is decided by "#ifdef __GNUC__" which
host_detect_local_cpu (dummy or not) is used 
In i386.h, there is decided by "#if defined(__i386__) || defined(__x86_64__) if
it defines EXTRA_SPEC_FUNCTIONS .
They are inconsistent, right?

P.S.
Thanks for your information about lipo. I know about it and I've already
released binary distributions.


-- 


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


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

* [Bug bootstrap/42785] error: impossible constraint in 'asm'
  2010-01-18  0:31 [Bug bootstrap/42785] New: error: impossible constraint in easmf monaka at monami-software dot com
                   ` (4 preceding siblings ...)
  2010-01-19  2:43 ` monaka at monami-software dot com
@ 2010-01-19  2:46 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-01-19  2:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2010-01-19 02:45 -------
>They are inconsistent, right?
No because i386-driver.c is only supposed to be compiled with a x86 or x86_64
compiler.  Really the file could have 
#if !defined(__i386__) && !defined(__x86_64__)
#error "This should only be compiled with an x86 compiler"
#endif

And still be correct.


-- 


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


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

end of thread, other threads:[~2010-01-19  2:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-18  0:31 [Bug bootstrap/42785] New: error: impossible constraint in easmf monaka at monami-software dot com
2010-01-18  0:57 ` [Bug bootstrap/42785] error: impossible constraint in �easm�f pinskia at gcc dot gnu dot org
2010-01-18 23:29 ` [Bug bootstrap/42785] error: impossible constraint in 'asm' monaka at monami-software dot com
2010-01-19  0:11 ` pinskia at gcc dot gnu dot org
2010-01-19  0:14 ` pinskia at gcc dot gnu dot org
2010-01-19  2:43 ` monaka at monami-software dot com
2010-01-19  2:46 ` pinskia at gcc dot gnu dot 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).