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

--- Comment #12 from Xiyue Deng <manphiz at gmail dot com> 2012-02-13 18:01:42 
UTC ---
(In reply to comment #11)
> > Could the problem be that you don't have an assembler that supports 64-bit?
> 
> What does return '/usr/libexec/gcc/darwin/x86_64/as -v' (after it you need to
> interupt as with ctrl-C)? For me it gives
> 
> Apple Inc version cctools-795~45, GNU assembler version 1.38
> 
> I configure with
> 
> Configured with: ../work/configure --prefix=/opt/gcc/gcc4.7w
> --enable-languages=c,c++,fortran,objc,obj-c++,java,ada,lto --with-gmp=/opt/mp
> --with-system-zlib --with-cloog=/opt/mp --enable-cloog-backend=isl 
> --enable-lto
> 
> and it works!-)

The assembler here reports the same:

$ /usr/libexec/gcc/darwin/x86_64/as -v
Apple Inc version cctools-795~45, GNU assembler version 1.38
^CInterrupted by signal 2

And after some checking I found that by disabling "--enable-libstdcxx-debug"
the compile process passed the current error, but failed later right after
comparing stage 2 and 3:

...
Comparing stages 2 and 3
warning: gcc/cc1-checksum.o differs
warning: gcc/cc1obj-checksum.o differs
warning: gcc/cc1objplus-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
Comparison successful.
if false; then \
      rm -rf stage2-*; \
      echo timestamp >  stage2-lean; \
    fi
mkdir ./fixincludes
Configuring in ./fixincludes
configure: creating cache ./config.cache
checking build system type... x86_64-apple-darwin10.8.0
checking host system type... x86_64-apple-darwin10.8.0
checking target system type... x86_64-apple-darwin10.8.0
checking for x86_64-apple-darwin10.8.0-gcc... /tmp/gcc-build/./gcc/xgcc
-B/tmp/gcc-build/./gcc/ -B/usr/local/x86_64-apple-darwin10.8.0/bin/
-B/usr/local/x86_64-apple-darwin10.8.0/lib/ -isystem
/usr/local/x86_64-apple-darwin10.8.0/include -isystem
/usr/local/x86_64-apple-darwin10.8.0/sys-include   
checking for C compiler default output file name... 
configure: error: in `/tmp/gcc-build/fixincludes':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-fixincludes] Error 1
make: *** [all] Error 2


And config.log shows:

configure:3610: checking for C compiler default output file name
configure:3632: /tmp/gcc-build/./gcc/xgcc -B/tmp/gcc-build/./gcc/
-B/usr/local/x86_64-apple-darwin10.8.0/bin/
-B/usr/local/x86_64-apple-darwin10.8.0/lib/ -isystem
/usr/local/x86_64-apple-darwin10.8.0/include -isystem
/usr/local/x86_64-apple-darwin10.8.0/sys-include    -g -O2    conftest.c  >&5
dsymutil(14796) malloc: *** error for object 0x10014a7c0: pointer being freed
was not allocated
*** set a breakpoint in malloc_error_break to debug
collect2: error: dsymutil terminated with signal 6 [Abort trap]
configure:3636: $? = 1
configure:3673: result: 
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "fixincludes"
| #define PACKAGE_TARNAME "fixincludes"
| #define PACKAGE_VERSION " "
| #define PACKAGE_STRING "fixincludes  "
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3679: error: in `/tmp/gcc-build/fixincludes':
configure:3683: error: C compiler cannot create executables
See `config.log' for more details.

I guess this may be related to "--enable-fully-dynamic-string". But it looks
like a difference issue[1][2].

[1] http://trac.macports.org/ticket/27237
[2] http://trac.macports.org/ticket/31171

Anyway, "--enable-libstdcxx-debug" causing bootstrap failure should be a
problem.

Reply via email to