Home > internal compiler > internal compiler error segmentation fault gcc

Internal Compiler Error Segmentation Fault Gcc

Contents

communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you

Internal Compiler Error Segmentation Fault Android

might have Meta Discuss the workings and policies of this site c++: internal compiler error: segmentation fault (program cc1plus) opencv About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting libgcc internal compiler error segmentation fault ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them;

Internal Compiler Error Segmentation Fault Please Submit A Full Bug Report

it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top gcc segmentation fault on Ubuntu 12.04 up vote 2 down vote favorite 1 I am trying to compile a C program on Ubuntu precise 12.04. Here's the program: #include int main(int argc, char** argv) { printf("Hello World!"); return 0; } My gcc version is 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5). Initially it did not find cc1 so I added a soft link. Now I get this message when I try to compile: gcc: internal compiler error: Segmentation fault (program cc1) Compiling the same program with g++ works fine. I tried reinstalling build-essential, but to no avail. What am I missing? EDIT: I tried reinstalling according to @gertyvdijk's suggestion. As it did not help, here is the output of apt-cache policy gcc-4.6: gcc-4.6: Installed: 4.6.3-1ubuntu5 Candidate: 4.6.3-1ubuntu5 Version table: *** 4.6.3-1ubuntu5 0 500 http://il.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status and the output of ls -l /usr/bin/gcc: lrwxrwxrwx 1 root root 7 Mar 13 2012 /usr/bin/gcc -> gcc-4.6 EDIT #2: here's a verbose compiler output: gcc -v aaa.c Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ -

creation filtered due to spam. Bug43818 - internal compiler error: Segmentation fault Summary: internal compiler error: Segmentation fault Status: VERIFIED FIXED Alias: None Product: gcc Classification: Unclassified Component: c++ (show other bugs) Version: 4.4.1 Importance: P3 normal Target Milestone: 4.4.4 Assignee: Not yet assigned to anyone URL: Keywords: Depends on: Blocks: Reported: 2010-04-20 14:06 UTC by Jan Oberländer Modified: 2010-04-23 14:52 UTC (History) CC List: 2 users http://askubuntu.com/questions/312835/gcc-segmentation-fault-on-ubuntu-12-04 (show) gcc-bugs oberlaender See Also: Host: i486-linux-gnu Target: i486-linux-gnu Build: i486-linux-gnu Known to work: 4.3.4 4.4.4 4.5.0 Known to fail: 4.4.3 Last reconfirmed: Attachments bugtest.ii to reproduce the segfault. (138.04 KB, application/octet-stream) 2010-04-20 14:08 UTC, Jan Oberländer Details Output of strace -F -emmap2,mremap,brk,setrlimit g++ -c -O2 bugtest.ii (822 bytes, text/plain) 2010-04-22 07:59 UTC, Jan https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43818 Oberländer Details Output from a gdb session on g++-4.4.3 (1.62 KB, text/plain) 2010-04-22 09:13 UTC, Jan Oberländer Details View All Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Jan Oberländer 2010-04-20 14:06:35 UTC Hi, unfortunately it's hard for me to tell whether this is the same as any of the other segfault bugs, so I'll have to ask you to determine that for yourselves. $ g++ -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) $ g++ -c -o bugtest.out -O2 bugtest.ii projects/odete/bugtest.cpp: In member function ‘bool tBspTree2D::Intersect(const tVec2f&, const tVec2f&, tVec2f&, double) const [with bool oriented = true]’: projects/odete/bugtest.cpp:81: internal compiler error: Segmentation fault Please submit

here for a quick overview of the site Help Center Detailed answers to any questions you might have http://stackoverflow.com/questions/24079072/internal-compiler-error-segmentation-fault-in-gcc-when-sending-variadic-templ Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with https://bugs.launchpad.net/bugs/150527 us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just internal compiler like you, helping each other. Join them; it only takes a minute: Sign up internal compiler error: Segmentation fault in gcc . when sending variadic template to struct up vote 4 down vote favorite I'm trying to compile following code : #include template