I could use some help compiling xorg for my iBook G4

MarkG108

Member

Reaction score: 2
Messages: 35

Thanks for the suggestion. Yeah, it's a bit tricky transcribing the code since I'm using two different laptops, that being the iBook G4 (without xwindows) and another one to access this site.

Anyway, I decided to reinstall the system on the iBook G4, and then, without upgrading anything, immediately install llmv80, which if successful, I gather will set the stage for a successful install of xorg. It's been compiling for hours and is still going now.
[edit]
Well, that failed..
 

MarkG108

Member

Reaction score: 2
Messages: 35

Save the patch as /tmp/dumpfile.c.patch

Go back to your file location where it's located (in /usr/ports/lang/gcc9/work somewhere) and rename your backup copy of dumpfile.c to dumpfile.c
Stay in that directory.

Now run the following:

Code:
$ script /tmp/my_log

$ patch -C /tmp/dumpfile.c.patch

$ exit
Then post the /tmp/my_log to here.
Okay, so I did that and I'm now running patch -C /tmp/dumpfile.c.patch, but it's frozen.

Code:
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # script /tmp/my_log
Script started, output file is /tmp/my_log
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # patch -C /tmp/dumpfile.c.patch
It seems to be still processing it, which is odd. I'll continue waiting.

[edit]
Well, I waited over thirty minutes, and nothing happened. I had to press Ctrl-C to stop it. Here's my_log:
Code:
Script started on Fri Mar 20 02:36:39 2020
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # patch -C /tmp/dumpfile.c.patch^M^M
^M
exit^M
^X^CYou have new mail.^M
 

MarkG108

Member

Reaction score: 2
Messages: 35

Well, I went to the patching style I used previously. I created another script file:
Code:
Script started on Fri Mar 20 04:07:19 2020
You have mail.
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # diff -u dumpfile.c /tmp/dumpfile.c.patch > prepatch.diff
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # patch dumpfile.c < prepatch.diff
Hmm...      Looks like a unified diff to me...
The text leading up to this was:
---------------------------------
|--- dumpfile.c 2019-01-30 02:18:22.000000000 -0500
|*** /tmp/dumpfile.c.patch           2020-03-20 02:26:17.855403000 -0400
---------------------------------
Patching file dumpfile.c using Plan A...
Hunk #1 succeeded at 1.
done^M
[edit]
Nuts, I think I got it backwards. Okay, I renamed "prepatch.diff" to dumpfile.c. I'll now try to make and install gcc9 (and follow it with a script.)

Okay, here was the feedback:
Code:
Script started on Fri Mar 20 04:44:27 2020
You have mail.
root@machine1:/usr/ports/lang/gcc9 # make install clean 
===>  Building for gcc9-9.2.0
gmake[2]: Entering directory '/usr/ports/lang/gcc9/work/.build'
echo stage3 > stage_final
gmake[3]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build'
rm -f stage_current
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libiberty'
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/libiberty/testsuite'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libiberty/testsuite'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libiberty'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake  all-am
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/intl'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/intl'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty'
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty/testsuite'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty/testsuite'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/fixincludes'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/fixincludes'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libcpp'
test -f config.h || (rm -f stamp-h1 && gmake stamp-h1)
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libcpp'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake  all-am
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
true  DO=all multi-do # gmake
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libcpp'
test -f config.h || (rm -f stamp-h1 && gmake stamp-h1)
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libcpp'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libdecnumber'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libdecnumber'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/gcc'
c++ -std=gnu++98 -fno-PIE -c   -g -DIN_GCC    -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/. -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../include -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libcpp/include -I/usr/local/include  -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libdecnumber -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libbacktrace  -DLIBICONV_PLUG -o insn-emit.o -MT insn-emit.o -MMD -MP -MF ./.deps/insn-emit.TPo insn-emit.c
/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/config/rs6000/rs6000.md:5933: error: integer constant is too large for 'long' type
gmake[5]: *** [Makefile:1116: insn-emit.o] Error 1
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/gcc'
gmake[4]: *** [Makefile:4662: all-stage1-gcc] Error 2
gmake[4]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[3]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[3]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/gcc9
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/gcc9
root@machine1:/usr/ports/lang/gcc9 #
 

