Home > internal compiler > gcc 4.7.2 internal compiler error segmentation fault

Gcc 4.7.2 Internal Compiler Error Segmentation Fault

[x] User account creation filtered due to spam. Bug57625 - internal gcc internal compiler error segmentation fault compiler error: seg fault when building gcc 4.7.2 Summary: internal internal compiler error segmentation fault android compiler error: seg fault when building gcc 4.7.2 Status: RESOLVED FIXED Alias: None Product: gcc Classification: internal compiler error segmentation fault (program cc1plus) Unclassified Component: middle-end (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-06-15 16:47 UTC by je.suis.bon Modified: 2015-09-21 13:38 UTC (History) CC List: 3 users (show) arapov mikpelinux mpolacek See Also: Host: Target: Build: Known to work: Known to fail: Last reconfirmed: Attachments libgcc2.c (11.54 KB, text/x-csrc) 2013-06-15 16:47 UTC, je.suis.bon 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 je.suis.bon 2013-06-15 16:47:53 UTC Created attachment 30308 [details] libgcc2.c I was attempting to build gcc 4.7.2 using gcc 4.8.1. to reproduce: mkdir build-gcc cd build-gcc ../gcc-4.7.2/configure --disable-nls --enable-languages=c echo "MAKEINFO = :" >> Makefile # otherwise compile fails! make all-gcc make all-target-libgcc The following error occurs: ../../../../originalsrc/gcc-4.7.2/libgcc/libgcc2.c: In function '__absvdi2': ../../../../originalsrc/gcc-4.7.2/libgcc/libgcc2.c:273:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[3]: *** [_absvdi2.o] Error 1 In compliance with gcc's dying wishes, I have submitted a bug report. Although I'm sure you already have it, for rapid perusal, I have attached the source file that caused the seg fault. extra information: $gcc --version: gcc (GCC) 4.8.1 system: archlinux amd64, using the gcc package "gcc-4.8.1-1" If any further information is required, please ask. Comment 1 Mikael Pettersson 2013-06-15

[x] User account creation filtered due to spam. Bug63436 - libgcc2.c:273:1: internal compiler error: Segmentation fault Summary: libgcc2.c:273:1: internal compiler error: Segmentation fault Status: WAITING Alias: None Product: gcc Classification: Unclassified Component: libgcc (show other bugs) Version: 4.7.2 Importance: P3 major Target Milestone: --- Assignee: Not yet assigned to anyone URL: Keywords: Depends on: Blocks: Reported: 2014-10-02 01:13 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57625 UTC by Huoxin Modified: 2014-10-02 07:53 UTC (History) CC List: 1 user (show) xhzcomputer See Also: Host: Target: Build: Known to work: Known to fail: Last reconfirmed: 2014-10-02 00:00:00 Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63436 make changes to this bug. Description Huoxin 2014-10-02 01:13:31 UTC My Steps are as follows: $./gcc-4.7.2/configure --prefix=$CROSS_GCC_TMP --target=$TARGET --with-sysroot=$SYSROOT --with-newlib --enable-languages=c --with-mpfr-include=/vita/build/gcc-4.7.2/mpfr/src --with-mpfr-lib=/vita/build/gcc-build/mpfr/src/.libs --disable-shared --disable-threads --disable-decimal-float --disable-libquadmath --disable-libmudflap --disable-libgomp --disable-nls --disable-libssp $make Then errors are coming: ....... ../../../gcc-4.7.2/libgcc/libgcc2.c: In function '__absvdi2': ../../../gcc-4.7.2/libgcc/libgcc2.c:273:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[2]: *** [_absvdi2.o] Error 1 make[2]: Leaving directory `/vita/build/gcc-build/i686-none-linux-gnu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/vita/build/gcc-build' make: *** [all] Error 2 How to resolve it?Someone help me please. Comment 1 Andreas Schwab 2014-10-02 07:53:44 UTC GCC 4.7 is no longer maintained. Please try a newer version. Format For Printing -XML -Clone This Bug -Top of page Home | New | Browse | Search | [?] | Reports | Help | NewAccount | Log In Remember [x] | Forgot Password Login: [x]

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 http://askubuntu.com/questions/312835/gcc-segmentation-fault-on-ubuntu-12-04 any questions you might have Meta Discuss the workings and policies http://stackoverflow.com/questions/24079072/internal-compiler-error-segmentation-fault-in-gcc-when-sending-variadic-templ of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for internal compiler Ubuntu users and developers. 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 internal compiler error 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/Lin

here for a quick overview of the site Help Center Detailed answers to any questions you might have 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 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 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