Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2013 22:31:11 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Xavier <xavierfreebsdquestions@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: can't compile lang/gcc port
Message-ID:  <20130514203111.GA27011@slackbox.erewhon.net>
In-Reply-To: <CALe6D=sLk%2BJFz7waRid7AAOx2Qei3t0n2eASW9Q3bEugVqVPVw@mail.gmail.com>
References:  <CALe6D=sZRr9D4p9kw3XO4fJiSY2xjODzO_St4cVPfuy71Se%2BPw@mail.gmail.com> <20130514171417.GB25885@slackbox.erewhon.net> <CALe6D=sLk%2BJFz7waRid7AAOx2Qei3t0n2eASW9Q3bEugVqVPVw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 14, 2013 at 09:07:59PM +0200, Xavier wrote:
> >
> > There is probably a compiler error somewhere before the lines that you =
posted.
> > Can you show a little bit more?
> >
>=20
> I don't show more lines because the log is very long for paste here.
>=20
> I can send directly to your private email the 1.6 MB of log file ? For
> your review.

Don't send me the whole log file! Using e.g. grep(1) or the old-fasfioned
eyeball look for the _first_ line in the log file that contains the word
"error". Post that line and some lines before and after it here on the mail=
ing
list. At a minimum, these lines should show;

 - what was the command that failed (compiler, linker, ...)
 - what was the _exact_ error message?
 - which file was it processing when the error occurred?

For an example look below:

    clang -O2 -pipe  -pipe -fmerge-constants --fast-math -DDEBUG -pipe -fme=
rge-constants --fast-math -DVERSION=3D\"3.0.0beta2\" -DPACKAGE=3D\"stl2pov\=
" -c ftobuf.c
    clang: error: unsupported option '--fast-math'
    *** [ftobuf.o] Error code 1

    Stop in /home/rsmith/src/progs/attic/stl2pov3.

The line containing the word "error" tells you what went wrong. In this case
the clang compiler got an option it doesn't recognize. The line _before_ sh=
ows
the actual command that was run. The line _after_, starting with '***' is a
notification from the 'make' program that building the file ftobuf.o failed.
But this line is _useless_ without the lines before it.

Roland
--=20
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--17pEHd4RhPHOinZp
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlGSnw8ACgkQEnfvsMMhpyUEsQCcDcwG/VHymXSQuQYlMVwgRH3j
eeAAn3Dhm79hkziV6da0DVtpvmuxEvdB
=PEJh
-----END PGP SIGNATURE-----

--17pEHd4RhPHOinZp--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130514203111.GA27011>