mark_j

Well-Known Member

Reaction score: 124
Messages: 378

Okay, so I did that and I'm now running patch -C /tmp/dumpfile.c.patch, but it's frozen.

Code:
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # script /tmp/my_log
Script started, output file is /tmp/my_log
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # patch -C /tmp/dumpfile.c.patch
It seems to be still processing it, which is odd. I'll continue waiting.

[edit]
Well, I waited over thirty minutes, and nothing happened. I had to press Ctrl-C to stop it. Here's my_log:
Code:
Script started on Fri Mar 20 02:36:39 2020
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # patch -C /tmp/dumpfile.c.patch^M^M
^M
exit^M
^X^CYou have new mail.^M
Sorry, I didn't get an email to advise me you'd replied. This forum software's flakey in that regard. :(
patch -C < /tmp/dumpfile.c.patch

That's my mistake. I'm sorry about that. I forgot the redirection... eek. :'‑(
 

mark_j

Well-Known Member

Reaction score: 124
Messages: 378

Thanks for the suggestion. Yeah, it's a bit tricky transcribing the code since I'm using two different laptops, that being the iBook G4 (without xwindows) and another one to access this site.

Anyway, I decided to reinstall the system on the iBook G4, and then, without upgrading anything, immediately install llmv80, which if successful, I gather will set the stage for a successful install of xorg. It's been compiling for hours and is still going now.
[edit]
Well, that failed..
I think the problem is that xorg requires gcc, not clang.
 

mark_j

Well-Known Member

Reaction score: 124
Messages: 378

Well, I went to the patching style I used previously. I created another script file:
Code:
Script started on Fri Mar 20 04:07:19 2020
You have mail.
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # diff -u dumpfile.c /tmp/dumpfile.c.patch > prepatch.diff
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # patch dumpfile.c < prepatch.diff
Hmm...      Looks like a unified diff to me...
The text leading up to this was:
---------------------------------
|--- dumpfile.c 2019-01-30 02:18:22.000000000 -0500
|*** /tmp/dumpfile.c.patch           2020-03-20 02:26:17.855403000 -0400
---------------------------------
Patching file dumpfile.c using Plan A...
Hunk #1 succeeded at 1.
done^M
[edit]
Nuts, I think I got it backwards. Okay, I renamed "prepatch.diff" to dumpfile.c. I'll now try to make and install gcc9 (and follow it with a script.)

Okay, here was the feedback:
Code:
Script started on Fri Mar 20 04:44:27 2020
You have mail.
root@machine1:/usr/ports/lang/gcc9 # make install clean
===>  Building for gcc9-9.2.0
gmake[2]: Entering directory '/usr/ports/lang/gcc9/work/.build'
echo stage3 > stage_final
gmake[3]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build'
rm -f stage_current
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libiberty'
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/libiberty/testsuite'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libiberty/testsuite'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libiberty'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake  all-am
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/intl'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/intl'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty'
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty/testsuite'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty/testsuite'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/fixincludes'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/fixincludes'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libcpp'
test -f config.h || (rm -f stamp-h1 && gmake stamp-h1)
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libcpp'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake  all-am
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
true  DO=all multi-do # gmake
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libcpp'
test -f config.h || (rm -f stamp-h1 && gmake stamp-h1)
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libcpp'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libdecnumber'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libdecnumber'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/gcc'
c++ -std=gnu++98 -fno-PIE -c   -g -DIN_GCC    -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/. -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../include -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libcpp/include -I/usr/local/include  -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libdecnumber -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/../libbacktrace  -DLIBICONV_PLUG -o insn-emit.o -MT insn-emit.o -MMD -MP -MF ./.deps/insn-emit.TPo insn-emit.c
/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/config/rs6000/rs6000.md:5933: error: integer constant is too large for 'long' type
gmake[5]: *** [Makefile:1116: insn-emit.o] Error 1
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/gcc'
gmake[4]: *** [Makefile:4662: all-stage1-gcc] Error 2
gmake[4]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[3]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[3]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/gcc9
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/gcc9
root@machine1:/usr/ports/lang/gcc9 #
Please also collect the output of freebsd-version and uname -a and post it in here. Thanks.
 

