Re: minimal gcc configuration for distccd

Martin Pool <[email protected]> Fri, 8 Aug 2014 07:17:36 -0700
Newsgroups gmane.comp.compilers.distcc
Message-ID <CAA9uavACoEF9_-YvShVWJEv6CSuB3=YLJduCDqsWhPVfsbttnA@mail.gmail.com>
--===============8230508763458146325==
Content-Type: multipart/alternative; boundary=089e0122a3f0d2b3d705001edf78

--089e0122a3f0d2b3d705001edf78
Content-Type: text/plain; charset=UTF-8

I don't have any details on what gcc does or doesn't need, but it's a nice
project.


On Fri, Aug 8, 2014 at 6:11 AM, Steven Honeyman <[email protected]>
wrote:

> Hi All,
>
> I've been setting up a build script for a tiny(for modern day
> standards!) initramfs environment so that I can "repurpose" computers
> to use as distccd servers without touching the OS on the hard disk.
>
> This is basically just a trimmed linux kernel, busybox, glibc, gcc,
> and of course distccd (+avahi +dbus, grrr!)
>
> It's working perfectly right now, the size is around 51MB total (using
> latest linux 3.16+gcc4.9.1), but I still want to trim it down further!
> Could someone give me a list of the actual requirements of gcc, for
> distccd to work successfully? I tried randomly plucking files from it
> - not a good idea it seems!
> As I understand it, distccd only should need to be able to compile
> preprocessed files, so should it still work after I remove the linker,
> headers(from libexec), lto-wrapper, etc?
>
> Here's my gcc configure for the current working setup in case there is
> something else I can exclude but haven't found yet:
>
> ../gcc-4.9.1/configure --prefix=/usr --libdir=/usr/lib
> --libexecdir=/usr/lib --mandir=/usr/share/man --enable-languages=c,c++
> --disable-nls --disable-multilib --disable-werror --with-system-zlib
> --enable-clocale=gnu --enable-checking=release --enable-threads=posix
> --without-headers --disable-libatomic --disable-libgomp
> --disable-libitm --disable-libquadmath --disable-libsanitizer
> --disable-libssp --disable-libvtv --disable-libcilkrts
> --disable-libstdcxx --disable-libstdcxx-pch --disable-libstdc++-v3
> --disable-libada --disable-libunwind-exceptions --disable-debug
> --disable-bootstrap --disable-plugin --disable-lto --disable-shared
> --enable-static
>
> I expect gmail will make a mess of that - in my script it is nicely
> broken into smaller lines, I promise!
> Also, one final question I'm almost ashamed I need to ask - will
> leaving cloog and isl out of the build have any effect on the code it
> outputs from preprocessed source... or are they just to optimize the
> compiler itself?
>
>
> Any help or feedback would be appreciated,
>
> Steven.
> __
> distcc mailing list            http://distcc.samba.org/
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/distcc
>



-- 
Martin

--089e0122a3f0d2b3d705001edf78
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I don&#39;t have any details on what gcc does or doesn&#39=
;t need, but it&#39;s a nice project.</div><div class=3D"gmail_extra"><br><=
br><div class=3D"gmail_quote">On Fri, Aug 8, 2014 at 6:11 AM, Steven Honeym=
an <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I&#39;ve been setting up a build script for a tiny(for modern day<br>
standards!) initramfs environment so that I can &quot;repurpose&quot; compu=
ters<br>
to use as distccd servers without touching the OS on the hard disk.<br>
<br>
This is basically just a trimmed linux kernel, busybox, glibc, gcc,<br>
and of course distccd (+avahi +dbus, grrr!)<br>
<br>
It&#39;s working perfectly right now, the size is around 51MB total (using<=
br>
latest linux 3.16+gcc4.9.1), but I still want to trim it down further!<br>
Could someone give me a list of the actual requirements of gcc, for<br>
distccd to work successfully? I tried randomly plucking files from it<br>
- not a good idea it seems!<br>
As I understand it, distccd only should need to be able to compile<br>
preprocessed files, so should it still work after I remove the linker,<br>
headers(from libexec), lto-wrapper, etc?<br>
<br>
Here&#39;s my gcc configure for the current working setup in case there is<=
br>
something else I can exclude but haven&#39;t found yet:<br>
<br>
../gcc-4.9.1/configure --prefix=3D/usr --libdir=3D/usr/lib<br>
--libexecdir=3D/usr/lib --mandir=3D/usr/share/man --enable-languages=3Dc,c+=
+<br>
--disable-nls --disable-multilib --disable-werror --with-system-zlib<br>
--enable-clocale=3Dgnu --enable-checking=3Drelease --enable-threads=3Dposix=
<br>
--without-headers --disable-libatomic --disable-libgomp<br>
--disable-libitm --disable-libquadmath --disable-libsanitizer<br>
--disable-libssp --disable-libvtv --disable-libcilkrts<br>
--disable-libstdcxx --disable-libstdcxx-pch --disable-libstdc++-v3<br>
--disable-libada --disable-libunwind-exceptions --disable-debug<br>
--disable-bootstrap --disable-plugin --disable-lto --disable-shared<br>
--enable-static<br>
<br>
I expect gmail will make a mess of that - in my script it is nicely<br>
broken into smaller lines, I promise!<br>
Also, one final question I&#39;m almost ashamed I need to ask - will<br>
leaving cloog and isl out of the build have any effect on the code it<br>
outputs from preprocessed source... or are they just to optimize the<br>
compiler itself?<br>
<br>
<br>
Any help or feedback would be appreciated,<br>
<br>
Steven.<br>
__<br>
distcc mailing list =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"htt=
p://distcc.samba.org/" target=3D"_blank">http://distcc.samba.org/</a><br>
To unsubscribe or change options:<br>
<a href=3D"https://lists.samba.org/mailman/listinfo/distcc" target=3D"_blan=
k">https://lists.samba.org/mailman/listinfo/distcc</a><br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Martin<br>
</div>

--089e0122a3f0d2b3d705001edf78--

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

__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc
--===============8230508763458146325==--