#2754: 5.5.1. Installation of Cross GCC - errors while configuring gcc-4.5.1
-----------------------+----------------------------------------------------
 Reporter:  dotnokato  |       Owner:  lfs-b...@…                    
     Type:  defect     |      Status:  new                           
 Priority:  high       |   Milestone:  6.7                           
Component:  Book       |     Version:  SVN                           
 Severity:  blocker    |    Keywords:  gmp, mpc, mpfr, gcc, gcc-4.5.1
-----------------------+----------------------------------------------------
 Subsection "5.5.1. Installation of Cross GCC"
 Prepare GCC for compilation:

 {{{

 ../gcc-4.5.1/configure \
     --target=$LFS_TGT --prefix=/tools \
     --disable-nls --disable-shared --disable-multilib \
     --disable-decimal-float --disable-threads \
     --disable-libmudflap --disable-libssp \
     --disable-libgomp --enable-languages=c \
     --with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs \
     --without-ppl --without-cloog
 }}}

 When run, ends with an error:

 checking for the correct version of gmp.h... yes
 checking for the correct version of mpfr.h... no
 configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC
 0.8.0+.
 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
 their locations.  Source code for these libraries can be found at
 their respective hosting sites as well as at
 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
 http://gcc.gnu.org/install/prerequisites.html for additional info.  If you
 obtained GMP, MPFR and/or MPC from a vendor distribution package, make
 sure that you have installed both the libraries and the header files. They
 may be located in separate packages.

 OK, so I added

 {{{
 --with-mpfr-include=$(pwd)/mpfr --with-mpc-include=$(pwd)/mpc/src
 }}}

 checking for the correct version of gmp.h... yes
 checking for the correct version of mpfr.h... yes
 checking for the correct version of mpc.h... yes
 checking for the correct version of the gmp/mpfr/mpc libraries... no
 configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC
 0.8.0+.

 Closer, but not close enough.

 So I cd into gmp directory and:

 {{{
 cd gmp
 ./configure && make && make check
 cd ../mpfr/
 ./configure --with-gmp-build=$(pwd)/../gmp && make
 cd ../mpc/
 ./configure --with-gmp-lib=$(pwd)/../gmp/.libs --with-mpfr=$(pwd)/../mpfr
 && make
 }}}

 config.log shows:

 configure:10875: checking for MPFR
 configure:10890: gcc -o conftest -g -O2 -I../mpfr  -L../gmp/.libs
 -L../mpfr/.libs  conftest.c -lmpfr -lgmp  >&5
 In file included from conftest.c:23:
 ../mpfr/mpfr.h:39:18: error: gmp.h: No such file or directory
 In file included from conftest.c:23:
 ../mpfr/mpfr.h:136: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_exp_t'
 ../mpfr/mpfr.h:146: error: expected specifier-qualifier-list before
 'mpfr_exp_t'
 ../mpfr/mpfr.h:171: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before '__mpfr_struct'
 ../mpfr/mpfr.h:234: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before '__gmp_const'
 ../mpfr/mpfr.h:235: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before '__gmp_const'
 ../mpfr/mpfr.h:236: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:237: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:239: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_exp_t'
 ../mpfr/mpfr.h:240: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:241: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_exp_t'
 ../mpfr/mpfr.h:242: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_exp_t'
 ../mpfr/mpfr.h:243: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_exp_t'
 ../mpfr/mpfr.h:244: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:245: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_exp_t'
 ../mpfr/mpfr.h:246: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_exp_t'
 ../mpfr/mpfr.h:248: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:249: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_rnd_t'
 ../mpfr/mpfr.h:250: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before '__gmp_const'
 ../mpfr/mpfr.h:253: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:254: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:255: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:256: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:257: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:258: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:260: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:261: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:262: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:263: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:264: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:266: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:267: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:268: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:269: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:270: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:272: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:275: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:276: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:277: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:279: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:281: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:283: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:286: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:288: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:291: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_prec_t'
 ../mpfr/mpfr.h:293: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_exp_t'
 ../mpfr/mpfr.h:294: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:295: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_prec_t'
 ../mpfr/mpfr.h:296: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:297: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:298: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:299: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_prec_t'
 ../mpfr/mpfr.h:301: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:302: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:307: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:309: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:311: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:313: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:314: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:315: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:316: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:318: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:320: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:321: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:323: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:325: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:327: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:329: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:331: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:334: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:336: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:338: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:340: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:341: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:342: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:344: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:364: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_exp_t'
 ../mpfr/mpfr.h:365: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'float'
 ../mpfr/mpfr.h:366: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'double'
 ../mpfr/mpfr.h:371: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'long'
 ../mpfr/mpfr.h:373: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'double'
 ../mpfr/mpfr.h:374: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'double'
 ../mpfr/mpfr.h:376: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'long'
 ../mpfr/mpfr.h:378: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'long'
 ../mpfr/mpfr.h:379: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'unsigned'
 ../mpfr/mpfr.h:381: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'char'
 ../mpfr/mpfr.h:383: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:386: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:388: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:390: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:392: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:393: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:394: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:407: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:408: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:410: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:412: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:434: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:436: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:438: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:440: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:442: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:444: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:447: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:449: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:451: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:454: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:456: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:458: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:460: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:463: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:465: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:467: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:469: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:471: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:473: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:476: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:478: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:480: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:482: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:484: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:486: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:489: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:491: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:493: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:495: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:497: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:499: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:502: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:504: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:505: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:506: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:507: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:509: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:512: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:513: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:514: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:516: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:519: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:520: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:521: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:523: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:525: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:526: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:528: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:529: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:530: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:531: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:532: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:533: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:534: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:535: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:537: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:539: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:541: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:543: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:545: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:547: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:549: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:551: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:553: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:555: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:558: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:559: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:560: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:561: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:562: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:563: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:565: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:567: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:569: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:571: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:572: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:574: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:576: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:578: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:581: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:582: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:583: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:584: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:585: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:586: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:587: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:588: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:590: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:592: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:593: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:595: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:596: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:597: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:598: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:599: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:600: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:602: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:603: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:605: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:606: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:607: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:608: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:609: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:611: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:612: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:613: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:614: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:615: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:616: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:617: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:620: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:621: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:622: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:624: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:625: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:626: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:627: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:628: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:630: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:631: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:632: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:634: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:635: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:636: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:638: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:640: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:641: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:642: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:643: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:644: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:645: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:646: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:647: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:648: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:649: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:650: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:652: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:653: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:654: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:656: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:657: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:658: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:661: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:663: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:665: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:667: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:670: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:672: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:674: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:676: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:678: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:680: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:682: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:684: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:686: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:688: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:690: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:692: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:694: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:696: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:699: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:701: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:704: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 ../mpfr/mpfr.h:707: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'size_t'
 ../mpfr/mpfr.h:708: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:709: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:710: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'mpfr_exp_t'
 ../mpfr/mpfr.h:711: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:712: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'void'
 ../mpfr/mpfr.h:714: error: expected '=', ',', ';', 'asm' or
 '__attribute__' before 'int'
 configure:10890: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "mpc"
 | #define PACKAGE_TARNAME "mpc"
 | #define PACKAGE_VERSION "0.8.2"
 | #define PACKAGE_STRING "mpc 0.8.2"
 | #define PACKAGE_BUGREPORT "[email protected]"
 | #define PACKAGE_URL ""
 | #define PACKAGE "mpc"
 | #define VERSION "0.8.2"
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | /* end confdefs.h.  */
 | #include "mpfr.h"
 | int
 | main ()
 | {
 | mpfr_t x;  mpfr_init(x) ; mpfr_clear(x);
 |
 |   ;
 |   return 0;
 | }
 configure:10895: result: no
 configure:10897: error: libmpfr not found or uses a different ABI.

 Unfortunately I have no clue how to compile mpc. And so I cannot compile
 gcc.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2754>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to