can't compile lang/gcc port

1 view
Skip to first unread message

Xavier

unread,
May 13, 2013, 9:59:26 AM5/13/13
to freebsd-questions
Hi to all,

I can't compile lang/gcc port.

The last lines of error:

else \
exit 1; \
fi; \
else true; \
fi; \
fi; \
done; \
fi
gmake[5]: Leaving directory `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd
9.1/libstdc++-v3'
gmake[4]: Leaving directory `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd
9.1/libstdc++-v3'
gmake[3]: Leaving directory `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd
9.1/libstdc++-v3'
gmake[2]: Leaving directory `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd
9.1/libstdc++-v3'
gmake[1]: Leaving directory `/usr/ports/lang/gcc/work/build'
*** [do-build] Error code 1

Stop in /usr/ports/lang/gcc.
*** [build] Error code 1

Stop in /usr/ports/lang/gcc.

Somebody can help me ?

Thanks, see you.
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Roland Smith

unread,
May 14, 2013, 1:14:17 PM5/14/13
to Xavier, freebsd-questions
On Mon, May 13, 2013 at 03:59:26PM +0200, Xavier wrote:
> Hi to all,
>
> I can't compile lang/gcc port.
>
> The last lines of error:

Unfortunately the real error happens _above_ the lines that you showed.

> else \
> exit 1; \
> fi; \
> else true; \
> fi; \
> fi; \
> done; \
> fi
> gmake[5]: Leaving directory `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd
> 9.1/libstdc++-v3'
> gmake[4]: Leaving directory `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd
[snip]
> Stop in /usr/ports/lang/gcc.
> *** [build] Error code 1
>
> Stop in /usr/ports/lang/gcc.

> Somebody can help me ?

There is probably a compiler error somewhere before the lines that you posted.
Can you show a little bit more?

Roland
--
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)

Xavier

unread,
May 14, 2013, 3:07:59 PM5/14/13
to freebsd-questions
On Tue, May 14, 2013 at 07:14:17PM +0200, Roland Smith wrote:

Hi Roland,

> On Mon, May 13, 2013 at 03:59:26PM +0200, Xavier wrote:
> > Hi to all,
> >
> > I can't compile lang/gcc port.
> >
> > The last lines of error:
>
> Unfortunately the real error happens _above_ the lines that you showed.
>

Hmmm, OK.

> > else \
> > exit 1; \
> > fi; \
> > else true; \
> > fi; \
> > fi; \
> > done; \
> > fi
> > gmake[5]: Leaving directory `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd
> > 9.1/libstdc++-v3'
> > gmake[4]: Leaving directory `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd
> [snip]
> > Stop in /usr/ports/lang/gcc.
> > *** [build] Error code 1
> >
> > Stop in /usr/ports/lang/gcc.
>
> > Somebody can help me ?
>
> There is probably a compiler error somewhere before the lines that you posted.
> Can you show a little bit more?
>

I don't show more lines because the log is very long for paste here.

I can send directly to your private email the 1.6 MB of log file ? For
your review.

I waiting for your answer, see you.

Thanks.

Roland Smith

unread,
May 14, 2013, 4:31:11 PM5/14/13
to Xavier, freebsd-questions
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?
> >
>
> I don't show more lines because the log is very long for paste here.
>
> 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 mailing
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 -fmerge-constants --fast-math -DVERSION=\"3.0.0beta2\" -DPACKAGE=\"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_ shows
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.

Robert Bonomi

unread,
May 14, 2013, 4:44:43 PM5/14/13
to freebsd-...@freebsd.org, xavierfreeb...@gmail.com
> Date: Tue, 14 May 2013 21:07:59 +0200
> Subject: Re: can't compile lang/gcc port
> From: Xavier <xavierfreeb...@gmail.com>
>
> On Tue, May 14, 2013 at 07:14:17PM +0200, Roland Smith wrote:
>
> Hi Roland,
>
> > On Mon, May 13, 2013 at 03:59:26PM +0200, Xavier wrote:
> > > Hi to all,
> > >
> > > I can't compile lang/gcc port.
> > >
> > > The last lines of error:
> >
> > Unfortunately the real error happens _above_ the lines that you showed.
> >
>
> Hmmm, OK.
>
> > > else \
> > > exit 1; \ fi; \ else true; \ fi; \ fi; \ done; \ fi
> > > gmake[5]: Leaving directory
> > > `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd
> > > 9.1/libstdc++-v3'
> > > gmake[4]: Leaving directory
> > > `/usr/ports/lang/gcc/work/build/i386-portbld-freebsd
> > [snip]
> > > Stop in /usr/ports/lang/gcc.
> > > *** [build] Error code 1
> > >
> > > Stop in /usr/ports/lang/gcc.
> >
> > > Somebody can help me ?
> >
> > There is probably a compiler error somewhere before the lines that you
> > posted. Can you show a little bit more?
> >
>
> I don't show more lines because the log is very long for paste here.

Look for lines with the words:
warning:
Warning:
error:
Error:

Report at least the 3 lines before each such occurance and 10 or so lines
after it.

This command:
grep -B 3 -A 10 -E -i '(warning|error):' < {{logfile}}
should do the selection automatically.

Asking _someone_else_ to rummage through a megabyte-plus of log because you
can't be bothered to look for the 'magic words' that actually identify the
problem _is_ an unreasonable imposition on their kindness.

Ifi, on the other hand, you _don't_know_how_ to recognize an error message
in a build log, you should, bluntly, *not* be building software for your
system. Either use pre-build binaries, or hire someone who -does- know what
they're doing to build/install custom software for you.

Xavier

unread,
May 14, 2013, 4:50:36 PM5/14/13
to freebsd-questions
On Tue, May 14, 2013 at 10:31:11PM +0200, Roland Smith wrote:

Hi Roland,

> 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?
> > >
> >
> > I don't show more lines because the log is very long for paste here.
> >
> > 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

OK.

> 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 mailing
> 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 -fmerge-constants --fast-math -DVERSION=\"3.0.0beta2\" -DPACKAGE=\"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_ shows
> 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.
>

Here an overview of log error:

http://pastebin.com/X0C1gtaG

( I cut in middle log for limit of 500 KB in pastebin.com web site ).

Thanks, see you.

Xavier

unread,
May 14, 2013, 4:54:14 PM5/14/13
to freebsd-questions
On Tue, May 14, 2013 at 10:31:11PM +0200, Roland Smith wrote:

Hi Roland,

> 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?
> > >
> >
> > I don't show more lines because the log is very long for paste here.
> >
> > 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

OK.

> 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 mailing
> 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 -fmerge-constants --fast-math -DVERSION=\"3.0.0beta2\" -DPACKAGE=\"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_ shows
> 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.
>

Here an overview of log error:

http://pastebin.com/X0C1gtaG

( I cut in middle log for limit of 500 KB in pastebin.com web site ).

Thanks, see you.

Xavier

unread,
May 14, 2013, 4:57:28 PM5/14/13
to freebsd-questions
On Tue, May 14, 2013 at 03:44:43PM -0500, Robert Bonomi wrote:

Hi Robert,

( Sorry for my before email, my before email is an error of apropiate
thread email )
I paste log here:

http://pastebin.com/X0C1gtaG

I cut the middle log for 500 KB of limit in pastebin.com web site.

Thanks, see you.
Reply all
Reply to author
Forward
0 new messages