Gcc 4.6.3 Internal Compiler Error Segmentation Fault
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 internal compiler error segmentation fault android you might have Meta Discuss the workings and policies of this
C++: Internal Compiler Error: Segmentation Fault (program Cc1plus) Opencv
site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or libgcc internal compiler error segmentation fault posting 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.
Internal Compiler Error Segmentation Fault Please Submit A Full Bug Report
Join them; 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 --enabl
[x] User account creation filtered due to spam. Bug58222 - :0:0: internal compiler error: Segmentation fault Summary: :0:0: internal compiler error: Segmentation fault Status: RESOLVED WONTFIX Alias: None Product: gcc Classification: Unclassified Component: fortran (show other bugs) Version: 4.7.2 Importance: P3 normal Target Milestone: --- Assignee: Not yet assigned to anyone URL: Keywords: Depends on: Blocks: Reported: 2013-08-23 03:32 UTC by blake.fumberger Modified: 2013-09-02 14:13 UTC (History) CC List: 1 user (show) kargl See Also: Host: Target: Build: Known to work: Known to fail: Last reconfirmed: 2013-09-02 http://askubuntu.com/questions/312835/gcc-segmentation-fault-on-ubuntu-12-04 00:00:00 Attachments Program used for bisection solving of the Colebrook White Formula (835 bytes, application/octet-stream) 2013-08-23 03:32 UTC, blake.fumberger 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 blake.fumberger 2013-08-23 03:32:20 UTC Created attachment 30691 [details] Program used for bisection solving of the Colebrook White https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58222 Formula Initial Error during compiling with gfortran: :0:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Returned from the "gcc -v" command COLLECT_GCC=C:\MinGW\bin\gcc.exe COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.7.2/lto-wrapper.exe Target: mingw32 Configured with: ../gcc-4.7.2/configure --enable-languages=c,c++,ada,fortran,obj c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo mp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1- with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw Thread model: win32 gcc version 4.7.2 (GCC) Attached is the code that I am trying to compile. If I place intentional syntax errors, the compiler will pick them up. With no errors, the compiler returns an internal error Comment 1 blake.fumberger 2013-08-23 03:36:51 UTC reviewing the attached file shows that line 45 wasn't in the correct position. After fixing this, the compiler still doesn't cooperate. Comment 2 kargl 2013-08-23 04:01:55 UTC The program compiles with all version of gfortran I have available to me on x86_64-*-freebsd: 4.2.5 20090330 4.3.6 (GCC) 4.4.7 (GCC) 4.5.4 (GCC) 4.6.4 (GCC) 4.7.4 20130708 4.8.2 20130708 4.9.0 20130712 What compiler options did you use? Where did you get the compiler you are using? Have you thought about using a different OS? Comment 3 blake.fumberger 2013-08-23 04:07:07 UTC "What compile
Login: [x] User https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56938 account creation filtered due to spam. Bug56938 - Compiling GCC 4.6.3 with GCC 4.8.0 results in internal build errors. Summary: Compiling GCC 4.6.3 with GCC 4.8.0 results in internal build errors. Status: RESOLVED DUPLICATE of bug 54638 Alias: None Product: gcc Classification: Unclassified Component: libgcc (show internal compiler other bugs) Version: 4.8.0 Importance: P3 normal Target Milestone: 4.6.4 Assignee: Not yet assigned to anyone URL: Keywords: Depends on: Blocks: Reported: 2013-04-12 18:12 UTC by Alexander von Gluck Modified: 2013-04-12 19:13 UTC (History) CC List: 0 users See Also: Host: Target: Build: Known internal compiler error to work: Known to fail: Last reconfirmed: Attachments 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 Alexander von Gluck 2013-04-12 18:12:40 UTC Checking multilib configuration for libgcc... mkdir -p -- i586-pc-haiku/libgcc Configuring in i586-pc-haiku/libgcc configure: creating cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... gawk checking build system type... x86_64-unknown-linux-gnu checking host system type... i586-pc-haiku checking for i586-pc-haiku-ar... /home/kallisti5/Projects/haiku/generated/cross-tools/i586-pc-haiku/bin/ar checking for i586-pc-haiku-lipo... i586-pc-haiku-lipo checking for i586-pc-haiku-nm... /home/kallisti5/Projects/haiku/generated/cross-tools-build/gcc/./gcc/nm checking for i586-pc-haiku-ranlib... /home/kallisti5/Projects/haiku/generated/cross-tools/i586-pc-haiku/bin/ranlib checking for i586-pc-haiku-strip... /home/kallisti5/Projects/haiku/generated/cross-tools/i586-pc-haiku/bin/strip checking whether ln -s works... yes checking for i586-pc-haiku-gcc... /home/kallisti5/Projects/haiku/generated/cross-tools-build/gcc/./gcc/xgcc -B/home/kallisti5/Projects/haiku/generated/cross-tools-build/gcc/./gcc/ -B/home/kallisti5/Projects/haiku/generated/cross-tools/i586-pc-haiku/bin/ -B/home/kallisti5/Projects/haiku/generated/cross-tools/i586-pc-haiku/lib/ -isystem /home/kallisti5/Projects/haiku/generated/cross-tools/i586-pc-haiku/include -isystem /home/kallisti5/Projects/haiku/generated/cross-tools/i586-pc-haiku/sys-include checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking