Re: MFS Meeting. Tue, 20 February. "Compiling: Turning source code into runnable software"

Michael Dorrington <[email protected]> Sat, 24 Feb 2018 20:13:27 +0000
Newsgroups gmane.politics.software.free-software.manchester,gmane.org.fsf.uk
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============4704493652551279733==
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="ChTdGDwINC65b77giaNNgytxmEyRUozng"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--ChTdGDwINC65b77giaNNgytxmEyRUozng
Content-Type: multipart/mixed; boundary="BwUHxIdEyW5UOhdWoa0zNzOfCMLHn9lCK";
 protected-headers="v1"
From: Michael Dorrington <[email protected]>
Reply-To: Manchester Free Software <[email protected]>
To: Manchester Free Software <[email protected]>
Cc: Free Software and the United Kingdom <fsfe-uk-mXXj517/[email protected]>
Message-ID: <cd61bab9-578f-208e-c32d-113c86978d85-IGUgQLVVQiRCV4ILt04nZQ@public.gmane.org>
Subject: Re: MFS Meeting. Tue, 20 February. "Compiling: Turning source code
 into runnable software"
References: <b4b0ebd8-fca9-4fb4-5b05-4ead44b0c4f2-IGUgQLVVQiRCV4ILt04nZQ@public.gmane.org>
In-Reply-To: <b4b0ebd8-fca9-4fb4-5b05-4ead44b0c4f2-IGUgQLVVQiRCV4ILt04nZQ@public.gmane.org>

--BwUHxIdEyW5UOhdWoa0zNzOfCMLHn9lCK
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

=3D=3D CMake =3D=3D

In the talk we covered './configure -> make -> make install' which is
the Autotools based compile workflow.  As we mentioned in the Q&A, an
alternative to the Autotools compile workflow is CMake compile workflow,
which is 'cmake . -> make -> make install'.  CMake is used to build KDE
and Blender, among other projects.  For more information see:

* https://cmake.org/
* https://packages.debian.org/stretch/cmake


=3D=3D Spectre =3D=3D

Intel has released a paper on retpoline and Debian have released an
updated GCC with retpoline capability for Stretch:

*
https://software.intel.com/sites/default/files/managed/1d/46/Retpoline-A-=
Branch-Target-Injection-Mitigation.pdf
* https://www.debian.org/security/2018/dsa-4121


=3D=3D Exercises for the participants =3D=3D

1. Download the source code to GNU Bash using your package manager and
compile it (but don't install).
2. Time the compile with different values of '-j' to make.  (Remember to
make clean each time.)  What is the "best" value?
3. In this compile is it using Bash's malloc or Glibc's malloc?
4. Find out if your GCC has retpoline support or not.


M.

--=20
FSF member #9429
http://www.fsf.org/register_form?referrer=3D9429
http://www.fsf.org/about
"The Free Software Foundation (FSF) is a nonprofit with a worldwide
mission to promote computer user freedom and to defend the rights of all
free software users."


--BwUHxIdEyW5UOhdWoa0zNzOfCMLHn9lCK--

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

-----BEGIN PGP SIGNATURE-----

iQJWBAEBCABAFiEEymnV/lrtCqpNhpze13JsPqr44+8FAlqRx3MiHG1pY2hhZWwu
ZG9ycmluZ3RvbkBtZW1iZXIuZnNmLm9yZwAKCRDXcmw+qvjj76mxEACB6fZxjSOe
L30MYB1eVnlui2wbiltXNMLR7nZ+9tDU2xtkAII2NaYJokOfJ2UCNEDcgBG5mcgA
ANpQCF0sehO/x4gXMgsCPKri7ldTCV5FdYJ+A2tV+vu0X54FVYcjUHwKQPCNcuL5
uiHRWao2am9ZI+zUvNNqNxA+NVynb9Mvo8DowBdDX5+0Zq2ioG40008ra5JGlnFV
GkEARGjDHbI8Mcu9K+fo8ly7I2GZOcYzd0vy6jNrlTYQPsZHNeySWu7lOuVbaIwA
mwG75AMHvuL9TU1MhMoCzPQGBKrIAwl7hqP6cAjQqBAM0Bbaqk65Ujs5iPTEpuce
he29fQJ2WfyQ6cWbHBC14KWDqVS/JrMu5dZlRkO9OpMN/nBhl4BG4OnRMPMmQLRG
sguB/xKrMtEekGO7Y7FeH9yOjWE7+SoSKAHNMAW9AEtBF+CO44/m0rUESXjQn8EX
oBxDS0pVLXUIulUUr/SVttsE/zB/Prv6iSnLl+6j5xS8sZGKhvarO9nsRzIdaq4h
and58smdYCf+ldmL0YbKbtxwISe0PsCqr31p2d7msmEBuvBFQ2UAnjPSWgimv5bC
I53isyE8PTLmoc6RHqZ/Ga0+x6AWTGQZUeoRIFpzkbyR7Sxvxkq4ZLkeVtyHg3io
5bzLtZrK5Ir80+WH6qbtVMK8ZW94t5V34g==
=N9tC
-----END PGP SIGNATURE-----

--ChTdGDwINC65b77giaNNgytxmEyRUozng--


--===============4704493652551279733==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Fsuk-manchester mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fsuk-manchester

--===============4704493652551279733==--