Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2014 09:29:48 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        freebsd-current@freebsd.org
Subject:   Poor state of the build infrastructure.
Message-ID:  <4496BEA3-9F6C-4F09-B8F6-68D97A331A60@xcllnt.net>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_FE144C49-1625-4B8A-81A7-DDAADAF13556
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

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=3Dpowerpc TARGET=3Dpowerpc =
__MAKE_CONF=3D/dev/null DESTDIR=3D/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=3Dfuckthat to the command line and guess
what:

# make installworld TARGET_ARCH=3Dpowerpc TARGET=3Dpowerpc =
__MAKE_CONF=3D/dev/null DESTDIR=3D/tank/scratch/powerpc =
COMPILER_TYPE=3Dfuckthat
mkdir -p /tmp/install.pFqalBOs
	:
>>> Making hierarchy
	:
>>> Installing everything
	:
=3D=3D=3D> 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=3D/dev/null TARGET=3Dpowerpc =
TARGET_ARCH=3Dpowerpc
$ 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:=20

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?

--=20
Marcel Moolenaar
marcel@xcllnt.net



--Apple-Mail=_FE144C49-1625-4B8A-81A7-DDAADAF13556
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAlQhn/wACgkQpgWlLWHuifb4DgCfd79AuI8kcRs0Wctc5bYth4mb
Fs0AnRZ2rS8wCFEfJERPystcVsMaBcUb
=w7WC
-----END PGP SIGNATURE-----

--Apple-Mail=_FE144C49-1625-4B8A-81A7-DDAADAF13556--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4496BEA3-9F6C-4F09-B8F6-68D97A331A60>