LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Another gcc compilation issue (http://www.linuxquestions.org/questions/linux-software-2/another-gcc-compilation-issue-758714/)

HSN 09-30-2009 12:26 PM

Another gcc compilation issue
 
I'm trying to recompile gcc 4.3.2 on Fedora 10. I downloaded the full source and tried to ./configure it. It gave me two errors regarding GMP and MPFR. I downloaded both of these and kept them inside gcc's source and configuration went fine.
When I tried to "make", everything was good until this happened:

Code:

make[3]: Entering directory `/home/hm/Download/gcc-4.3.2/host-i686-pc-linux-gnu/mpfr'
Makefile:340: .deps/strcasecmp.Po: No such file or directory
Makefile:341: .deps/strncasecmp.Po: No such file or directory
Makefile:342: .deps/acos.Po: No such file or directory
Makefile:343: .deps/acosh.Po: No such file or directory
Makefile:344: .deps/add.Po: No such file or directory
Makefile:345: .deps/add1.Po: No such file or directory
Makefile:346: .deps/add1sp.Po: No such file or directory
Makefile:347: .deps/add_one_ulp.Po: No such file or directory
Makefile:348: .deps/add_ui.Po: No such file or directory
Makefile:349: .deps/agm.Po: No such file or directory
Makefile:350: .deps/asin.Po: No such file or directory
Makefile:351: .deps/asinh.Po: No such file or directory
Makefile:352: .deps/atan.Po: No such file or directory
Makefile:353: .deps/atanh.Po: No such file or directory
Makefile:354: .deps/cache.Po: No such file or directory
Makefile:355: .deps/cbrt.Po: No such file or directory
Makefile:356: .deps/check.Po: No such file or directory
Makefile:357: .deps/clear.Po: No such file or directory
Makefile:358: .deps/clears.Po: No such file or directory
Makefile:359: .deps/cmp.Po: No such file or directory
Makefile:360: .deps/cmp2.Po: No such file or directory
Makefile:361: .deps/cmp_abs.Po: No such file or directory
Makefile:362: .deps/cmp_d.Po: No such file or directory
Makefile:363: .deps/cmp_ld.Po: No such file or directory
Makefile:364: .deps/cmp_si.Po: No such file or directory
Makefile:365: .deps/cmp_ui.Po: No such file or directory
Makefile:366: .deps/comparisons.Po: No such file or directory
Makefile:367: .deps/const_euler.Po: No such file or directory
Makefile:368: .deps/const_log2.Po: No such file or directory
Makefile:369: .deps/const_pi.Po: No such file or directory
Makefile:370: .deps/copysign.Po: No such file or directory
Makefile:371: .deps/cos.Po: No such file or directory
Makefile:372: .deps/cosh.Po: No such file or directory
Makefile:373: .deps/dim.Po: No such file or directory
Makefile:374: .deps/div.Po: No such file or directory
Makefile:375: .deps/div_2exp.Po: No such file or directory
Makefile:376: .deps/div_2si.Po: No such file or directory
Makefile:377: .deps/div_2ui.Po: No such file or directory
Makefile:378: .deps/div_ui.Po: No such file or directory
Makefile:379: .deps/dump.Po: No such file or directory
Makefile:380: .deps/eq.Po: No such file or directory
Makefile:381: .deps/erf.Po: No such file or directory
Makefile:382: .deps/exceptions.Po: No such file or directory
Makefile:383: .deps/exp.Po: No such file or directory
Makefile:384: .deps/exp10.Po: No such file or directory
Makefile:385: .deps/exp2.Po: No such file or directory
Makefile:386: .deps/exp3.Po: No such file or directory
Makefile:387: .deps/exp_2.Po: No such file or directory
Makefile:388: .deps/expm1.Po: No such file or directory
Makefile:389: .deps/extract.Po: No such file or directory
Makefile:390: .deps/factorial.Po: No such file or directory
Makefile:391: .deps/fits_intmax.Po: No such file or directory
Makefile:392: .deps/fits_sint.Po: No such file or directory
Makefile:393: .deps/fits_slong.Po: No such file or directory
Makefile:394: .deps/fits_sshort.Po: No such file or directory
Makefile:395: .deps/fits_uint.Po: No such file or directory
Makefile:396: .deps/fits_uintmax.Po: No such file or directory
Makefile:397: .deps/fits_ulong.Po: No such file or directory
Makefile:398: .deps/fits_ushort.Po: No such file or directory
Makefile:399: .deps/fma.Po: No such file or directory
Makefile:400: .deps/frac.Po: No such file or directory
Makefile:401: .deps/free_cache.Po: No such file or directory
Makefile:402: .deps/gamma.Po: No such file or directory
Makefile:403: .deps/get_d.Po: No such file or directory
Makefile:404: .deps/get_exp.Po: No such file or directory
Makefile:405: .deps/get_ld.Po: No such file or directory
Makefile:406: .deps/get_si.Po: No such file or directory
Makefile:407: .deps/get_sj.Po: No such file or directory
Makefile:408: .deps/get_str.Po: No such file or directory
Makefile:409: .deps/get_ui.Po: No such file or directory
Makefile:410: .deps/get_uj.Po: No such file or directory
Makefile:411: .deps/get_z.Po: No such file or directory
Makefile:412: .deps/get_z_exp.Po: No such file or directory
Makefile:413: .deps/gmp_op.Po: No such file or directory
Makefile:414: .deps/hypot.Po: No such file or directory
Makefile:415: .deps/init.Po: No such file or directory
Makefile:416: .deps/init2.Po: No such file or directory
Makefile:417: .deps/inits.Po: No such file or directory
Makefile:418: .deps/inits2.Po: No such file or directory
Makefile:419: .deps/inp_str.Po: No such file or directory
Makefile:420: .deps/int_ceil_log2.Po: No such file or directory
Makefile:421: .deps/isinf.Po: No such file or directory
Makefile:422: .deps/isinteger.Po: No such file or directory
Makefile:423: .deps/isnan.Po: No such file or directory
Makefile:424: .deps/isnum.Po: No such file or directory
Makefile:425: .deps/isqrt.Po: No such file or directory
Makefile:426: .deps/iszero.Po: No such file or directory
Makefile:427: .deps/log.Po: No such file or directory
Makefile:428: .deps/log10.Po: No such file or directory
Makefile:429: .deps/log1p.Po: No such file or directory
Makefile:430: .deps/log2.Po: No such file or directory
Makefile:431: .deps/minmax.Po: No such file or directory
Makefile:432: .deps/mp_clz_tab.Po: No such file or directory
Makefile:433: .deps/mpfr-gmp.Po: No such file or directory
Makefile:434: .deps/mpn_exp.Po: No such file or directory
Makefile:435: .deps/mul.Po: No such file or directory
Makefile:436: .deps/mul_2exp.Po: No such file or directory
Makefile:437: .deps/mul_2si.Po: No such file or directory
Makefile:438: .deps/mul_2ui.Po: No such file or directory
Makefile:439: .deps/mul_ui.Po: No such file or directory
Makefile:440: .deps/neg.Po: No such file or directory
Makefile:441: .deps/next.Po: No such file or directory
Makefile:442: .deps/out_str.Po: No such file or directory
Makefile:443: .deps/pow.Po: No such file or directory
Makefile:444: .deps/pow_si.Po: No such file or directory
Makefile:445: .deps/pow_ui.Po: No such file or directory
Makefile:446: .deps/powerof2.Po: No such file or directory
Makefile:447: .deps/print_raw.Po: No such file or directory
Makefile:448: .deps/print_rnd_mode.Po: No such file or directory
Makefile:449: .deps/random.Po: No such file or directory
Makefile:450: .deps/random2.Po: No such file or directory
Makefile:451: .deps/reldiff.Po: No such file or directory
Makefile:452: .deps/rint.Po: No such file or directory
Makefile:453: .deps/round_prec.Po: No such file or directory
Makefile:454: .deps/save_expo.Po: No such file or directory
Makefile:455: .deps/set.Po: No such file or directory
Makefile:456: .deps/set_d.Po: No such file or directory
Makefile:457: .deps/set_dfl_prec.Po: No such file or directory
Makefile:458: .deps/set_exp.Po: No such file or directory
Makefile:459: .deps/set_f.Po: No such file or directory
Makefile:460: .deps/set_inf.Po: No such file or directory
Makefile:461: .deps/set_ld.Po: No such file or directory
Makefile:462: .deps/set_nan.Po: No such file or directory
Makefile:463: .deps/set_prc_raw.Po: No such file or directory
Makefile:464: .deps/set_prec.Po: No such file or directory
Makefile:465: .deps/set_q.Po: No such file or directory
Makefile:466: .deps/set_rnd.Po: No such file or directory
Makefile:467: .deps/set_si.Po: No such file or directory
Makefile:468: .deps/set_si_2exp.Po: No such file or directory
Makefile:469: .deps/set_sj.Po: No such file or directory
Makefile:470: .deps/set_str.Po: No such file or directory
Makefile:471: .deps/set_str_raw.Po: No such file or directory
Makefile:472: .deps/set_ui.Po: No such file or directory
Makefile:473: .deps/set_ui_2exp.Po: No such file or directory
Makefile:474: .deps/set_uj.Po: No such file or directory
Makefile:475: .deps/set_z.Po: No such file or directory
Makefile:476: .deps/setmax.Po: No such file or directory
Makefile:477: .deps/setmin.Po: No such file or directory
Makefile:478: .deps/sgn.Po: No such file or directory
Makefile:479: .deps/si_op.Po: No such file or directory
Makefile:480: .deps/sin.Po: No such file or directory
Makefile:481: .deps/sin_cos.Po: No such file or directory
Makefile:482: .deps/sinh.Po: No such file or directory
Makefile:483: .deps/sqr.Po: No such file or directory
Makefile:484: .deps/sqrt.Po: No such file or directory
Makefile:485: .deps/sqrt_ui.Po: No such file or directory
Makefile:486: .deps/strtofr.Po: No such file or directory
Makefile:487: .deps/sub.Po: No such file or directory
Makefile:488: .deps/sub1.Po: No such file or directory
Makefile:489: .deps/sub1sp.Po: No such file or directory
Makefile:490: .deps/sub_one_ulp.Po: No such file or directory
Makefile:491: .deps/sub_ui.Po: No such file or directory
Makefile:492: .deps/sum.Po: No such file or directory
Makefile:493: .deps/swap.Po: No such file or directory
Makefile:494: .deps/tan.Po: No such file or directory
Makefile:495: .deps/tanh.Po: No such file or directory
Makefile:496: .deps/uceil_exp2.Po: No such file or directory
Makefile:497: .deps/uceil_log2.Po: No such file or directory
Makefile:498: .deps/ufloor_log2.Po: No such file or directory
Makefile:499: .deps/ui_div.Po: No such file or directory
Makefile:500: .deps/ui_pow.Po: No such file or directory
Makefile:501: .deps/ui_pow_ui.Po: No such file or directory
Makefile:502: .deps/ui_sub.Po: No such file or directory
Makefile:503: .deps/urandomb.Po: No such file or directory
Makefile:504: .deps/version.Po: No such file or directory
Makefile:505: .deps/volatile.Po: No such file or directory
Makefile:506: .deps/zeta.Po: No such file or directory
make[3]: *** No rule to make target `.deps/zeta.Po'.  Stop.
make[3]: Leaving directory `/home/hm/Download/gcc-4.3.2/host-i686-pc-linux-gnu/mpfr'
make[2]: *** [all-stage1-mpfr] Error 2
make[2]: Leaving directory `/home/hm/Download/gcc-4.3.2'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/hm/Download/gcc-4.3.2'
make: *** [all] Error 2


I'm really stuck with this! I have no idea what's happening? Why is this an error?

SethsdadtheLinuxer 09-30-2009 04:53 PM

Assuming that the files exist, edit Makefile to point to the right place.

lazlow 09-30-2009 06:15 PM

Have you pulled the spec file from the last F10 gcc source rpm? There may be patches and/or other tricks there that can save you a lot of headaches.

You should also be aware that on package based systems you do NOT want to replace the stock gcc version (it almost always breaks the system). You can ADD a parallel version without causing issues.

Elv13 09-30-2009 10:39 PM

Do you have those files and do you have gettext installed?

HSN 10-01-2009 07:52 AM

I don't know if it's trivial to modify Makefile.
Actually I decided to have a parallel version and downloaded 4.4.1. It again stops somewhere giving an mpfr related error similar to the above.

I do have gettext.

lazlow,
can you elaborate on this:
Quote:

Have you pulled the spec file from the last F10 gcc source rpm? There may be patches and/or other tricks there that can save you a lot of headaches.

lazlow 10-01-2009 08:15 AM

If you grab the src.rpm and extract it with archive manager, there will be a number of files inside the source rpm. Among them will always be the spec file (essentially a config file) and the source that is actually built to make the binary rpm. IF anything out of the ordinary was necessary to build the package it will be in that spec file. If patches were required they will be referenced in the spec file and those patches will be among those files that were extracted from the src.rpm (patches are generally .patch files). Sometimes it is something as easy as just defining a path that is required to get a good build. Now if the latest gcc package for a newer version of Fedora (F11 or F12 om this case) is available you may also want to grab the source rpm for that and examine it as well.

SethsdadtheLinuxer 10-01-2009 09:07 AM

It is actually very trivial to modify Makefile. If this prospect is daunting, simply copy Makefile to a backup copy (cp -p Makefile Makefile.save), then modify Makefile with vi or nano.

lazlow 10-01-2009 09:39 AM

The editing of the file is trivial, but knowing what needs to be edited is often not. This is the information that the spec file will (in most cases) provide.


All times are GMT -5. The time now is 03:23 AM.