Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2014 20:07:27 -0600
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        John Nielsen <john@jnielsen.net>
Cc:        freebsd-pkg@FreeBSD.org
Subject:   Re: Poudriere bug report
Message-ID:  <5305635F.1080904@FreeBSD.org>
In-Reply-To: <5FBD8707-CA24-4777-BF86-76C9C2C00942@jnielsen.net>
References:  <5FBD8707-CA24-4777-BF86-76C9C2C00942@jnielsen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--jg1tfJgxIdTQEqu1g4o1P7Xnbh7qwwPTU
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 2/11/2014 12:42 PM, John Nielsen wrote:
> Hello-
>=20
> First off, thanks for all your work on poudriere and pkg, both are alre=
ady making my life easier.
>=20
> I have an amd64 host running FreeBSD 10-STABLE which I use as a build h=
ost for another box with an Alix board (geode processor). I have, among o=
ther settings, "CPUTYPE=3Dgeode" in the make.conf for the poudriere 32-bi=
t Alix jail. I've built packages for the Alix using poudriere before, but=
 today I hit a snag. Running this command:
>=20
> # poudriere options -f /home/john/alix_ports.txt -j alix
>=20
> attempted to build dialog4ports numerous times, and each failed with th=
is error (full text from one failure below):
> error: unknown target CPU 'geode'
>=20
> Since I didn't have dialog4ports installed on the host, I assume the "m=
ake config" job was trying to build it--apparently using the jail's gener=
ated "make.conf" from /usr/local/etc/poudriere.d/alix-make.conf. The 64-b=
it host doesn't know about the 32-bit geode CPU target, so it failed.
>=20
> Probably this doesn't happen very often (I was only missing dialog4port=
s on the host because I pruned a whole bunch of packages prior to a recen=
t upgrade), but building anything for the host using anything other than =
the real /etc/make.conf seems like a bad idea.
>=20
> I was able to work around the problem by installing dialog4ports on the=
 host myself before invoking "poudriere options". There are obviously a f=
ew ways to prevent this from happening, but here is my suggestion:
>  * check for the existence of dialog4ports on the host before allowing =
"poudriere options" to run

I went with this option for now. Fixed for next version.

>  * If it doesn't exist, fail with an error message suggesting that the =
user either install dialog4ports on the host via "pkg install" or other m=
eans, or allow poudriere to work around the problem
>  * add a flag or command to poudriere allowing it to build and install =
dialog4ports using the host's /etc/make.conf and whatever ports tree the =
user specifies (or poudriere's "default" tree by default), either separat=
ely from or prior to "poudriere options".
>=20
> Thanks!
>=20
> JN
>=20
>=20
> =3D=3D=3D> Setting user-specified options for links-2.8,1 and dependenc=
ies
> =3D=3D=3D> Building/installing dialog4ports as it is required for the c=
onfig dialog
> =3D=3D=3D>  Cleaning for dialog4ports-0.1.5_2
> =3D=3D=3D>  License BSD2CLAUSE accepted by the user
> =3D=3D=3D>   dialog4ports-0.1.5_2 depends on file: /usr/local/sbin/pkg =
- found
> =3D=3D=3D> Fetching all distfiles required by dialog4ports-0.1.5_2 for =
building
> =3D=3D=3D>  Extracting for dialog4ports-0.1.5_2
> =3D> SHA256 Checksum OK for dialog4ports-0.1.5.tar.gz.
> =3D=3D=3D>  Patching for dialog4ports-0.1.5_2
> =3D=3D=3D>  Configuring for dialog4ports-0.1.5_2
> =3D=3D=3D>  Building for dialog4ports-0.1.5_2
> --- objwarn ---
> --- dialog4ports.o ---
> --- objwarn ---
> Warning: Object directory not changed from original /opt/local/poudrier=
e/ports/default/ports-mgmt/dialog4ports/work/dialog4ports-0.1.5
> --- mixedlist.o ---
> --- dialog4ports.o ---
> cc -O2 -pipe -DNO_MALLOC_EXTRAS -march=3Dgeode -fno-strict-aliasing  -s=
td=3Dgnu99 -Qunused-arguments  -fstack-protector -Wsystem-headers -Werror=
 -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmis=
sing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings=
 -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Win=
line -Wnested-externs -Wredundant-decls -Wold-style-definition -Wmissing-=
variable-declarations -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-=
int -c dialog4ports.c
> --- mixedlist.o ---
> cc -O2 -pipe -DNO_MALLOC_EXTRAS -march=3Dgeode -fno-strict-aliasing  -s=
td=3Dgnu99 -Qunused-arguments  -fstack-protector -Wsystem-headers -Werror=
 -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmis=
sing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings=
 -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Win=
line -Wnested-externs -Wredundant-decls -Wold-style-definition -Wmissing-=
variable-declarations -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-=
int -c mixedlist.c
> --- dialog4ports.o ---
> error: unknown target CPU 'geode'
> *** [dialog4ports.o] Error code 1
>=20
> make[5]: stopped in /opt/local/poudriere/ports/default/ports-mgmt/dialo=
g4ports/work/dialog4ports-0.1.5
> --- mixedlist.o ---
> error: unknown target CPU 'geode'
> *** [mixedlist.o] Error code 1
>=20
> make[5]: stopped in /opt/local/poudriere/ports/default/ports-mgmt/dialo=
g4ports/work/dialog4ports-0.1.5
> 2 errors
>=20
> make[5]: stopped in /opt/local/poudriere/ports/default/ports-mgmt/dialo=
g4ports/work/dialog4ports-0.1.5
> =3D=3D=3D> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the fail=
ure to
> the maintainer.
> *** Error code 1
>=20
> Stop.
> make[4]: stopped in /opt/local/poudriere/ports/default/ports-mgmt/dialo=
g4ports
> *** Error code 1
>=20
> Stop.
> make[3]: stopped in /opt/local/poudriere/ports/default/ports-mgmt/dialo=
g4ports
>=20


--=20
Regards,
Bryan Drewery


--jg1tfJgxIdTQEqu1g4o1P7Xnbh7qwwPTU
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTBWNfAAoJEDXXcbtuRpfPFTIIALxqC+jureGjhUiuEK+WizWW
hX7CsjffBbxFIPo/Pdg47DwbqBsHPY4TwyHCQghTUxRZjFhqm07zBkd3qq8XX5dX
zYRuKFhUvjonCMZ3hecsAKPvUp4/W5MkoWkIfjp+MK3P7EP/7EUaYHDUqGhYd7nK
+0ghP6ECiE2v2/whX6pmsrNowsG8DowwP12lY3X7REvf6+djzEbPga3J8yilK2Ya
Psg3sKe+V6fPzjQTXq19a0SWgW9Vxcfl0QUCKm2IeeH0ABBmhsQh1zqCxcffF5xs
e4J0YOtDNoZDGizaTyx5hCXHXEwtGrBDlLhbkO1k0Q8jhGnTC+H03mc7O0cPIT8=
=L7WK
-----END PGP SIGNATURE-----

--jg1tfJgxIdTQEqu1g4o1P7Xnbh7qwwPTU--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5305635F.1080904>