I need to build on linux but I get a segmentation fault (core dump) so I try on Sun and I get the same behavior but cc works fine.
GCC version: Reading specs from ../lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs Configured with: ./configure --prefix=/free/GNU_BUILD/G1/devenv/distrib/i686/2.4.7-10/gcc-3.2.3 --disable-nls --enable-languages=c,c++,f77 --with-gnu-as -with-as=/free/GNU_BUILD/G1/devenv/install/i686/2.4.7-10/bin/as --with-gnu-ld -with-ld=/free/GNU_BUILD/G1/devenv/install/i686/2.4.7-10/bin/ld --enable-gcc Thread model: posix gcc version 3.2.3 System type: Linux 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux Command: bin/gcc -IFlex_inhouse/include -Imgls_inhouse/include -s -o ../ixl_op/pb pb.c Flex_inhouse/lib/libAnacadFlex.a mgls_inhouse/lib/libmgls.a -lnsl message I get: gcc: Internal error: Segmentation fault (program cc1) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. gnumake: *** [../ixl_op/pb] Error 1 Expected behavior: output file generated I tried to separate building and linking and I get the problem in the building phase. When I reduce the size of the character variable, building works fine. -- Summary: gcc gives a core dump when compiling a C program, cc works fine. Product: gcc Version: 3.2.3 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mohamed_selim at mentor dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28393