I'm trying to compile boost 1.37.0 on Slackware 12.1 and get an internal compiler error on trying to compile comp_ellint_1l.cpp. I have Slackware's stock gcc, which is 4.2.3.
The exact command that triggers the error is: "/usr/bin/g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/math/build/gcc-4.2.3/release/threading-multi/comp_ellint_1l.o" "libs/math/build/../src/tr1/comp_ellint_1l.cpp" and it gives the following output: *** glibc detected *** /usr/libexec/gcc/i486-slackware-linux/4.2.3/cc1plus: free(): invalid next size (fast): 0x086d99b8 *** ======= Backtrace: ========= /lib/libc.so.6[0xb7eb58c4] /lib/libc.so.6(cfree+0x90)[0xb7eb9370] /usr/libexec/gcc/i486-slackware-linux/4.2.3/cc1plus[0x8469c19] ======= Memory map: ======== 08048000-08521000 r-xp 00000000 03:03 401525 /usr/libexec/gcc/i486-slackware-linux/4.2.3/cc1plus 08521000-08526000 rw-p 004d9000 03:03 401525 /usr/libexec/gcc/i486-slackware-linux/4.2.3/cc1plus 08526000-08a8b000 rw-p 08526000 00:00 0 [heap] b4200000-b4221000 rw-p b4200000 00:00 0 b4221000-b4300000 ---p b4221000 00:00 0 b4335000-b433f000 r-xp 00000000 03:03 270250 /usr/lib/libgcc_s.so.1 b433f000-b4340000 rw-p 00009000 03:03 270250 /usr/lib/libgcc_s.so.1 b4350000-b79e1000 rw-p b4350000 00:00 0 b7a0f000-b7e13000 rw-p b7a0f000 00:00 0 b7e13000-b7e49000 r--p 00000000 03:03 233886 /usr/lib/locale/en_US/LC_CTYPE b7e49000-b7e4a000 rw-p b7e49000 00:00 0 b7e4a000-b7f90000 r-xp 00000000 03:03 11964 /lib/libc-2.7.so b7f90000-b7f91000 r--p 00146000 03:03 11964 /lib/libc-2.7.so b7f91000-b7f93000 rw-p 00147000 03:03 11964 /lib/libc-2.7.so b7f93000-b7f97000 rw-p b7f93000 00:00 0 b7f9a000-b7fa6000 rw-p b7f9a000 00:00 0 b7fa6000-b7fa7000 r--p 00000000 03:03 233731 /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES b7fa7000-b7fc3000 r-xp 00000000 03:03 11941 /lib/ld-2.7.so b7fc3000-b7fc5000 rw-p 0001b000 03:03 11941 /lib/ld-2.7.so bff2b000-bff41000 rw-p bffea000 00:00 0 [stack] ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] libs/math/build/../src/tr1/comp_ellint_1l.cpp: In function 'long double comp_ellint_1l(long double)': libs/math/build/../src/tr1/comp_ellint_1l.cpp:11: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. gcc -v gives: Reading specs from /usr/lib/gcc/i486-slackware-linux/4.2.3/specs Target: i486-slackware-linux Configured with: ../gcc-4.2.3/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux Thread model: posix gcc version 4.2.3 -- Summary: boost 1.37.0 fails to compile comp_ellint_1l.cpp Product: gcc Version: 4.2.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: HMWiesinger at gmx dot at GCC build triplet: i486-slackware-linux GCC host triplet: i486-slackware-linux GCC target triplet: i486-slackware-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38873