It seems configuration with the CFLAGS=-g makes ecl crash when using gcc-4.6.

WIth the configuration:
buildir=build/dev CC=gcc-mp-4.6  CFLAGS=-g ./configure  --enable-threads --with-x
I got a bad ecl:

;;; ECL C Backtrace
;;; 0   libecl.12.2.dylib                   0x000000010acafcd6 si_dump_c_backtrace + 47
;;; 1   libecl.12.2.dylib                   0x000000010ac9c32b ecl_internal_error + 136
;;; 2   libecl.12.2.dylib                   0x000000010accf1d4 sigsegv_handler + 63
;;; 3   libsystem_c.dylib                   0x00007fff8eddbcfa _sigtramp + 26
;;; 4   libunwind.dylib                     0x00007fff855b34d0 _ZL17sThisAddressSpace + 289204936
Abort trap: 6

With the configuration: 
 
buildir=build/dev CC=gcc-mp-4.6  ./configure  --enable-threads --with-x

I got an ecl works well.

--
Best Regards,
            ----  KDr2
/***************************************
 *    site   : http://kdr2.net         *   
 *    skype  : zhuoql                  *   
 *    gtalk  : killy.draw@gmail.com    *   
 ***************************************/




On Wed, Feb 8, 2012 at 11:02 PM, KDr2 <killy.draw@gmail.com> wrote:
comiling again with gcc-4.2.1, ecl comes back! Thanks again!

--
Best Regards,
            ----  KDr2
/***************************************
 *    site   : http://kdr2.net         *   
 *    skype  : zhuoql                  *   
 *    gtalk  : killy.draw@gmail.com    *   
 ***************************************/




On Wed, Feb 8, 2012 at 10:54 PM, KDr2 <killy.draw@gmail.com> wrote:
after a macosx reboot, the error changed:

$/opt/ecl/bin/ecl

Internal or unrecoverable error in:
Got signal before environment was installed on our thread.

;;; ECL C Backtrace
;;; 0   libecl.12.2.dylib                   0x000000010acafcd6 si_dump_c_backtrace + 47
;;; 1   libecl.12.2.dylib                   0x000000010ac9c32b ecl_internal_error + 136
;;; 2   libecl.12.2.dylib                   0x000000010accf1d4 sigsegv_handler + 63
;;; 3   libsystem_c.dylib                   0x00007fff8eddbcfa _sigtramp + 26
;;; 4   libunwind.dylib                     0x00007fff855b34d0 _ZL17sThisAddressSpace + 289204936
Abort trap: 6

$ otool -L /opt/ecl/bin/ecl
/opt/ecl/bin/ecl:
/opt/ecl/lib//libecl.12.2.dylib (compatibility version 12.2.1, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/opt/local/lib/gcc46/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) 
 
--
Best Regards,
            ----  KDr2
/***************************************
 *    site   : http://kdr2.net         *   
 *    skype  : zhuoql                  *   
 *    gtalk  : killy.draw@gmail.com    *   
 ***************************************/




On Wed, Feb 8, 2012 at 10:29 PM, KDr2 <killy.draw@gmail.com> wrote:
I built ecl with gcc-4.6 and gcc-4.2.1 both, their version info:

$ gcc-mp-4.6 -v
Using built-in specs.
COLLECT_GCC=gcc-mp-4.6
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.6.2/lto-wrapper
Target: x86_64-apple-darwin11
Configured with: ../gcc-4.6.2/configure --prefix=/opt/local --build=x86_64-apple-darwin11 --enable-languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc46 --includedir=/opt/local/include/gcc46 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.6 --with-local-prefix=/opt/local --with-libiconv-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.6 --with-gxx-include-dir=/opt/local/include/gcc46/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --enable-stage1-checking --disable-multilib --enable-lto
Thread model: posix
gcc version 4.6.2 (GCC) 


$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)


And I did make install and run it in install directory, the error still there, That's weird.

Today I rollback the sources to a version that I had built a well-run ecl (with command 'git co revesion-id'), and then built it, but that did not solve the problem.

Maybe the update to macosx10.7.3 I did yesterday broke something, I will try to find out the reason, Thanks for all your help.
 
 
--
Best Regards,
            ----  KDr2
/***************************************
 *    site   : http://kdr2.net         *   
 *    skype  : zhuoql                  *   
 *    gtalk  : killy.draw@gmail.com    *   
 ***************************************/




On Wed, Feb 8, 2012 at 10:08 PM, Juan Jose Garcia-Ripoll <juanjose.garciaripoll@googlemail.com> wrote:
On Tue, Feb 7, 2012 at 9:44 AM, KDr2 <killy.draw@gmail.com> wrote:

* compiler: gcc-mp-4.6

Sorry, I saw the 4.2 elsewhere and only noticed the 4.6 now. What version is this? XCode ships with llvm-gcc, am I wrong?

BTW, gcc-4.6 is known to miscompile ECL on Windows. I already filed a bug report for that.


Juanjo

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com