Re: lang/guile build fails for me
on 01/06/2011 09:14 Andriy Gapon said the following: lang/guile build fails in my environment with CURRENT amd64 FreeBSD and gcc45 as ports compiler: ./guile_filter_doc_snarfage --filter-snarfage) regex-posix.doc || { rm regex-posix.doc; false; } cat alist.doc arbiters.doc async.doc backtrace.doc boolean.doc chars.doc continuations.doc debug.doc deprecation.doc deprecated.doc discouraged.doc dynl.doc dynwind.doc environments.doc eq.doc error.doc eval.doc evalext.doc extensions.doc feature.doc fluids.doc fports.doc futures.doc gc.doc goops.doc gsubr.doc gc-mark.doc gc-segment.doc gc-malloc.doc gc-card.doc guardians.doc hash.doc hashtab.doc hooks.doc i18n.doc init.doc ioext.doc keywords.doc lang.doc list.doc load.doc macros.doc mallocs.doc modules.doc numbers.doc objects.doc objprop.doc options.doc pairs.doc ports.doc print.doc procprop.doc procs.doc properties.doc random.doc rdelim.doc read.doc root.doc rw.doc scmsigs.doc script.doc simpos.doc smob.doc sort.doc srcprop.doc stackchk.doc stacks.doc stime.doc strings.doc srfi-4.doc srfi-13.doc srfi-14.doc strorder.doc strports.doc struct.doc symbols.doc threads.doc throw.doc values.doc variable.doc vectors.doc version.doc vports.doc weaks.doc ramap.doc unif.doc dynl.doc filesys.doc posix.doc net_db.doc socket.doc regex-posix.doc | GUILE=/usr/obj/usr/ports/lang/guile/work/guile-1.8.6/pre-inst-guile ../scripts/snarf-check-and-output-texi guile-procedures.texi || { rm guile-procedures.texi; false; } ERROR: unknown doc attribute: (location (string . alist.c) (int . 40) (hash . hash)) gmake[3]: *** [guile-procedures.texi] Error 1 gmake[3]: Leaving directory `/usr/obj/usr/ports/lang/guile/work/guile-1.8.6/libguile' gmake[2]: *** [all] Error 2 This one seems to be a known and fixed issue: http://bugs.gentoo.org/show_bug.cgi?id=317175 I guess we could either update to a version that has the fix (when it's released) or use the following simple patch: --- libguile/guile-snarf-docs.in.orig 2011-06-02 11:49:24.423491408 +0300 +++ libguile/guile-snarf-docs.in2011-06-02 11:49:26.174492567 +0300 @@ -23,4 +23,4 @@ ## Let the user override the preprocessor autoconf found. test -n ${CPP+set} || CPP=@CPP@ -${CPP} -DSCM_MAGIC_SNARF_DOCS $@ +${CPP} -P -DSCM_MAGIC_SNARF_DOCS $@ -- Andriy Gapon ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
on 01/06/2011 09:14 Andriy Gapon said the following: lang/guile build fails in my environment with CURRENT amd64 FreeBSD and gcc45 as ports compiler: It also fails for me on stable/8 with base gcc as ports compiler, but in a different fashion at configure step: checking for lt_dlinit in -lltdl... no configure: error: libltdl not found. See README. === Script configure failed unexpectedly. From config.log: configure:11579: checking for lt_dlinit in -lltdl configure:11604: cc -o conftest -O2 -pipe -O2 -fno-strict-aliasing -pipe -march=nocona -I/usr/local/include -rpath=/usr/lib:/usr/local/lib conftest.c -lltdl 5 /usr/bin/ld: cannot find -lltdl But: $ ls -l /usr/local/lib/libltdl.* -rw-r--r-- 1 root wheel 62212 31 May 13:15 /usr/local/lib/libltdl.a -rwxr-xr-x 1 root wheel910 31 May 13:15 /usr/local/lib/libltdl.la lrwxr-xr-x 1 root wheel 12 31 May 13:15 /usr/local/lib/libltdl.so - libltdl.so.7 -rwxr-xr-x 1 root wheel 45330 31 May 13:15 /usr/local/lib/libltdl.so.7 -- Andriy Gapon ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
## Andriy Gapon (a...@freebsd.org): It also fails for me on stable/8 with base gcc as ports compiler, but in a different fashion at configure step: checking for lt_dlinit in -lltdl... no configure: error: libltdl not found. See README. === Script configure failed unexpectedly. From config.log: configure:11579: checking for lt_dlinit in -lltdl configure:11604: cc -o conftest -O2 -pipe -O2 -fno-strict-aliasing -pipe -march=nocona -I/usr/local/include -rpath=/usr/lib:/usr/local/lib conftest.c -lltdl 5 /usr/bin/ld: cannot find -lltdl Confirmed (8.2-RELEASE-p2). Somehow, configure loses $LD_LIBRARY_PATH. Not sure how... Regards, Christoph -- Spare Space ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
On Wed, Jun 01, 2011 at 02:36:46PM +0300 I heard the voice of Andriy Gapon, and lo! it spake thus: It also fails for me on stable/8 with base gcc as ports compiler, but in a different fashion at configure step: checking for lt_dlinit in -lltdl... no configure: error: libltdl not found. See README. I see the same on -CURRENT amd64 with base gcc. -- Matthew Fuller (MF4839) | fulle...@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me (SOLVED)
for me, it worked when I comment the line that says USE_NCURSES, in the Makefile line 25. Probably an error in the configure logic... ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
Am 01.06.2011 13:44, schrieb Christoph Moench-Tegeder: ## Andriy Gapon (a...@freebsd.org): It also fails for me on stable/8 with base gcc as ports compiler, but in a different fashion at configure step: checking for lt_dlinit in -lltdl... no configure: error: libltdl not found. See README. === Script configure failed unexpectedly. From config.log: configure:11579: checking for lt_dlinit in -lltdl configure:11604: cc -o conftest -O2 -pipe -O2 -fno-strict-aliasing -pipe -march=nocona -I/usr/local/include -rpath=/usr/lib:/usr/local/lib conftest.c -lltdl 5 /usr/bin/ld: cannot find -lltdl Confirmed (8.2-RELEASE-p2). Somehow, configure loses $LD_LIBRARY_PATH. Not sure how... The command line quoted above lacks the -L option for link-time; -rpath is a run-time option, and by itself, is insufficient. Try stuffing -L${LOCALBASE}/lib into some kind of linker flag such as LDFLAGS or perhaps LIBS - and pass that through CONFIGURE_ENV or _ARGS. HTH -- Matthias Andree ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
## Matthias Andree (matthias.and...@gmx.de): From config.log: configure:11579: checking for lt_dlinit in -lltdl configure:11604: cc -o conftest -O2 -pipe -O2 -fno-strict-aliasing -pipe -march=nocona -I/usr/local/include -rpath=/usr/lib:/usr/local/lib conftest.c -lltdl 5 /usr/bin/ld: cannot find -lltdl Confirmed (8.2-RELEASE-p2). Somehow, configure loses $LD_LIBRARY_PATH. Not sure how... The command line quoted above lacks the -L option for link-time; -rpath is a run-time option, and by itself, is insufficient. Try stuffing -L${LOCALBASE}/lib into some kind of linker flag such as LDFLAGS or perhaps LIBS - and pass that through CONFIGURE_ENV or _ARGS. Ah, yes, LDFLAGS. The port's Makefile already has LDFLAGS=-L${LOCALBASE}/lib in $CONFIGURE_ENV, and as guile's configure is a standard autoconf configure, $LDFLAGS should be picked up (the output of ./configure --help supports this), but... well, it isn't. As I installed guile 1.8.6_5 last september (having one's own packages archive is a great thing) and the latest change on the port does not look like it's the culprit (haven't tested that, though), I guess it's down to some serious autotools debugging. Regards, Christoph -- Spare Space ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
Am 01.06.2011 15:19, schrieb Christoph Moench-Tegeder: ## Matthias Andree (matthias.and...@gmx.de): From config.log: configure:11579: checking for lt_dlinit in -lltdl configure:11604: cc -o conftest -O2 -pipe -O2 -fno-strict-aliasing -pipe -march=nocona -I/usr/local/include -rpath=/usr/lib:/usr/local/lib conftest.c -lltdl 5 /usr/bin/ld: cannot find -lltdl Confirmed (8.2-RELEASE-p2). Somehow, configure loses $LD_LIBRARY_PATH. Not sure how... The command line quoted above lacks the -L option for link-time; -rpath is a run-time option, and by itself, is insufficient. Try stuffing -L${LOCALBASE}/lib into some kind of linker flag such as LDFLAGS or perhaps LIBS - and pass that through CONFIGURE_ENV or _ARGS. Ah, yes, LDFLAGS. The port's Makefile already has LDFLAGS=-L${LOCALBASE}/lib in $CONFIGURE_ENV, and as guile's configure is a standard autoconf configure, $LDFLAGS should be picked up (the output of ./configure --help supports this), but... well, it isn't. As I installed guile 1.8.6_5 last september (having one's own packages archive is a great thing) and the latest change on the port does not look like it's the culprit (haven't tested that, though), I guess it's down to some serious autotools debugging. At a second, still cursory look, some inconsistencies have struck my eye -- this isn't fully fledged debugging. - I can't seem to figure out what USE_NCURSES actually does, or which file gets used, (not currently on FreeBSD, so I can't grep ports/Mk easily) - deferred. - files/ contains patches for Makefile.am and Makefile.in. Makefile.am patches are ineffective if the port does not run automake - and apparently it does not (check USE_AUTOTOOLS). - aclocal gets some version numbers hacked. Very fishy, and possibly hides the real issue. Does it help to rewrite the Makefile.in patches for Makefile.am and run automake from USE_AUTOTOOLS? -- Matthias Andree ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
2011/6/1 Matthias Andree matthias.and...@gmx.de: Am 01.06.2011 15:19, schrieb Christoph Moench-Tegeder: ## Matthias Andree (matthias.and...@gmx.de): From config.log: configure:11579: checking for lt_dlinit in -lltdl configure:11604: cc -o conftest -O2 -pipe -O2 -fno-strict-aliasing -pipe -march=nocona -I/usr/local/include -rpath=/usr/lib:/usr/local/lib conftest.c -lltdl 5 /usr/bin/ld: cannot find -lltdl Confirmed (8.2-RELEASE-p2). Somehow, configure loses $LD_LIBRARY_PATH. Not sure how... The command line quoted above lacks the -L option for link-time; -rpath is a run-time option, and by itself, is insufficient. Try stuffing -L${LOCALBASE}/lib into some kind of linker flag such as LDFLAGS or perhaps LIBS - and pass that through CONFIGURE_ENV or _ARGS. Ah, yes, LDFLAGS. The port's Makefile already has LDFLAGS=-L${LOCALBASE}/lib in $CONFIGURE_ENV, and as guile's configure is a standard autoconf configure, $LDFLAGS should be picked up (the output of ./configure --help supports this), but... well, it isn't. As I installed guile 1.8.6_5 last september (having one's own packages archive is a great thing) and the latest change on the port does not look like it's the culprit (haven't tested that, though), I guess it's down to some serious autotools debugging. At a second, still cursory look, some inconsistencies have struck my eye -- this isn't fully fledged debugging. - I can't seem to figure out what USE_NCURSES actually does, or which file gets used, (not currently on FreeBSD, so I can't grep ports/Mk easily) - deferred. USE_NCURSES reorder the LDFLAGS (as does USE_OPENSSL) for base ncurses to be detected first if necessary. - files/ contains patches for Makefile.am and Makefile.in. Makefile.am patches are ineffective if the port does not run automake - and apparently it does not (check USE_AUTOTOOLS). - aclocal gets some version numbers hacked. Very fishy, and possibly hides the real issue. Does it help to rewrite the Makefile.in patches for Makefile.am and run automake from USE_AUTOTOOLS? -- Matthias Andree ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
on 01/06/2011 16:19 Christoph Moench-Tegeder said the following: Ah, yes, LDFLAGS. The port's Makefile already has LDFLAGS=-L${LOCALBASE}/lib in $CONFIGURE_ENV, and as guile's configure BTW, I think that CONFIGURE_ENV in the port's Makefile better be set with +=, for safety. is a standard autoconf configure, $LDFLAGS should be picked up (the output of ./configure --help supports this), but... well, it isn't. Looks like LDFLAGS are lost from the environment before configure is run: ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value=' -rpath=/usr/lib:/usr/local/lib' And given the USE_NCURSES workaround posted in this thread, that takes to Mk/bsd.ncurses.mk where we have: ... NCURSES_LDFLAGS+= -rpath=${NCURSESRPATH} .if defined(LDFLAGS) LDFLAGS+=${NCURSES_LDFLAGS} .else LDFLAGS=${NCURSES_LDFLAGS} .endif CONFIGURE_ENV+= LDFLAGS=${LDFLAGS} ... I think that the above line overrides whatever is set in the port's Makefile. -- Andriy Gapon ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
Here is a real fix. if someone can check with the maintainer et commit this that would be great (I can't do it myself before monday) regards, Bapt --- Makefile31 May 2011 03:49:09 - 1.83 +++ Makefile1 Jun 2011 14:22:04 - @@ -24,8 +24,8 @@ USE_LDCONFIG= yes USE_NCURSES= yes USE_GNOME= gnometarget -CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \ - LDFLAGS=-L${LOCALBASE}/lib +LDFLAGS+= -L${LOCALBASE}/lib +CPPFLAGS+= -I${LOCALBASE}/include GUILE_VER= 1.8 PLIST_SUB= GUILE_VER=${GUILE_VER} ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
Am 01.06.2011 15:57, schrieb Andriy Gapon: on 01/06/2011 16:19 Christoph Moench-Tegeder said the following: Ah, yes, LDFLAGS. The port's Makefile already has LDFLAGS=-L${LOCALBASE}/lib in $CONFIGURE_ENV, and as guile's configure BTW, I think that CONFIGURE_ENV in the port's Makefile better be set with +=, for safety. Sure, but that doesn't help if you add new varname=value assignments for the same varname - these aren't cumulative as you've shown. is a standard autoconf configure, $LDFLAGS should be picked up (the output of ./configure --help supports this), but... well, it isn't. Looks like LDFLAGS are lost from the environment before configure is run: ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value=' -rpath=/usr/lib:/usr/local/lib' And given the USE_NCURSES workaround posted in this thread, that takes to Mk/bsd.ncurses.mk where we have: ... NCURSES_LDFLAGS+= -rpath=${NCURSESRPATH} .if defined(LDFLAGS) LDFLAGS+=${NCURSES_LDFLAGS} .else LDFLAGS=${NCURSES_LDFLAGS} .endif CONFIGURE_ENV+= LDFLAGS=${LDFLAGS} ... I think that the above line overrides whatever is set in the port's Makefile. Plausible - because there would be two different LDFLAGS=mumble options in CONFIGURE_ENV, can you check that? make -V CONFIGURE_ENV or make -n do-configureshould reveal that. Note that LDFLAGS isn't used by bsd.port.mk itself, in contrast to CPPFLAGS, so that ports can't be expected to set this variable either. That makes bsd.ncurses.mk incompatible with a few more ports than just guile I suppose... Cc'ing bapt@.It appears diligent to look at all ports that set USE_NCURSES. (Still the other observed port inconsistencies should get fixed, too.) -- Matthias Andree ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
2011/6/1 Matthias Andree matthias.and...@gmx.de: Am 01.06.2011 15:57, schrieb Andriy Gapon: on 01/06/2011 16:19 Christoph Moench-Tegeder said the following: Ah, yes, LDFLAGS. The port's Makefile already has LDFLAGS=-L${LOCALBASE}/lib in $CONFIGURE_ENV, and as guile's configure BTW, I think that CONFIGURE_ENV in the port's Makefile better be set with +=, for safety. Sure, but that doesn't help if you add new varname=value assignments for the same varname - these aren't cumulative as you've shown. is a standard autoconf configure, $LDFLAGS should be picked up (the output of ./configure --help supports this), but... well, it isn't. Looks like LDFLAGS are lost from the environment before configure is run: ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value=' -rpath=/usr/lib:/usr/local/lib' And given the USE_NCURSES workaround posted in this thread, that takes to Mk/bsd.ncurses.mk where we have: ... NCURSES_LDFLAGS+= -rpath=${NCURSESRPATH} .if defined(LDFLAGS) LDFLAGS+=${NCURSES_LDFLAGS} .else LDFLAGS=${NCURSES_LDFLAGS} .endif CONFIGURE_ENV+= LDFLAGS=${LDFLAGS} ... I think that the above line overrides whatever is set in the port's Makefile. Plausible - because there would be two different LDFLAGS=mumble options in CONFIGURE_ENV, can you check that? make -V CONFIGURE_ENV or make -n do-configure should reveal that. Note that LDFLAGS isn't used by bsd.port.mk itself, in contrast to CPPFLAGS, so that ports can't be expected to set this variable either. That makes bsd.ncurses.mk incompatible with a few more ports than just guile I suppose... Cc'ing bapt@. It appears diligent to look at all ports that set USE_NCURSES. (Still the other observed port inconsistencies should get fixed, too.) -- Matthias Andree If someone comes with a better solution for USE_NCURSES please be aware that the solution will also fits with USE_OPENSSL so that the job won't be done twice. Anyway I think the fix is not to add anyflags to configure_env manually (would it be from USE_* of in the ports itself) Maybe LDFLAGS should always be appended to CONFIGURE_ENV has it has been done for CPPFLAGS. regards, Bapt ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
Am 01.06.2011 16:30, schrieb Baptiste Daroussin: If someone comes with a better solution for USE_NCURSES please be aware that the solution will also fits with USE_OPENSSL so that the job won't be done twice. Anyway I think the fix is not to add anyflags to configure_env manually (would it be from USE_* of in the ports itself) Maybe LDFLAGS should always be appended to CONFIGURE_ENV has it has been done for CPPFLAGS. The latter was my idea, too. On the don't add to CONFIGURE_ENV however, this facility has been provided for exactly this purpose for quite a while now, changing policies is a major (possibly disruptive) change. -- Matthias Andree ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
on 01/06/2011 17:24 Baptiste Daroussin said the following: Here is a real fix. if someone can check with the maintainer et commit this that would be great (I can't do it myself before monday) Just in case: the fix does help. I also like your idea about always adding LDFLAGS to CONFIGURE_ENV. --- Makefile31 May 2011 03:49:09 - 1.83 +++ Makefile1 Jun 2011 14:22:04 - @@ -24,8 +24,8 @@ USE_LDCONFIG= yes USE_NCURSES= yes USE_GNOME= gnometarget -CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \ - LDFLAGS=-L${LOCALBASE}/lib +LDFLAGS+= -L${LOCALBASE}/lib +CPPFLAGS+= -I${LOCALBASE}/include GUILE_VER= 1.8 PLIST_SUB= GUILE_VER=${GUILE_VER} -- Andriy Gapon ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: lang/guile build fails for me
2011/6/1 Andriy Gapon a...@freebsd.org: on 01/06/2011 17:24 Baptiste Daroussin said the following: Here is a real fix. if someone can check with the maintainer et commit this that would be great (I can't do it myself before monday) Just in case: the fix does help. I also like your idea about always adding LDFLAGS to CONFIGURE_ENV. --- Makefile 31 May 2011 03:49:09 - 1.83 +++ Makefile 1 Jun 2011 14:22:04 - @@ -24,8 +24,8 @@ USE_LDCONFIG= yes USE_NCURSES= yes USE_GNOME= gnometarget -CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \ - LDFLAGS=-L${LOCALBASE}/lib +LDFLAGS+= -L${LOCALBASE}/lib +CPPFLAGS+= -I${LOCALBASE}/include GUILE_VER= 1.8 PLIST_SUB= GUILE_VER=${GUILE_VER} -- Andriy Gapon Fix committed Bapt ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org