Poor state of the build infrastructure.

From: Marcel Moolenaar <marcel_at_xcllnt.net>
Date: Tue, 23 Sep 2014 09:29:48 -0700
Things have regressed from last I tried (which is a while). After a
clean buildworld for PowerPC I can't install it:

# make installworld TARGET_ARCH=powerpc TARGET=powerpc __MAKE_CONF=/dev/null DESTDIR=/tank/scratch/powerpc
mkdir -p /tmp/install.pjtGQ4J8
	:
make[2]: "/tank/scratch/marcelm/head/share/mk/bsd.compiler.mk" line 37: Unable to determine compiler type for cc.  Consider setting COMPILER_TYPE.
*** Error code 1

And look at share/mk/bsd.compiler.mk. Its comments with typos doesn't
even fit 80 character. While technically speaking, not a problem, it
does leave the impression of low quality. This has the unfortunate
side-effect of deepening the low quality perception caused by not
being able to do an installworld in the first place.

So, ok. I add COMPILER_TYPE=fuckthat to the command line and guess
what:

# make installworld TARGET_ARCH=powerpc TARGET=powerpc __MAKE_CONF=/dev/null DESTDIR=/tank/scratch/powerpc COMPILER_TYPE=fuckthat
mkdir -p /tmp/install.pFqalBOs
	:
>>> Making hierarchy
	:
>>> Installing everything
	:
===> lib/csu/powerpc (install)
install -o root -g wheel -m 444  crt1.o crti.o crtn.o Scrt1.o gcrt1.o /tank/scratch/powerpc/usr/lib
install: crt1.o: No such file or directory
*** Error code 71

What???

Ok, let's check if things were build properly:

% make buildenv __MAKE_CONF=/dev/null TARGET=powerpc TARGET_ARCH=powerpc
$ cd lib/csu/powerpc
$ make
	:
cc  -O2 -pipe ... -c crti.S
crti.S:34:13: error: unexpected token in memory operand
 stwu 1,-16(1)
            ^
crti.S:35:2: error: invalid instruction mnemonic 'mflr'
 mflr 0
 ^~~~
crti.S:36:12: error: unexpected token in memory operand
 stw 31,12(1)
           ^
crti.S:37:11: error: unexpected token in memory operand
 stw 0,20(1)
          ^
crti.S:38:2: error: invalid instruction mnemonic 'mr'
 mr 31,1
 ^~
crti.S:45:13: error: unexpected token in memory operand
 stwu 1,-16(1)
            ^
crti.S:46:2: error: invalid instruction mnemonic 'mflr'
 mflr 0
 ^~~~
crti.S:47:12: error: unexpected token in memory operand
 stw 31,12(1)
           ^
crti.S:48:11: error: unexpected token in memory operand
 stw 0,20(1)
          ^
crti.S:49:2: error: invalid instruction mnemonic 'mr'
 mr 31,1
 ^~
*** Error code 1


Grrr...

$ which cc
/usr/bin/cc
$ cc -v
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.1
Thread model: posix
Selected GCC installation: 

So, now even the very questionable but fundamentally non-broken make
buildenv isn't working anymore. How is anyone going to develop for
anything but the host this way. Granted we seriously sucked in this
regard to begin with but we seem to have regressed to the point of
having absolutely no working support whatsoever.

What is going on here?
Are we still in some kind of flux and people aren't done yet or is
this the intended state by virtue of noone having anything left on
there TODO list?

-- 
Marcel Moolenaar
marcel_at_xcllnt.net



Received on Tue Sep 23 2014 - 14:29:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:52 UTC