T-Daemon

Aspiring Daemon

Reaction score: 324
Messages: 797

This morning, reading this thread, I was thinking it must be quit slow building (trying to build) large ports like devel/llvm80 on PowerPc G4. The idea I had was building with ports-mgmt/poudriere on a fast system, with ZFS, devel/ccache and all the trimmings, packages for powerpc. It doesn't help with the current lang/gcc9 problem directly, but maybe indirect it does, see below.

Web searching "freebsd poudriere powerpc jail" got me to this recent mail at the freebsd-ppc@freebsd.org mailing list, title, hold on, "Building powerpc (32-bit) packages on amd64", with howto included. In the following mail from Gustavo Romero is a claim that he was able to "build of gcc9 on ppc32 G4 and hit[ting] a couple of issues which I [he] was able to work around."!!

I suggest you join the freebsd-ppc@freebsd.org list, and the thread, ask there, eventually ask Gustav Romero directly. Chances are high to get the gcc9 problem resolved, and maybe you find the idea of building packages on a faster system appealing.

If you can resolve the problem on the mailing list, please post your findings.
 

mark_j

Well-Known Member

Reaction score: 124
Messages: 378

Yes, it's a good thought. I do that with aarch64 stuff and with a quad core and a few spinning rust disks, it takes well over 4 days to compile GCC.
Cross compiling on FreeBSD (unless you have access to some swift systems) is horrible at best.
However, saying all that, it would probably be faster than running it on a 32bit PowerPC which were never that good even when new.
 

MarkG108

Member

Reaction score: 2
Messages: 35

There's also problems with perl5-5.30. It fails to upgrade.
Code:
root@machine1:/usr/ports # portmaster lang/perl5.30  
]0;portmaster: perl5-5.30.0 
===>>> Currently installed version: perl5-5.30.0 
===>>> Port directory: /usr/ports/lang/perl5.30 
 
===>>> Gathering distinfo list for installed ports 
 
===>>> Launching 'make checksum' for lang/perl5.30 in background 
===>>> Gathering dependency list for lang/perl5.30 from ports 
===>>> Initial dependency check complete for lang/perl5.30 
 
]0;portmaster: perl5-5.30.0 
===>>> Starting build for lang/perl5.30 <<<=== 
 
===>>> All dependencies are up to date 
 
===>  Cleaning for perl5-5.30.2 
===>  License ART10 GPLv1+ accepted by the user 
===>   perl5-5.30.2 depends on file: /usr/local/sbin/pkg - found 
===> Fetching all distfiles required by perl5-5.30.2 for building 
===>  Extracting for perl5-5.30.2 
=> SHA256 Checksum OK for perl/perl-5.30.2.tar.xz. 
/bin/ln -s libperl.so.5.30.2 /usr/ports/lang/perl5.30/work/perl-5.30.2/libperl.so 
/bin/ln -s libperl.so.5.30.2 /usr/ports/lang/perl5.30/work/perl-5.30.2/libperl.so.5.30 
===>  Patching for perl5-5.30.2 
===>  Applying FreeBSD patches for perl5-5.30.2 
/usr/bin/sed -i.bak -e 's|/usr/local|/usr/local|g'  /usr/ports/lang/perl5.30/work/perl-5.30.2/Configure /usr/ports/lang/perl5.30/work/perl-5.30.2/hints/freebsd.sh 
===>  Configuring for perl5-5.30.2 
First let's make sure your kit is complete.  Checking... 
Locating common programs... 
Checking compatibility between /bin/echo and builtin echo (if any)... 
Symbolic links are supported. 
Checking how to test for symbolic links... 
You can test for symbolic links with 'test -h'. 
Checking for cross-compile 
No targethost for running compiler tests against defined, running locally 
Good, your tr supports [:lower:] and [:upper:] to convert case. 
Using [:upper:] and [:lower:] to convert case.

[..]

    Making utilities 
