添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help . Topics in this forum are automatically closed 6 months after creation. I want to install GCC 4.3.2 on Mint 15. I'm aware of there's no package in repository so I'm trying to do it compiling source (though it's first time for me). I have downloaded source from some mirror listed on gnu.com. I read that instaling gcc from source is essentially 3 commands

Code: Select all

./configure
make install
I manage to ./configure though I'm not sure I done it properly so. First of all I want to keep gcc 4.7.3 as it is. So I found following switch

Code: Select all

--program-suffix=-4.3
which should install gcc instead of ../gcc (where the default gcc is) in ../gcc-4.3
When I run it I encoutered problem of missing 2 arithmetic libs (mpfr & gmp). After I installed them ./configure run and create makefile
After that I decide to run make
Which is another troublesome because it return errors which I do not understand bellow I gave link to output produced by make (~27000 lines) and finally I post some of ending lines from the file, maybe someone would be able to figure out whats wrong using them. Thanks in advance for any response or solution of how can I install gcc 4.3.2 next to gcc 4.7.3.
http://www.filedropper.com/outmake

Code: Select all

../.././libgcc/../gcc/libgcc2.h:422: warning: empty declaration
../.././libgcc/../gcc/libgcc2.h:432: error: expected specifier-qualifier-list before ‘DItype’
../.././libgcc/../gcc/libgcc2.h:433: error: storage class specified for parameter ‘DWunion’
../.././libgcc/../gcc/libgcc2.h:437: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__popcount_tab’
../.././libgcc/../gcc/libgcc2.h:443: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__clz_tab’
In file included from ../.././libgcc/../gcc/libgcc2.h:445,
                 from ../.././libgcc/../gcc/libgcc2.c:65:
../.././libgcc/../gcc/longlong.h:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__clz_tab’
In file included from ../.././libgcc/../gcc/libgcc2.c:65:
../.././libgcc/../gcc/libgcc2.h:448: error: storage class specified for parameter ‘__clzdi2’
../.././libgcc/../gcc/libgcc2.h:448: warning: parameter names (without types) in function declaration
../.././libgcc/../gcc/libgcc2.h:449: error: storage class specified for parameter ‘__clzsi2’
../.././libgcc/../gcc/libgcc2.h:449: warning: parameter names (without types) in function declaration
../.././libgcc/../gcc/libgcc2.h:450: error: storage class specified for parameter ‘__ctzsi2’
../.././libgcc/../gcc/libgcc2.h:450: warning: parameter names (without types) in function declaration
../.././libgcc/../gcc/libgcc2.h:451: error: storage class specified for parameter ‘__ffssi2’
../.././libgcc/../gcc/libgcc2.h:451: warning: parameter names (without types) in function declaration
../.././libgcc/../gcc/libgcc2.h:452: error: storage class specified for parameter ‘__ffsdi2’
../.././libgcc/../gcc/libgcc2.h:452: warning: parameter names (without types) in function declaration
../.././libgcc/../gcc/libgcc2.h:453: error: storage class specified for parameter ‘__ctzdi2’
../.././libgcc/../gcc/libgcc2.h:453: warning: parameter names (without types) in function declaration
../.././libgcc/../gcc/libgcc2.h:454: error: storage class specified for parameter ‘__popcountsi2’
../.././libgcc/../gcc/libgcc2.h:454: warning: parameter names (without types) in function declaration
../.././libgcc/../gcc/libgcc2.h:455: error: storage class specified for parameter ‘__popcountdi2’
../.././libgcc/../gcc/libgcc2.h:455: warning: parameter names (without types) in function declaration
../.././libgcc/../gcc/libgcc2.h:456: error: storage class specified for parameter ‘__paritysi2’
../.././libgcc/../gcc/libgcc2.h:456: warning: parameter names (without types) in function declaration
../.././libgcc/../gcc/libgcc2.h:457: error: storage class specified for parameter ‘__paritydi2’
../.././libgcc/../gcc/libgcc2.h:457: warning: parameter names (without types) in function declaration
../.././libgcc/../gcc/libgcc2.h:460: error: storage class specified for parameter ‘__enable_execute_stack’
../.././libgcc/../gcc/libgcc2.c:555: error: expected declaration specifiers before ‘DItype’
../.././libgcc/../gcc/libgcc2.c:2223: error: old-style parameter declarations in prototyped function definition
../.././libgcc/../gcc/libgcc2.c:566: error: expected ‘{’ at end of input
make[3]: *** [_muldi3.o] Error 1
make[3]: Leaving directory `/home/mariusz/Desktop/gcc-4.3.2/i686-pc-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/mariusz/Desktop/gcc-4.3.2'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/mariusz/Desktop/gcc-4.3.2'
make: *** [all] Error 2
			
1qaz2wsx,
/usr/include/stdc-predef.h:30:26: error: bits/predefs.h: No such file or directory
You're missing some header files which should be in the libc6-dev package - check if you have it installed.