pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lang/gcc10 failed to compile on SunOS



* On 2021-01-19 at 09:53 GMT, Hung Nguyen Gia wrote:

> My build issue is seemed to be something with gfortran. But you are right, the build is parallel so it's difficult to know what actually faulty.
> 
> libtool: link: ranlib .libs/libgfortran.a
> libtool: link: rm -fr .libs/libgfortran.lax .libs/libgfortran.lax
> libtool: link: ( cd ".libs" && rm -f "libgfortran.la" && ln -s "../libgfortran.la" "libgfortran.la" )
> gmake[6]: Leaving directory '/export/home/hung/pkgsrc/lang/gcc10/work/build/x86_64-sun-solaris2.11/32/libgfortran'
> gmake[5]: Leaving directory '/export/home/hung/pkgsrc/lang/gcc10/work/build/x86_64-sun-solaris2.11/32/libgfortran'
> gmake[4]: Leaving directory '/export/home/hung/pkgsrc/lang/gcc10/work/build/x86_64-sun-solaris2.11/libgfortran'
> gmake[3]: Leaving directory '/export/home/hung/pkgsrc/lang/gcc10/work/build/x86_64-sun-solaris2.11/libgfortran'
> gmake[2]: Leaving directory '/export/home/hung/pkgsrc/lang/gcc10/work/build/x86_64-sun-solaris2.11/libgfortran'
> gmake[1]: Leaving directory '/export/home/hung/pkgsrc/lang/gcc10/work/build'
> gmake: *** [Makefile:1008: all] Error 2
> *** Error code 2
> 
> Stop.
> bmake[1]: stopped in /export/home/hung/pkgsrc/lang/gcc10
> *** Error code 1

There's no correlation between whatever happened to be the last job to
finish and the error line.  That was just the last job that completed
while make waited for all parallel builds to finish before printing
the error message.

Your gfortran build completed successfully, just like the libitm build
did which happened to be the last job for me.  The actual error will
be much earlier in the output.

To get synchronous output where the failure will be directly above the
error message you would need to build with MAKE_JOBS=1.  Obviously
that will have a seriously negative impact on the build time, but
often it can be helpful to restart a build with MAKE_JOBS=1 to replay
and identify exactly what the problem is.

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index