Cannot compile with gcc 4.8

Sven Willenberger
Mon Jun 16 03:55:51 UTC 2014

On Sun, 15 Jun 2014 07:06:25 GMT
Vernon Schryver <> wrote:
> I think that putting _FORTIFY_SOURCE into CPPFLAGS is a bug in the
> Arch Linux packaging system.
> I also think that checking compiler optimzation levels in cpp is a gcc
> bug, even there is no way to know whether cpp is running by itself 
> (including as gcc -E) or as a C compiler pre-processor.
> Judging from a little Google searching, this will be a widespread
> problem as more Linux distributions get the new gcc features.h and if
> they make the same choice as Arch Linux of treating -D_FORTIFY_SOURCE
> as a pre-preprocessor setting (CPPFLAGS) instead of a compiler
> setting (CFLAGS).  By "widespread", by which I mean not just DCC.

Reading through this I tried to add -O2 to the CPPFLAGS so that it
to makepkg.conf and tried to build the DCC package. Long story short,
it was successful. I would suggest to the package maintainer that he
simply add CPPFLAGS+="-O2" to his own build so as not to clash with the
system makepkg (or simply change to CPPFLAGS="-U_FORTIFY_SOURCE")

I will leave the system-wide package making flags up to the developers
of Arch (as typically they would be the ones actually making packages.)
There are many packages that are community added (such as DCC) and as
this issue starts to crop up more, this thread may server as a good
frame of reference for "fixes".

Sven Willenberger
Delmarva Online

key-id: 0xCAB7246B

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <>

More information about the DCC mailing list

Contact by mail or use the form.