../miniperl -I../lib encguess.PL 
Extracting encguess (with variable substitutions) 
../miniperl -I../lib corelist.PL 
Extracting corelist (with variable substitutions) 
../miniperl -I../lib cpan.PL 
Extracting cpan (with variable substitutions) 
../miniperl -I../lib h2ph.PL 
Extracting h2ph (with variable substitutions) 
../miniperl -I../lib h2xs.PL 
Extracting h2xs (with variable substitutions) 
../miniperl -I../lib instmodsh.PL 
Extracting instmodsh (with variable substitutions) 
../miniperl -I../lib json_pp.PL 
Extracting json_pp (with variable substitutions) 
../miniperl -I../lib perlbug.PL 
Extracting perlbug (with variable substitutions) 
../miniperl -I../lib perldoc.PL 
Extracting "perldoc" (with variable substitutions) 
../miniperl -I../lib perlivp.PL 
Extracting perlivp (with variable substitutions) 
../miniperl -I../lib pl2pm.PL 
Extracting pl2pm (with variable substitutions) 
../miniperl -I../lib prove.PL 
Extracting prove (with variable substitutions) 
../miniperl -I../lib ptar.PL 
Extracting ptar (with variable substitutions) 
../miniperl -I../lib ptardiff.PL 
Extracting ptardiff (with variable substitutions) 
../miniperl -I../lib ptargrep.PL 
Extracting ptargrep (with variable substitutions) 
../miniperl -I../lib shasum.PL 
Extracting shasum (with variable substitutions) 
../miniperl -I../lib splain.PL 
Extracting splain (with variable substitutions) 
../miniperl -I../lib libnetcfg.PL 
Extracting libnetcfg (with variable substitutions) 
../miniperl -I../lib piconv.PL 
Extracting piconv (with variable substitutions) 
../miniperl -I../lib enc2xs.PL 
Extracting enc2xs (with variable substitutions) 
../miniperl -I../lib xsubpp.PL 
Extracting xsubpp (with variable substitutions) 
../miniperl -I../lib pod2html.PL 
Extracting pod2html (with variable substitutions) 
../miniperl -I../lib zipdetails.PL 
Extracting zipdetails (with variable substitutions) 
LD_LIBRARY_PATH=/usr/ports/lang/perl5.30/work/perl-5.30.2 ./miniperl -Ilib make_ext.pl lib/auto/Math/BigInt/FastCalc/FastCalc.so  MAKE="/usr/bin/make" LIBPERL_A=libperl.so.5.30.2 LINKTYPE=dynamic 
Generating a Unix-style Makefile 
Writing Makefile for Math::BigInt::FastCalc 
"../../miniperl" "-I../../lib" "../../lib/ExtUtils/xsubpp"  -typemap '/usr/ports/lang/perl5.30/work/perl-5.30.2/cpan/Math-BigInt-FastCalc/../../lib/ExtUtils/typemap'  FastCalc.xs > FastCalc.xsc 
mv FastCalc.xsc FastCalc.c 
Running Mkbootstrap for FastCalc () 
chmod 644 "FastCalc.bs" 
cc -c    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -Wall -Werror=declaration-after-statement -Werror=pointer-arith -Wextra -Wc++-compat -Wwrite-strings -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -DVERSION=\"0.5008\"  -DXS_VERSION=\"0.5008\" -DPIC -fPIC "-I../.."   FastCalc.c 
/usr/ports/lang/perl5.30/work/perl-5.30.2/cpan/Math-BigInt-FastCalc/../../miniperl "-I../../lib" -MExtUtils::Command::MM -e 'cp_nonempty' -- FastCalc.bs ../../lib/auto/Math/BigInt/FastCalc/FastCalc.bs 644 
rm -f ../../lib/auto/Math/BigInt/FastCalc/FastCalc.so 
cc  -shared  -L/usr/ports/lang/perl5.30/work/perl-5.30.2 -L/usr/local/lib/perl5/5.30/mach/CORE -lperl -L/usr/local/lib -fstack-protector-strong  FastCalc.o  -o ../../lib/auto/Math/BigInt/FastCalc/FastCalc.so         
chmod 755 ../../lib/auto/Math/BigInt/FastCalc/FastCalc.so 
LD_LIBRARY_PATH=/usr/ports/lang/perl5.30/work/perl-5.30.2  ./perl -Ilib -I. -f pod/buildtoc -q 
pod/buildtoc: Perl lib version (5.30.2) doesn't match executable '/usr/ports/lang/perl5.30/work/perl-5.30.2/perl' version (5.30.0) at lib/Config.pm line 62. 
Compilation failed in require at lib/locale.pm line 4. 
BEGIN failed--compilation aborted at lib/locale.pm line 4. 
Compilation failed in require at pod/buildtoc line 10. 
BEGIN failed--compilation aborted at pod/buildtoc line 10. 
*** [pod/perltoc.pod] Error code 255 
 
