i386 compilation errors in head/sys/dev/ixl/if_ixl.c

2014-08-29 Thread David Shao
Compilation errors occur in head/sys/dev/ixl/if_ixl.c on i386 for
FreeBSD 11-current for the following:

In function ixl_print_debug_info()

printf(Queue irqs = %lx\n, que-irqs);
printf(AdminQ irqs = %lx\n, pf-admin_irq);
...
printf(RX not ready = %lx\n, rxr-not_done);
printf(RX packets = %lx\n, rxr-rx_packets);

all cause
error: format specifies type 'unsigned long' but the argument has type
'u64' (aka 'unsigned long long') [-Werror,-Wformat]

In function ixl_stat_update48(struct i40e_hw *hw, u32 hireg, u32 loreg,
bool offset_loaded, u64 *offset, u64 *stat)


#if __FreeBSD__ = 10  __amd64__

causes
error:  '__amd64__' is not defined, evaluates to 0 [-Werror,-Wundef]
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: i386 compilation errors in head/sys/dev/ixl/if_ixl.c

2014-08-29 Thread Steven Hartland

Looks like this was already fixed by:
http://svnweb.freebsd.org/changeset/base/270799

   Regards
   Steve

- Original Message - 
From: David Shao davs...@gmail.com

To: freebsd-current@freebsd.org
Sent: Friday, August 29, 2014 6:38 AM
Subject: i386 compilation errors in head/sys/dev/ixl/if_ixl.c



Compilation errors occur in head/sys/dev/ixl/if_ixl.c on i386 for
FreeBSD 11-current for the following:

In function ixl_print_debug_info()

   printf(Queue irqs = %lx\n, que-irqs);
   printf(AdminQ irqs = %lx\n, pf-admin_irq);
...
   printf(RX not ready = %lx\n, rxr-not_done);
   printf(RX packets = %lx\n, rxr-rx_packets);

all cause
error: format specifies type 'unsigned long' but the argument has type
'u64' (aka 'unsigned long long') [-Werror,-Wformat]

In function ixl_stat_update48(struct i40e_hw *hw, u32 hireg, u32 
loreg,

   bool offset_loaded, u64 *offset, u64 *stat)


#if __FreeBSD__ = 10  __amd64__

causes
error:  '__amd64__' is not defined, evaluates to 0 [-Werror,-Wundef]
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to 
freebsd-current-unsubscr...@freebsd.org




___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: i386 compilation errors in head/sys/dev/ixl/if_ixl.c

2014-08-29 Thread Bjoern A. Zeeb

On 29 Aug 2014, at 12:02 , Steven Hartland kill...@multiplay.co.uk wrote:

 Looks like this was already fixed by:
 http://svnweb.freebsd.org/changeset/base/270799

Yes, just before I closed the bugreport.

There’s a few more follow-up commits that (if I didn’t screw up) should make 
things at least compile now.  To which extends some things work I have no idea.

/bz

— 
Bjoern A. Zeeb Come on. Learn, goddamn it., WarGames, 1983

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: i386 compilation errors in head/sys/dev/ixl/if_ixl.c

2014-08-29 Thread David Wolfskill
On Fri, Aug 29, 2014 at 12:55:40PM +, Bjoern A. Zeeb wrote:
 
 On 29 Aug 2014, at 12:02 , Steven Hartland kill...@multiplay.co.uk wrote:
 
  Looks like this was already fixed by:
  http://svnweb.freebsd.org/changeset/base/270799
 
 Yes, just before I closed the bugreport.
 
 There?s a few more follow-up commits that (if I didn?t screw up) should make 
 things at least compile now.  To which extends some things work I have no 
 idea.
 

Err  I think I'm seeing this (or a related) problem @r270799:

 Kernel build for CANARY started on Fri Aug 29 06:17:52 PDT 2014
