pkgsrc-Users archive

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

lang/gprolog (probably infinite loop)



While running bulkbuild (NetBSD/amd64 8.99.42, gcc-7.4.0),, or at the very last stage
of packaging,
lang/gprolog building consumes 99% of CPU after 40H of run.

- I found new version of 1.4.5 instead of current 1.4.4.
  It looks almost the same.

- I've changed to MAKE_JOBS_SAFE = yes and try run again
  with 1.4.5

  The console and top display are as follows:

  |  gplc -c pl2wam.wam
  |  --- read_file.o ---
  |  gplc -c read_file.wam
  |  --- syn_sugar.o ---
  |  gplc -c syn_sugar.wam
  |  --- code_gen.o ---
  |  gplc -c code_gen.wam
  |  --- internal.o ---
  |  gplc -c internal.wam
  |  --- reg_alloc.o ---
  |  gplc -c reg_alloc.wam
  |  --- first_arg.o ---
  |  gplc -c first_arg.wam
  |  --- inst_codif.o ---
  |  gplc -c inst_codif.wam
  |  --- indexing.o ---
  |  gplc -c indexing.wam
  |  --- wam_emit.o ---
  |  gplc -c wam_emit.wam
  |  --- pl2wam ---
  |  [ ! -f  pl2wam ] || cp pl2wam pl2wam0
  |  gplc -o pl2wam --no-fd-lib-warn --no-top-level pl2wam.o read_file.o syn_sugar.o internal.o code_gen.o reg_alloc.o inst_codif.o first_arg.o indexing.o wam_emit.o
  |  --- fd2c.o ---
  |  --- read_file.o ---
  |  --- parse.o ---
  |  --- compile.o ---
  |  --- fd2c.o ---
  |  gplc -c --fast-math fd2c.pl
  |  --- read_file.o ---
  |  gplc -c --fast-math read_file.pl
  |  --- parse.o ---
  |  gplc -c --fast-math parse.pl
  |  --- compile.o ---
  |  gplc -c --fast-math compile.pl
  (stays here)

  |  load averages:  4.00,  4.00,  4.00;               up 1+02:39:56        00:14:00
  |  64 processes: 1 runnable, 59 sleeping, 4 on CPU
  |  CPU0 states: 99.4% user,  0.0% nice,  0.4% system,  0.2% interrupt,  0.0% idle
  |  CPU1 states: 99.8% user,  0.0% nice,  0.2% system,  0.0% interrupt,  0.0% idle
  |  CPU2 states:  100% user,  0.0% nice,  0.0% system,  0.0% interrupt,  0.0% idle
  |  CPU3 states: 96.2% user,  0.0% nice,  3.8% system,  0.0% interrupt,  0.0% idle
  |  Memory: 7683M Act, 20M Inact, 15M Wired, 87M Exec, 7516M File, 1970M Free
  |  Swap: 3985M Total, 3985M Free
  |  
  |    PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
  |   2030 makoto    25    0   118M 2252K CPU/2     26.4H 99.02% 99.02% pl2wam
  |   1404 makoto    25    0   118M 2248K CPU/1     26.5H 98.97% 98.97% pl2wam
  |   7442 makoto    25    0   119M 2256K RUN/0     26.4H 98.63% 98.63% pl2wam
  |  11443 makoto    25    0   118M 2252K CPU/3     26.4H 96.78% 96.78% pl2wam
  |      0 root     125    0     0K   22M vdrain/0  25:50  0.24%  0.24% [system]
  |    715 root      85    0   185M   39M select/0   1:34  0.00%  0.00% X
  (I'm running MAKE_JOBS= 8)

I suspect gcc problem, so I've tried attache patch as a work around, 
and it packged fine:

Thanks @tristelo for discussion,
-- 
Makoto Fujiwara
mef%NetBSD.org@localhost
makoto%ki.nu@localhost
makoto%if.t.u-tokyo.ac.jp@localhost


Index: lang/gprolog/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gprolog/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- lang/gprolog/Makefile	19 Jan 2017 18:52:13 -0000	1.20
+++ lang/gprolog/Makefile	13 Jun 2019 15:10:56 -0000
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.20 2017/01/19 18:52:13 agc Exp $
 
-DISTNAME=		gprolog-1.4.4
+DISTNAME=		gprolog-1.4.5
 CATEGORIES=		lang
 MASTER_SITES=		${HOMEPAGE}
 MASTER_SITES+=		http://gprolog.univ-paris1.fr/
@@ -10,6 +10,9 @@
 COMMENT=		GNU prolog compiler and interpreter
 LICENSE=		gnu-lgpl-v3 OR gnu-gpl-v2
 
+GCC_REQD=      		4.8
+USE_PKGSRC_GCC=		yes
+
 GNU_CONFIGURE=		yes
 CONFIGURE_DIRS=		src
 CONFIGURE_ARGS+=	--with-install-dir=${PREFIX}/lib/${PKGNAME_NOREV} \
Index: lang/gprolog/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gprolog/PLIST,v
retrieving revision 1.7
diff -u -r1.7 PLIST
--- lang/gprolog/PLIST	11 Jun 2013 20:05:37 -0000	1.7
+++ lang/gprolog/PLIST	13 Jun 2019 15:10:56 -0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2013/06/11 20:05:37 asau Exp $
+@comment $NetBSD$
 bin/fd2c
 bin/gplc
 bin/gprolog
@@ -30,6 +30,7 @@
 lib/${PKGNAME}/lib/libengine_pl.a
 lib/${PKGNAME}/lib/liblinedit.a
 lib/${PKGNAME}/lib/top_level.o
+lib/${PKGNAME}/lib/top_level_main.o
 share/doc/gprolog/compil-scheme.eps
 share/doc/gprolog/compil-scheme.pdf
 share/doc/gprolog/contents_motif.gif
@@ -127,6 +128,7 @@
 share/examples/gprolog/ExamplesC/examp_c.c
 share/examples/gprolog/ExamplesC/new_main.pl
 share/examples/gprolog/ExamplesC/new_main_c.c
+share/examples/gprolog/ExamplesFD/BUILD_HOUSE.pl
 share/examples/gprolog/ExamplesFD/Makefile
 share/examples/gprolog/ExamplesFD/alpha.pl
 share/examples/gprolog/ExamplesFD/array.pl
Index: lang/gprolog/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gprolog/distinfo,v
retrieving revision 1.13
diff -u -r1.13 distinfo
--- lang/gprolog/distinfo	3 Nov 2015 22:50:36 -0000	1.13
+++ lang/gprolog/distinfo	13 Jun 2019 15:10:56 -0000
@@ -1,6 +1,6 @@
 $NetBSD: distinfo,v 1.13 2015/11/03 22:50:36 agc Exp $
 
-SHA1 (gprolog-1.4.4.tar.gz) = 658b0efa5d916510dcddbbd980d90bc4d43a6e58
-RMD160 (gprolog-1.4.4.tar.gz) = 081ad0e6a2edd47de63db79ab1dc65a0e0d341da
-SHA512 (gprolog-1.4.4.tar.gz) = b6227a06794d31162f2c790a025f7372a6676c1891a76e880d2152aeab6322d3341aeab85e11d9be6d97ff1c69801bee73fa3ea6b0659af61f55990a455dc212
-Size (gprolog-1.4.4.tar.gz) = 3538152 bytes
+SHA1 (gprolog-1.4.5.tar.gz) = cbb4a517f6ccfb6622ee099eb9b36a25ea4f8131
+RMD160 (gprolog-1.4.5.tar.gz) = 781c8fcffa180e63b821689589f5b02ab803135c
+SHA512 (gprolog-1.4.5.tar.gz) = 425103bc9e5bdbdb4ae331f5be0cf49524fbdb4f5e2809fb973360de9e7ad9935c1b28f3603e0be696a647153d9f0d3dacdc87251098ac99faf7d0b3c652fc60
+Size (gprolog-1.4.5.tar.gz) = 3587361 bytes


-- 


Home | Main Index | Thread Index | Old Index