make[2]: stopped in /usr/ports/lang/perl5.30/work/perl-5.30.2 
1 error 
 
make[2]: stopped in /usr/ports/lang/perl5.30/work/perl-5.30.2 
===> Compilation failed unexpectedly. 
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to 
the maintainer. 
*** Error code 1 
 
Stop. 
make[1]: stopped in /usr/ports/lang/perl5.30 
*** Error code 1 
 
Stop. 
make: stopped in /usr/ports/lang/perl5.30 
 
===>>> make build failed for lang/perl5.30 
===>>> Aborting update 
 
 
===>>> You can restart from the point of failure with this command line: 
       portmaster <flags> lang/perl5.30  
 
This command has been saved to ~/portmasterfail.txt 
 
root@machine1:/usr/ports #
 

mark_j

Well-Known Member

Reaction score: 124
Messages: 378

Did you apply the patch? Is gcc compiling?

As to perl, maybe try export PERL5LIB=/usr/ports/lang/perl5.30/work/perl-5.30.2 then run it again?
If you're running csh/tcsh then setenv PERL5LIB /usr/ports/lang/perl5.30/work/perl-5.30.2
or perhaps:
Is there a packaged version of perl5 or is it a port? For the former remove it, for the later deinstall it then go to /usr/ports/lang/perl5 and make after either exporting or setenv-ing (a new word for today) MAKE_JOBS_UNSAFE=yes
 

MarkG108

Member

Reaction score: 2
Messages: 35

Regarding perl, the portmaster -m MAKE_JOBS_UNSAFE=yes command did work. The "export" command wasn't even found, and "setenv" command did not work.