..ll_subdir_ixlv ---
--- if_ixlv.o ---
clang -O2 -pipe  -DSMP -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE 
-nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include 
/common/S4/obj/usr/src/sys/CANARY/opt_global.h -I. -I@ -I@/contrib/altq 
-fno-common -g -I/common/S4/obj/usr/src/sys/CANARY  -mno-mmx -mno-sse 
-msoft-float -ffreestanding -fstack-protector -gdwarf-2 -mno-aes -mno-avx 
-Qunused-arguments -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
-Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  
-Wmissing-include-dirs -fdiagnostics-show-option  
-Wno-error-tautological-compare -Wno-error-empty-body  
-Wno-error-parentheses-equality -Wno-error-unused-function  -mno-aes -mno-avx 
-Qunused-arguments -c /usr/src/sys/modules/ixlv/../../dev/ixl/if_ixlv.c
--- all_subdir_ixl ---
/usr/src/sys/modules/ixl/../../dev/ixl/i40e_osdep.c:66:1: error: conflicting 
types for 'i40e_allocate_dma'
i40e_allocate_dma(struct i40e_hw *hw, struct i40e_dma_mem *dma,
^
/usr/src/sys/modules/ixl/../../dev/ixl/i40e_alloc.h:54:23: note: previous 
declaration is here
enum i40e_status_code i40e_allocate_dma_mem(struct i40e_hw *hw,
  ^
/usr/src/sys/modules/ixl/../../dev/ixl/i40e_osdep.h:169:51: note: expanded from 
macro 'i40e_allocate_dma_mem'
#define i40e_allocate_dma_mem(h, m, unused, s, a) i40e_allocate_dma(h, m, s, a)
  ^
1 error generated.
*** [i40e_osdep.o] Error code 1

make[4]: stopped in /usr/src/sys/modules/ixl
--- all_subdir_ixgbe ---
--- ixgbe_common.o ---
ctfconvert -L VERSION -g ixgbe_common.o
A failure has been detected in another branch of the parallel make

make[4]: stopped in /usr/src/sys/modules/ixgbe
*** [all_subdir_ixgbe] Error code 2

make[3]: stopped in /usr/src/sys/modules
--- all_subdir_ixlv ---
ctfconvert -L VERSION -g if_ixlv.o
A failure has been detected in another branch of the parallel make

make[4]: stopped in /usr/src/sys/modules/ixlv
*** [all_subdir_ixlv] Error code 2

make[3]: stopped in /usr/src/sys/modules
--- all_subdir_ixl ---
--- if_ixl.o ---
ctfconvert -L VERSION -g if_ixl.o
1 error

make[4]: stopped in /usr/src/sys/modules/ixl
*** [all_subdir_ixl] Error code 2

make[3]: stopped in /usr/src/sys/modules
3 errors

make[3]: stopped in /usr/src/sys/modules
*** [modules-all] Error code 2

make[2]: stopped in /common/S4/obj/usr/src/sys/CANARY
1 error

make[2]: stopped in /common/S4/obj/usr/src/sys/CANARY
*** [buildkernel] Error code 2

make[1]: stopped in /usr/src
1 error

make[1]: stopped in /usr/src
*** [buildkernel] Error code 2

make: stopped in /usr/src
1 error

make: stopped in /usr/src
.
 stage 3.2: building everything
...


Running:
FreeBSD g1-235.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1354  
r270745M/270748:1100029: Thu Aug 28 06:35:04 PDT 2014 
r...@g1-235.catwhisker.org:/common/S4/obj/usr/src/sys/CANARY  i386

with sources:
g1-235(11.0-C)[1] svn info /usr/src
Path: /usr/src
Working Copy Root Path: /usr/src
URL: file:///svn/freebsd/src/base/head
Relative URL: ^/head
Repository Root: file:///svn/freebsd/src/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 270801
Node Kind: directory
Schedule: normal
Last Changed Author: bz
Last Changed Rev: 270799
Last Changed Date: 2014-08-29 02:37:18 -0700 (Fri, 29 Aug 2014)

g1-235(11.0-C)[2] 

(First encountered during my usual -DNOCLEAN build, so I tried
(just the kernnel) again without -DNOCLEAN; the latter is what I
quoted above.)

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Taliban: Evil cowards with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


pgpnHqPmjB0k7.pgp
Description: PGP signature


Re: i386 compilation errors in head/sys/dev/ixl/if_ixl.c

2014-08-29 Thread Bjoern A. Zeeb

On 29 Aug 2014, at 13:33 , David Wolfskill da...@catwhisker.org wrote:

 On Fri, Aug 29, 2014 at 12:55:40PM +, Bjoern A. Zeeb wrote:
 
 On 29 Aug 2014, at 12:02 , Steven Hartland kill...@multiplay.co.uk wrote:
 
 Looks like this was already fixed by:
 http://svnweb.freebsd.org/changeset/base/270799
 
 Yes, just before I closed the bugreport.
 
 There?s a few more follow-up commits that (if I didn?t screw up) should make 
 things at least compile now.  To which extends some things work I have no 
 idea.
 
 
 Err  I think I'm seeing this (or a related) problem @r270799:
 
 Kernel build for CANARY started on Fri Aug 29 06:17:52 PDT 2014
 ..ll_subdir_ixlv ---
 --- if_ixlv.o ---
 clang -O2 -pipe  -DSMP -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE 
 -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include 
 /common/S4/obj/usr/src/sys/CANARY/opt_global.h -I. -I@ -I@/contrib/altq 
 -fno-common -g -I/common/S4/obj/usr/src/sys/CANARY  -mno-mmx -mno-sse 
 -msoft-float -ffreestanding -fstack-protector -gdwarf-2 -mno-aes -mno-avx 
 -Qunused-arguments -std=iso9899:1999 -fstack-protector -Wall 
 -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
 -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
 -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  
 -Wno-error-tautological-compare -Wno-error-empty-body  
 -Wno-error-parentheses-equality -Wno-error-unused-function  -mno-aes -mno-avx 
 -Qunused-arguments -c /usr/src/sys/modules/ixlv/../../dev/ixl/if_ixlv.c
 --- all_subdir_ixl ---
 /usr/src/sys/modules/ixl/../../dev/ixl/i40e_osdep.c:66:1: error: conflicting 
 types for 'i40e_allocate_dma'
 i40e_allocate_dma(struct i40e_hw *hw, struct i40e_dma_mem *dma,
 ^
 /usr/src/sys/modules/ixl/../../dev/ixl/i40e_alloc.h:54:23: note: previous 
 declaration is here
 enum i40e_status_code i40e_allocate_dma_mem(struct i40e_hw *hw,
  ^
 /usr/src/sys/modules/ixl/../../dev/ixl/i40e_osdep.h:169:51: note: expanded 
 from macro 'i40e_allocate_dma_mem'
 #define i40e_allocate_dma_mem(h, m, unused, s, a) i40e_allocate_dma(h, m, s, 
 a)

svn update;  that was fixed


There is one more on powerpc and then a couple of unrelated infiband changes


— 
Bjoern A. Zeeb Come on. Learn, goddamn it., WarGames, 1983

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org