Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2754 closed defect (invalid)

5.5.1. Installation of Cross GCC - errors while configuring gcc-4.5.1

Reported by: dotnokato Owned by: lfs-book@…
Priority: high Milestone: 6.7
Component: Book Version: SVN
Severity: blocker Keywords: gmp, mpc, mpfr, gcc, gcc-4.5.1
Cc:

Description

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 "mpc-discuss@…" | #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.

Attachments (2)

config.log (35.4 KB ) - added by dotnokato 14 years ago.
gcc config.log
config.2.log (10.1 KB ) - added by dotnokato 14 years ago.
gcc-build/i686-lfs-linux-gnu/libgcc/config.log

Download all attachments as: .zip

Change History (8)

comment:1 by dotnokato, 14 years ago

I've got it! Packages

tar -jxf ../mpfr-3.0.0.tar.bz2
mv -v mpfr-3.0.0 mpfr
tar -jxf ../gmp-5.0.1.tar.bz2
mv -v gmp-5.0.1 gmp
tar -zxf ../mpc-0.8.2.tar.gz
mv -v mpc-0.8.2 mpc

ought to be placed inside gcc-4.5.1 directory and not gcc-build directory.

Also please note that options:

--with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs

are obsolete.

I would be very gratefull if someone could state clearly in the book where to put sources for gmp, mpfr, mpc libs as i found that part a bit enigmatic.

comment:2 by dotnokato, 14 years ago

Wrong again!

Options:

--with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs

are needed to fix Ticket #2687

Unfortunatelly, I wasn't able to build gcc.

Here's some output of make:

Checking multilib configuration for libgcc...
Configuring in i686-lfs-linux-gnu/libgcc
configure: loading 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... i686-pc-linux-gnu
checking host system type... i686-lfs-linux-gnu
checking for i686-lfs-linux-gnu-ar... i686-lfs-linux-gnu-ar
checking for i686-lfs-linux-gnu-lipo... i686-lfs-linux-gnu-lipo
checking for i686-lfs-linux-gnu-nm... /mnt/lfs/sources/gcc-build/./gcc/nm
checking for i686-lfs-linux-gnu-ranlib... i686-lfs-linux-gnu-ranlib
checking for i686-lfs-linux-gnu-strip... i686-lfs-linux-gnu-strip
checking whether ln -s works... yes
checking for i686-lfs-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2

by dotnokato, 14 years ago

Attachment: config.log added

gcc config.log

by dotnokato, 14 years ago

Attachment: config.2.log added

gcc-build/i686-lfs-linux-gnu/libgcc/config.log

comment:3 by bdubbs@…, 14 years ago

Resolution: invalid
Status: newclosed

This ticketing system is for LFS, not Cross LFS

comment:4 by dotnokato, 14 years ago

I am attempting to build a Linux system based on Linux From Scratch - Version SVN-20100906

I'm stuck on: http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-pass1.html

Where there is:

Chapter 5. Constructing a Temporary System 
5.5. GCC-4.5.1 - Pass 1
5.5.1. Installation of Cross GCC

So it's not Cross LFS.

However if there is some other place where I should move this ticket so that the problem shown above would be resolved, please let me know.

comment:5 by bdubbs@…, 14 years ago

lfs-support mailing list

comment:6 by Anand Arumugam, 14 years ago

I am having the same error too. Why is this closed as invalid? I am following LFS book version 6.7.

Note: See TracTickets for help on using tickets.