Juan Francisco Cantero Hurtado <[email protected]> writes:
> On Thu, Aug 08, 2019 at 11:41:36PM +0100, Stuart Henderson wrote:
>
>> On 2019/08/05 19:49, Juan Francisco Cantero Hurtado wrote:
>> > On Mon, Aug 05, 2019 at 06:23:00PM +0100, Stuart Henderson wrote:
>> > > On 2019/08/05 18:58, Jeremie Courreges-Anglas wrote:
>> > > > On Mon, Aug 05 2019, Stuart Henderson <[email protected]> wrote:
>> > > > > On 2019/08/05 17:25, Timo Myyrä wrote:
>> > > > >> Juan Francisco Cantero Hurtado <[email protected]> writes:
>> > > >
>> > > > [...]
>> > > >
>> > > > >> > Could you test this patch?.
>> > > > >> >
>> > > > >> >
>> > > > >> > diff --git Makefile Makefile
>> > > > >> > index 88a777f7c30..7547cf59c6c 100644
>> > > > >> > --- Makefile
>> > > > >> > +++ Makefile
>> > > > >> > @@ -39,7 +39,8 @@ NO_TEST = Yes
>> > > > >> > GERBIL_ROOT = ${PREFIX}/gerbil
>> > > > >> >
>> > > > >> > do-build:
>> > > > >> > - cd ${WRKSRC}/src && ulimit -n 1024 && ${SETENV} ${MAKE_ENV}
>> > > > >> > ./build.sh
>> > > > >> > + cd ${WRKSRC}/src && ulimit -n 1024 -s 16384 && \
>> > > > >> > + ${SETENV} ${MAKE_ENV} ./build.sh
>> > > > >> >
>> > > > >> > do-install:
>> > > > >> > ${INSTALL_DATA_DIR} ${GERBIL_ROOT}
>> > > > >
>> > > > > Trying that in my next build (though it would seem odd for it to
>> > > > > require
>> > > > > more stack on one machine than another?)
>> > >
>> > > Unsurprisingly it didn't help.
>> > >
>> > > > Or maybe amd64.p and exopi don't use the same limits (login.conf)?
>> > > > naddy, ajacoutot?
>> > >
>> > > On i386 I did copy login.conf to the new machines.
>> > >
>> > > Same results building lang/gerbil with ports-gcc.
>> >
>> > Build gambit with this patch and then try to build gerbil:
>> >
>> >
>> > diff --git Makefile Makefile
>> > index 9202dbfc8db..e6184545f60 100644
>> > --- Makefile
>> > +++ Makefile
>> > @@ -3,6 +3,7 @@
>> > COMMENT= complete, efficient and reliable implementation of Scheme
>> >
>> > V= 4.9.3
>> > +REVISION= 0
>> > DISTNAME= gambit-v${V:S/./_/g}
>> > PKGNAME= gambit-$V
>> > API_V= ${V:R:S/./0/}00${V:E}
>> > @@ -20,8 +21,13 @@ PERMIT_PACKAGE= Yes
>> > MASTER_SITES=
>> > http://www.iro.umontreal.ca/~gambit/download/gambit/v${V:R}/source/
>> > EXTRACT_SUFX= .tgz
>> >
>> > +COMPILER= ports-gcc
>> > +COMPILER_LANGS= c
>> > +
>> > WANTLIB += c crypto m ssl util
>> >
>> > +RUN_DEPENDS= lang/gcc/${MODGCC4_VERSION}
>> > +
>> > CONFIGURE_STYLE=gnu
>> > CONFIGURE_ARGS+=--disable-cplusplus \
>> > --disable-absolute-shared-libs \
>> > @@ -42,6 +48,10 @@ do-build:
>> > ulimit -s 12288 && cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
>> > ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET}
>> >
>> > +post-build:
>> > + sed -i 's/C_COMPILER=\"cc\"/C_COMPILER=\"egcc\"/'
>> > ${WRKSRC}/bin/gambcomp-C.unix
>> > + sed -i 's/C_PREPROC=\"cc -E\"/C_PREPROC=\"egcc -E\"/'
>> > ${WRKSRC}/bin/gambcomp-C.unix
>> > +
>> > do-test:
>> > cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${MAKE_PROGRAM} \
>> > ${TEST_FLAGS} -f makefile ${TEST_TARGET}
>> >
>>
>> Same problem. I've tried all combinations:
>>
>> gambit gerbil
>> ------ ------
>> clang gcc
>> gcc clang
>> gcc gcc
>
> Thanks for taking the time to test all the combinations. I'm out of
> ideas, so the only option would be disable the tags as upstream and Timo
> suggested. Could you build gambit and gerbil with symbols and send me
> the pobj directories of both ports?.
>
> Feel free to mark the port as broken if you want.
Hmm, lets see what the tests itself tell.
Stuart, Could you try following diff to disable the TAGS generation.
Without tags the build should work and test would be runnable.
Timo
Index: patches/patch-src_build_sh
===================================================================
RCS file: patches/patch-src_build_sh
diff -N patches/patch-src_build_sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_build_sh 9 Aug 2019 18:50:18 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: src/build.sh
+--- src/build.sh.orig
++++ src/build.sh
+@@ -197,7 +197,7 @@ build_gerbil() {
+ build_lang || die
+ build_r7rs_large || die
+ build_tools || die
+- build_tags || die
++# build_tags || die
+ }
+
+ ## handling command line
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/lang/gerbil/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 PLIST
--- pkg/PLIST 10 Feb 2019 18:01:30 -0000 1.3
+++ pkg/PLIST 9 Aug 2019 18:50:18 -0000
@@ -1551,7 +1551,6 @@ gerbil/lib/std/xml/sxpath.ssxi.ss
@bin gerbil/lib/std/xml/sxpath__rt.o1
@bin gerbil/lib/std/xml__rt.o1
gerbil/src/
-gerbil/src/TAGS
gerbil/src/bootstrap/
gerbil/src/bootstrap/gerbil/
gerbil/src/bootstrap/gerbil/compiler/