Regarding gcc9, the patch did not work. Here is the log:
Code:
Script started on Sat Mar 21 13:44:11 2020
You have mail.
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # patch -C < /tmp/dumpfile.c.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|index 73a8f85..fc17fe9 100644
|--- a/gcc/dumpfile.c
|+++ b/gcc/dumpfile.c
--------------------------
Patching file dumpfile.c using Plan A...
Hunk #1 succeeded at 2055 (offset -21 lines).
done
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # cd ..
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0 # cd ..
root@machine1:/usr/ports/lang/gcc9/work # cd ..
root@machine1:/usr/ports/lang/gcc9 # make install clean
===>  Building for gcc9-9.2.0_1
gmake[2]: Entering directory '/usr/ports/lang/gcc9/work/.build'
echo stage3 > stage_final
gmake[3]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build'
rm -f stage_current
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libiberty'
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/libiberty/testsuite'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libiberty/testsuite'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libiberty'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake  all-am
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/intl'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/intl'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty'
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty/testsuite'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty/testsuite'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/fixincludes'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/fixincludes'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libcpp'
test -f config.h || (rm -f stamp-h1 && gmake stamp-h1)
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libcpp'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake  all-am
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
true  DO=all multi-do # gmake
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libcpp'
test -f config.h || (rm -f stamp-h1 && gmake stamp-h1)
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libcpp'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libdecnumber'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libdecnumber'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/gcc'
/usr/ports/lang/gcc9/work/.build/./gcc/xgcc -B/usr/ports/lang/gcc9/work/.build/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-test=/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/testsuite/selftests
[01m[Kcc1:[m[K [01;31m[Kinternal compiler error: [m[KSegmentation fault
no stack trace because unwind library not available
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
gmake[5]: *** [/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/c/Make-lang.in:124: s-selftest-c] Error 1
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/gcc'
gmake[4]: *** [Makefile:4662: all-stage1-gcc] Error 2
gmake[4]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[3]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[3]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/gcc9
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/gcc9
root@machine1:/usr/ports/lang/gcc9 # ^Dexit

Script done on Sat Mar 21 13:48:08 2020
 

MarkG108

Member

Reaction score: 2
Messages: 35

I also tried portmaster -m MAKE_JOBS_UNSAFE=yes within /usr/ports/lang/gcc9 and that did not work. It reported a "Segmentation fault".
 

acheron

Aspiring Daemon
Developer

Reaction score: 253
Messages: 659

Have you patched it after building it? You have to do the reverse, apply the patch and the build it.
 

mark_j

Well-Known Member

Reaction score: 124
Messages: 378

Have you patched it after building it? You have to do the reverse, apply the patch and the build it.
Yes it's weird because the patch is reported to fix the problem. Something's not right.
 

mark_j

Well-Known Member

Reaction score: 124
Messages: 378

Regarding perl, the portmaster -m MAKE_JOBS_UNSAFE=yes command did work. The "export" command wasn't even found, and "setenv" command did not work.

Regarding gcc9, the patch did not work. Here is the log:
Code:
Script started on Sat Mar 21 13:44:11 2020
You have mail.
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # patch -C < /tmp/dumpfile.c.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|index 73a8f85..fc17fe9 100644
|--- a/gcc/dumpfile.c
|+++ b/gcc/dumpfile.c
--------------------------
Patching file dumpfile.c using Plan A...
Hunk #1 succeeded at 2055 (offset -21 lines).
done
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc # cd ..
root@machine1:/usr/ports/lang/gcc9/work/gcc-9.2.0 # cd ..
root@machine1:/usr/ports/lang/gcc9/work # cd ..
root@machine1:/usr/ports/lang/gcc9 # make install clean
===>  Building for gcc9-9.2.0_1
gmake[2]: Entering directory '/usr/ports/lang/gcc9/work/.build'
echo stage3 > stage_final
gmake[3]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build'
rm -f stage_current
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[4]: Entering directory '/usr/ports/lang/gcc9/work/.build'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libiberty'
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/libiberty/testsuite'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libiberty/testsuite'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libiberty'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake  all-am
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/lto-plugin'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/intl'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/intl'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty'
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty/testsuite'
gmake[6]: Nothing to be done for 'all'.
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty/testsuite'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libiberty'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/fixincludes'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/fixincludes'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libcpp'
test -f config.h || (rm -f stamp-h1 && gmake stamp-h1)
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/build-powerpc-portbld-freebsd12.1/libcpp'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake  all-am
gmake[6]: Entering directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
true  DO=all multi-do # gmake
gmake[6]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libbacktrace'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libcpp'
test -f config.h || (rm -f stamp-h1 && gmake stamp-h1)
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libcpp'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/libdecnumber'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/libdecnumber'
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/gcc'
/usr/ports/lang/gcc9/work/.build/./gcc/xgcc -B/usr/ports/lang/gcc9/work/.build/./gcc/ -xc -nostdinc /dev/null -S -o /dev/null -fself-test=/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/testsuite/selftests
[01m[Kcc1:[m[K [01;31m[Kinternal compiler error: [m[KSegmentation fault
no stack trace because unwind library not available
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
gmake[5]: *** [/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/c/Make-lang.in:124: s-selftest-c] Error 1
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/gcc'
gmake[4]: *** [Makefile:4662: all-stage1-gcc] Error 2
gmake[4]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[3]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[3]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/gcc9
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/gcc9
root@machine1:/usr/ports/lang/gcc9 # ^Dexit

Script done on Sat Mar 21 13:48:08 2020
Export/setenv are shell commands not portmaster commands.
 

mark_j

Well-Known Member

Reaction score: 124
Messages: 378

I just noticed, you're still using -C in the patch command. That was there to test if the patch would apply. You need to remove that and actually apply the patch. The make the port.
 

MarkG108

Member

Reaction score: 2
Messages: 35

Removing the "-C" from the command seems to have properly patched it. I'm now building gcc9 ( make install clean) and it's taking a long time. That is promising, given that before it would quickly reject the proposition, citing errors. I'll report later if it succeeds.
 

MarkG108

Member

Reaction score: 2
Messages: 35

Great news! gcc9 installed successfully. Now time to see if llvm80 will also install, and then XOrg.
 

MarkG108

Member

Reaction score: 2
Messages: 35

I feel like I've gone full circle. llvm80 fails to install due to issues with python, specifically, it wants python 37, but python 37 won't install due to the presence of python 36.

Code:
root@machine1:/usr/ports/devel/llvm80 # make install clean  
===>   llvm80-8.0.1_3 depends on executable: sphinx-build-3.7 - not found 
===>   py37-sphinx-1.6.5_2,1 depends on package: py37-Jinja2>=2.3 - not found 
===>   py37-Jinja2-2.10.1 depends on package: py37-setuptools>0 - not found 
===>  Installing for py37-setuptools-44.0.0 
===>  Checking if py37-setuptools is already installed 
===>   Registering installation for py37-setuptools-44.0.0 as automatic 
Installing py37-setuptools-44.0.0... 
pkg-static: py37-setuptools-44.0.0 conflicts with py36-setuptools-41.2.0 (installs files into the same place).  Problematic file: /usr/local/bin/easy_install 
*** Error code 70 
 
Stop. 
make[5]: stopped in /usr/ports/devel/py-setuptools 
*** Error code 1 
 
Stop. 
make[4]: stopped in /usr/ports/devel/py-Jinja2 
*** Error code 1 
 
Stop. 
make[3]: stopped in /usr/ports/devel/py-Jinja2 
*** Error code 1 
 
Stop. 
make[2]: stopped in /usr/ports/textproc/py-sphinx 
*** Error code 1 
 
Stop. 
make[1]: stopped in /usr/ports/devel/llvm80 
*** Error code 1 
 
Stop. 
make: stopped in /usr/ports/devel/llvm80 
root@machine1:/usr/ports/devel/llvm80 #
 

mark_j

Well-Known Member

Reaction score: 124
Messages: 378

Is python 3.6 required?

Yes, I will preempt your question, it is damn stupid that llvm requires python to build.

Edit: I just looked at freshports, it says dependency is python 3.6. What is your default python3 in /etc/make.conf?
 

MarkG108

Member

Reaction score: 2
Messages: 35

It seems python of some sort is required. Anyway, just to get it built, I created /etc/make.conf and added:
Code:
DEFAULT_VERSIONS+=python=3.6
DEFAULT_VERSIONS+=python3=3.6
I got this from another post. Anyway, it does seem to be building now. I assume this will go on for hours. So, since it's night time here, I'll sleep on it and see how it turns out in the morning.
 

MarkG108

Member

Reaction score: 2
Messages: 35

The internet was disconnected, so it stopped installing llvm80. So, instead, I decided to just try installing X.Org, since the concerns about python seem to be resolved. I started it this morning and, ten hours later, it's about 19% done. It's taking forever.

I assume there are no packages for PowerPC due to its Tier Two status, is that right? I ask simply ask because compiling ports takes such a long time.
 

mark_j

Well-Known Member

Reaction score: 124
Messages: 378

The internet was disconnected, so it stopped installing llvm80. So, instead, I decided to just try installing X.Org, since the concerns about python seem to be resolved. I started it this morning and, ten hours later, it's about 19% done. It's taking forever.

I assume there are no packages for PowerPC due to its Tier Two status, is that right? I ask simply ask because compiling ports takes such a long time.
Look at http://pkg.freebsd.org/.

Your device is 32 bit so no, no packages.

Your only real alternative is to build packages on an Intel box. This too will be horribly slow (cross-compiling on FreeBSD is atrocious) but faster than compiling on a slow old PowerPC 1.2? GHz machine.

Perhaps you want to look at NetBSD?
and their FAQ with links to XFree86 stuff:

Unfortunately, everything not x86/AMD64 on FreeBSD is a second rate (read: badly supported) citizen. Armv8 might get there soon, but a lot of packages are not built for that platform either.
 
Top