Problem found when building lang/guile2 on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit, running on Apple Powerbook 17". (guile2 required to build audio/audacity) # cd /usr/ports/lang/guile2 # make install clean ===> Building for guile2-2.2.6_1 gmake[1]: Entering directory '/usr/ports/lang/guile2/work/guile-2.2.6' gmake all-recursive gmake[2]: Entering directory '/usr/ports/lang/guile2/work/guile-2.2.6' Making all in lib gmake[3]: Entering directory '/usr/ports/lang/guile2/work/guile-2.2.6/lib' gmake all-recursive gmake[4]: Entering directory '/usr/ports/lang/guile2/work/guile-2.2.6/lib' gmake[5]: Entering directory '/usr/ports/lang/guile2/work/guile-2.2.6/lib' gmake[5]: Nothing to be done for 'all-am'. gmake[5]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.6/lib' gmake[4]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.6/lib' gmake[3]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.6/lib' Making all in meta gmake[3]: Entering directory '/usr/ports/lang/guile2/work/guile-2.2.6/meta' gmake[3]: Nothing to be done for 'all'. gmake[3]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.6/meta' Making all in libguile gmake[3]: Entering directory '/usr/ports/lang/guile2/work/guile-2.2.6/libguile' gmake all-am gmake[4]: Entering directory '/usr/ports/lang/guile2/work/guile-2.2.6/libguile' cat alist.doc array-handle.doc array-map.doc arrays.doc async.doc atomic.doc backtrace.doc boolean.doc bitvectors.doc bytevectors.doc chars.doc control.doc continuations.doc debug.doc deprecated.doc deprecation.doc dynl.doc dynwind.doc eq.doc error.doc eval.doc evalext.doc expand.doc extensions.doc fdes-finalizers.doc feature.doc filesys.doc fluids.doc foreign.doc fports.doc gc-malloc.doc gc.doc gettext.doc generalized-arrays.doc generalized-vectors.doc goops.doc gsubr.doc guardians.doc hash.doc hashtab.doc hooks.doc i18n.doc init.doc ioext.doc keywords.doc list.doc load.doc macros.doc mallocs.doc memoize.doc modules.doc numbers.doc objprop.doc options.doc pairs.doc ports.doc print.doc procprop.doc procs.doc promises.doc r6rs-ports.doc random.doc rdelim.doc read.doc rw.doc scmsigs.doc script.doc simpos.doc smob.doc sort.doc srcprop.doc srfi-1.doc srfi-4.doc srfi-13.doc srfi-14.doc srfi-60.doc stackchk.doc stacks.doc stime.doc strings.doc strorder.doc strports.doc struct.doc symbols.doc syntax.doc threads.doc throw.doc trees.doc unicode.doc uniform.doc values.doc variable.doc vectors.doc version.doc vports.doc weak-set.doc weak-table.doc weak-vector.doc dynl.doc posix.doc net_db.doc socket.doc regex-posix.doc | GUILE_AUTO_COMPILE=0 ../meta/build-env guild snarf-check-and-output-texi > guile-procedures.texi || { rm guile-procedures.texi; false; } Segmentation fault (core dumped) gmake[4]: *** [Makefile:4281: guile-procedures.texi] Error 1 gmake[4]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.6/libguile' gmake[3]: *** [Makefile:2423: all] Error 2 gmake[3]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.6/libguile' gmake[2]: *** [Makefile:1857: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.6' gmake[1]: *** [Makefile:1743: all] Error 2 gmake[1]: Leaving directory '/usr/ports/lang/guile2/work/guile-2.2.6' *** Error code 1 Stop. make: stopped in /usr/ports/lang/guile2
I also get this error building guile2 - same platform powerpc.
I am also seeing the exact same failure. FreeBSD 12.1-RELEASE-p1 powerpc 32 bit, running on Apple Mac Mini G4.
I was able to compile guile2 - I downgraded texinfo to texinfo-6.6_4.1 then guile2 compilation and doc build finishes. Hope this helps.
However, the latest guile2 build still fails with the above segmentation fault
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=7293b03198af1de8be6302461a08c431330d4aa9 commit 7293b03198af1de8be6302461a08c431330d4aa9 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-11-16 12:03:38 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-11-16 12:03:38 +0000 lang/guile2: fix build on powerpc Upstream bug at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38772 PR: 242769 Reported by: canardo909@gmx.com lang/guile2/Makefile | 1 + 1 file changed, 1 insertion(+)
Unfortunately, this fix doesn't work for lang/guile. It fails later with another error: gmake[3]: Entering directory '/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7/bootstrap' GUILE_AUTO_COMPILE=0 \ ../meta/build-env \ guild compile --target="powerpc-portbld-freebsd13.0" \ -W0 -O1 \ -L "/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7/module" \ -L "/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7/guile-readline" \ -o "ice-9/eval.go" "../module/ice-9/eval.scm" wrote `ice-9/eval.go' GUILE_AUTO_COMPILE=0 \ ../meta/build-env \ guild compile --target="powerpc-portbld-freebsd13.0" \ -W0 -O1 \ -L "/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7/module" \ -L "/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7/guile-readline" \ -o "ice-9/psyntax-pp.go" "../module/ice-9/psyntax-pp.scm" wrote `ice-9/psyntax-pp.go' GUILE_AUTO_COMPILE=0 \ ../meta/build-env \ guild compile --target="powerpc-portbld-freebsd13.0" \ -W0 -O1 \ -L "/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7/module" \ -L "/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7/guile-readline" \ -o "language/tree-il/compile-bytecode.go" "../module/language/tree-il/compile-bytecode.scm" wrote `language/tree-il/compile-bytecode.go' GUILE_AUTO_COMPILE=0 \ ../meta/build-env \ guild compile --target="powerpc-portbld-freebsd13.0" \ -W0 -O1 \ -L "/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7/module" \ -L "/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7/guile-readline" \ -o "ice-9/boot-9.go" "../module/ice-9/boot-9.scm" Backtrace: 19 (_ #<procedure 53c463d0 at ice-9/eval.scm:330:13 ()> # #) 18 (_ #<procedure 53c47f60 at ice-9/eval.scm:330:13 ()> # #) 17 (_ #<procedure 53c47b60 at ice-9/eval.scm:330:13 ()> # #) 16 (_ #<procedure 53cab980 at ice-9/eval.scm:330:13 ()> # #) In ice-9/eval.scm: 619:8 15 (_ #(#(#(#(#(#<directory (system base comp?> ?)) ?) ?) ?)) In unknown file: 14 (_ #<procedure 53cc6120 at ice-9/eval.scm:330:13 ()> # #) 13 (_ #<procedure 53ccb7a0 at ice-9/eval.scm:330:13 ()> # #) In ice-9/eval.scm: 619:8 12 (_ #(#(#<directory (system base compile) 52de3320> # ?))) 196:35 11 (_ #(#(#<directory (system base compile) 52de3320> ?) #)) In unknown file: 10 (_ #<procedure 53cf1dc0 at ice-9/eval.scm:330:13 ()> # #) 9 (_ #<procedure 53d1bd80 at ice-9/eval.scm:330:13 ()> # #) 8 (_ #<procedure 53d1bb40 at ice-9/eval.scm:330:13 ()> # #) In language/tree-il/compile-bytecode.scm: 1388:33 7 (compile-bytecode #<tree-il (seq (if (primcall current?> ?) 635:2 6 (split-closures #<tree-il (seq (if (primcall false? (pr?>) 620:29 5 (failure) 620:16 4 (failure) 577:56 3 (visit #<tree-il (lambda ((name . apply)) (lambda-case ?>) In unknown file: 2 (_ #<procedure 53c7b350 at ice-9/eval.scm:330:13 ()> # #) In ice-9/eval.scm: 619:8 1 (_ #(#(#f #f #<&compound-exception components: (#<&?> ?))) In unknown file: 0 (_ #<procedure 53c82870 at ice-9/eval.scm:330:13 ()> # #) ERROR: In procedure +: Wrong type argument in position 1: #<unknown-immediate (0x1 . 0x2c85) @ 0x51f65724> gmake[3]: *** [Makefile:2132: ice-9/boot-9.go] Error 1 gmake[3]: Leaving directory '/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7/bootstrap' gmake[2]: *** [Makefile:2051: all-recursive] Error 1 gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7' gmake[1]: *** [Makefile:1937: all] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/guile/work/guile-3.0.7'