Re: ./Makepkgs Problem

"Ken McDonell" <[email protected]> Fri, 10 Feb 2017 07:13:42 +1100
Newsgroups gmane.comp.sysutils.pcp
Message-ID <[email protected]>
On 10/02/17 03:19, Dave Brolley wrote:
> I started seeing this yesterday and it's still happening with the latest
> upstream sources today. It looks like gcc is taking the definition of
> PCP_VERSION as a source file. I can't see any problem.
> 
> Has anyone worked in this area lately? Ringing any bells?

Not seeing this on any of my QA machines, Dave.

But I did notice there are _lots_ of repeated args in the gcc command ...

echo gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2  -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.11.8\" -I./src/include -I./src/include/pcp -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2  -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.11.8\" -I../src/include -I../src/include/pcp -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2  -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.11.8\" -I../../src/include -I../../src/include/pcp -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I../../../src/pmcd/src -I../../../src/libpcp/src -DPMCD_INTERNAL -I/usr/include/nss3 -I/usr/include/nspr4 -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.11.8\" -I../../../src/include -I../../../src/include/pcp   -c -o client.o client.c | tr ' ' '\012' | sort | uniq -c
      1 -c
      1 client.c
      1 client.o
      4 -D_FORTIFY_SOURCE=2
      4 -D_GNU_SOURCE
      4 -DPCP_DEBUG
      4 -DPCP_VERSION="3.11.8"
      1 -DPMCD_INTERNAL
      1 -fexceptions
      4 -fno-strict-aliasing
      4 -fPIC
      4 -fstack-protector-all
      1 -fstack-protector-strong
      5 -g
      1 gcc
      1 -grecord-gcc-switches
      1 -I./src/include
      1 -I../../../src/include
      1 -I../../src/include
      1 -I../src/include
      1 -I./src/include/pcp
      1 -I../../../src/include/pcp
      1 -I../../src/include/pcp
      1 -I../src/include/pcp
      1 -I../../../src/libpcp/src
      1 -I../../../src/pmcd/src
      1 -I/usr/include/nspr4
      1 -I/usr/include/nss3
      1 -m64
      1 -mtune=generic
      1 -o
      5 -O2
      1 --param=ssp-buffer-size=4
      1 -pipe
      1 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
      4 -U_FORTIFY_SOURCE
      5 -Wall
      1 -Werror=format-security
      1 -Wp,-D_FORTIFY_SOURCE=2

so looks like your builddefs and your environment and your tool chain are conspiring to declare things like -D_GNU_SOURCE 4 times and _Wall (and -O2 and -g) 5 times ... looks odd, but may be unrelated to your problem.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#15100): https://groups.io/g/pcp/message/15100
View All Messages In Topic (2): https://groups.io/g/pcp/topic/4351210
Mute This Topic: https://groups.io/mt/4351210?uid=174580
New Topic: https://groups.io/g/pcp/post
-=-=-
pcp mailing list
[email protected]
https://groups.io/g/pcp/messages
-=-=-
Change Your Subscription: https://groups.io/g/pcp/editsub?uid=174580
Group Home: https://groups.io/g/pcp
Contact Group Owner: [email protected]
Terms of Service: https://groups.io/static/tos
Unsubscribe: https://groups.io/g/pcp/leave/354243/563757577/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-