* iproute-3.8.0 build error on Linux ppc64 [not found] <CABMX=WwSNeTq_ascBRxJtQrsErR-cFODZQh_wrim6K8weyLDtQ@mail.gmail.com> @ 2013-02-27 5:15 ` nello martuscielli 2013-02-27 5:39 ` nello martuscielli [not found] ` <CABMX=WxaxNhvx4YA6-KiDjoRURXsotCSEpxQJu4mK11UtW78jw@mail.gmail.com> 1 sibling, 1 reply; 5+ messages in thread From: nello martuscielli @ 2013-02-27 5:15 UTC (permalink / raw) To: netdev hi, after commit: http://git.kernel.org/?p=linux/kernel/git/shemminger/iproute2.git;a=commitdiff;h=6398d3a65277a2ebed085ad9deef15fea6f4ed09 specifically -Wmissing-prototypes and I get this error on Linux ppc64 [...] gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -c -o ipneigh.o ipneigh.c gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -c -o ipntable.o ipntable.c cc1: warnings being treated as errors ipntable.c: In function 'print_ntable': ipntable.c:435:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:488:4: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:492:4: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:496:4: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:505:4: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:509:4: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:539:4: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:543:4: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:551:4: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:563:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:564:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:565:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:570:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:571:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:572:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:577:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:578:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:583:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' ipntable.c:584:3: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' make[1]: *** [ipntable.o] Error 1 make[1]: Leaving directory `/root/iproute2-3.8.0/ip' make: *** [all] Error 2 my system is IBM POWER4+ with a CRUX PPC 3.0alpha (64bit). thanks, Nell -- my blog: http://linuxpowerpc.blogspot.com/ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: iproute-3.8.0 build error on Linux ppc64 2013-02-27 5:15 ` iproute-3.8.0 build error on Linux ppc64 nello martuscielli @ 2013-02-27 5:39 ` nello martuscielli 0 siblings, 0 replies; 5+ messages in thread From: nello martuscielli @ 2013-02-27 5:39 UTC (permalink / raw) To: netdev sorry, it was the previous commit about -Werror thanks, Nell On Wed, Feb 27, 2013 at 6:15 AM, nello martuscielli <ppc.addon@gmail.com> wrote: > hi, > after commit: > http://git.kernel.org/?p=linux/kernel/git/shemminger/iproute2.git;a=commitdiff;h=6398d3a65277a2ebed085ad9deef15fea6f4ed09 > > specifically -Wmissing-prototypes and I get this error on Linux ppc64 > > [...] > gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes > -Wmissing-declarations -Wold-style-definition -O2 -I../include > -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" > -D_GNU_SOURCE -c -o ipneigh.o ipneigh.c > gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes > -Wmissing-declarations -Wold-style-definition -O2 -I../include > -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" > -D_GNU_SOURCE -c -o ipntable.o ipntable.c > cc1: warnings being treated as errors > ipntable.c: In function 'print_ntable': > ipntable.c:435:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:488:4: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:492:4: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:496:4: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:505:4: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:509:4: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:539:4: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:543:4: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:551:4: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:563:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:564:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:565:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:570:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:571:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:572:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:577:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:578:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:583:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > ipntable.c:584:3: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > make[1]: *** [ipntable.o] Error 1 > make[1]: Leaving directory `/root/iproute2-3.8.0/ip' > make: *** [all] Error 2 > > > my system is IBM POWER4+ with a CRUX PPC 3.0alpha (64bit). > > > thanks, > Nell > -- > my blog: http://linuxpowerpc.blogspot.com/ -- -- Power Mac G4 AGP 450MHz - CRUX PPC (32bit) ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CABMX=WxaxNhvx4YA6-KiDjoRURXsotCSEpxQJu4mK11UtW78jw@mail.gmail.com>]
* Re: iproute-3.8.0 build error on Linux ppc64 [not found] ` <CABMX=WxaxNhvx4YA6-KiDjoRURXsotCSEpxQJu4mK11UtW78jw@mail.gmail.com> @ 2013-02-27 15:28 ` Stephen Hemminger 2013-02-27 16:27 ` nello martuscielli 0 siblings, 1 reply; 5+ messages in thread From: Stephen Hemminger @ 2013-02-27 15:28 UTC (permalink / raw) To: nello martuscielli; +Cc: netdev On Wed, 27 Feb 2013 06:37:46 +0100 nello martuscielli <ppc.addon@gmail.com> wrote: > sorry, it was your previous commit about -Werror > > thanks, > Nell > > > > On Wed, Feb 27, 2013 at 6:08 AM, nello martuscielli <ppc.addon@gmail.com> wrote: > > hi, > > after your commit: > > http://git.kernel.org/?p=linux/kernel/git/shemminger/iproute2.git;a=commitdiff;h=6398d3a65277a2ebed085ad9deef15fea6f4ed09 > > > > specifically -Wmissing-prototypes and I get this error on Linux ppc64 > > > > gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes > > -Wmissing-declarations -Wold-style-definition -O2 -I../include > > -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" > > -D_GNU_SOURCE -c -o ipntable.o ipntable.c > > cc1: warnings being treated as errors > > ipntable.c: In function 'print_ntable': > > ipntable.c:435:3: error: format '%llu' expects type 'long long Pushed up a fix for this using casts. Would rather have used inttypes.h but that was incompatible with kernel's __u64. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: iproute-3.8.0 build error on Linux ppc64 2013-02-27 15:28 ` Stephen Hemminger @ 2013-02-27 16:27 ` nello martuscielli 2013-02-27 20:53 ` Denis Kirjanov 0 siblings, 1 reply; 5+ messages in thread From: nello martuscielli @ 2013-02-27 16:27 UTC (permalink / raw) To: Stephen Hemminger; +Cc: netdev On Wed, Feb 27, 2013 at 4:28 PM, Stephen Hemminger <stephen@networkplumber.org> wrote: __omissis >> > >> > gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes >> > -Wmissing-declarations -Wold-style-definition -O2 -I../include >> > -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" >> > -D_GNU_SOURCE -c -o ipntable.o ipntable.c >> > cc1: warnings being treated as errors >> > ipntable.c: In function 'print_ntable': >> > ipntable.c:435:3: error: format '%llu' expects type 'long long > > Pushed up a fix for this using casts. > Would rather have used inttypes.h but that was incompatible with kernel's __u64. thanks a lot, this fix ipntable.c . Now I got this same type build error on tcp_metrics.c [...] gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -c -o tcp_metrics.o tcp_metrics.c cc1: warnings being treated as errors tcp_metrics.c: In function 'process_msg': tcp_metrics.c:172:4: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type '__u64' tcp_metrics.c:172:4: error: format '%03llu' expects type 'long long unsigned int', but argument 4 has type '__u64' tcp_metrics.c:232:4: error: format '%llu' expects type 'long long unsigned int', but argument 4 has type '__u64' tcp_metrics.c:232:4: error: format '%03llu' expects type 'long long unsigned int', but argument 5 has type '__u64' make[1]: *** [tcp_metrics.o] Error 1 make[1]: Leaving directory `/root/iproute2-3.8.0/ip' make: *** [all] Error 2 Nello -- LinuxPPC64 user. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: iproute-3.8.0 build error on Linux ppc64 2013-02-27 16:27 ` nello martuscielli @ 2013-02-27 20:53 ` Denis Kirjanov 0 siblings, 0 replies; 5+ messages in thread From: Denis Kirjanov @ 2013-02-27 20:53 UTC (permalink / raw) To: nello martuscielli; +Cc: Stephen Hemminger, netdev It's been solved by using __SANE_USERSPACE_TYPES__ which selects the proper type for __u64 on PowerPC: https://patchwork.kernel.org/patch/2029141/ On 2/27/13, nello martuscielli <ppc.addon@gmail.com> wrote: > On Wed, Feb 27, 2013 at 4:28 PM, Stephen Hemminger > <stephen@networkplumber.org> wrote: > > __omissis >>> > >>> > gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes >>> > -Wmissing-declarations -Wold-style-definition -O2 -I../include >>> > -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" >>> > -D_GNU_SOURCE -c -o ipntable.o ipntable.c >>> > cc1: warnings being treated as errors >>> > ipntable.c: In function 'print_ntable': >>> > ipntable.c:435:3: error: format '%llu' expects type 'long long >> >> Pushed up a fix for this using casts. >> Would rather have used inttypes.h but that was incompatible with kernel's >> __u64. > > > thanks a lot, this fix ipntable.c . > Now I got this same type build error on tcp_metrics.c > > [...] > gcc -Wall -Wstrict-prototypes -Werror -Wmissing-prototypes > -Wmissing-declarations -Wold-style-definition -O2 -I../include > -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" > -D_GNU_SOURCE -c -o tcp_metrics.o tcp_metrics.c > cc1: warnings being treated as errors > tcp_metrics.c: In function 'process_msg': > tcp_metrics.c:172:4: error: format '%llu' expects type 'long long > unsigned int', but argument 3 has type '__u64' > tcp_metrics.c:172:4: error: format '%03llu' expects type 'long long > unsigned int', but argument 4 has type '__u64' > tcp_metrics.c:232:4: error: format '%llu' expects type 'long long > unsigned int', but argument 4 has type '__u64' > tcp_metrics.c:232:4: error: format '%03llu' expects type 'long long > unsigned int', but argument 5 has type '__u64' > make[1]: *** [tcp_metrics.o] Error 1 > make[1]: Leaving directory `/root/iproute2-3.8.0/ip' > make: *** [all] Error 2 > > > > Nello > -- > LinuxPPC64 user. > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-02-27 20:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CABMX=WwSNeTq_ascBRxJtQrsErR-cFODZQh_wrim6K8weyLDtQ@mail.gmail.com>
2013-02-27 5:15 ` iproute-3.8.0 build error on Linux ppc64 nello martuscielli
2013-02-27 5:39 ` nello martuscielli
[not found] ` <CABMX=WxaxNhvx4YA6-KiDjoRURXsotCSEpxQJu4mK11UtW78jw@mail.gmail.com>
2013-02-27 15:28 ` Stephen Hemminger
2013-02-27 16:27 ` nello martuscielli
2013-02-27 20:53 ` Denis Kirjanov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox