Skip to contentSkip to conversation

reiser4 on alpha

DISCUSSION Jure Peèar 2 participants 4 messages Jun 25, 2004 – Jun 29, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,

i tought someone might be interested in the following compiler warnings and error:

LD fs/reiser4/built-in.o
CC [M] fs/reiser4/debug.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/stats.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/jnode.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/znode.o
fs/reiser4/znode.c: In function `zget':
fs/reiser4/znode.c:565: warning: long long unsigned int format, long unsigned int arg (arg 2)
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/key.o
fs/reiser4/key.c: In function `sprintf_key':
fs/reiser4/key.c:150: warning: long long unsigned int format, oid_t arg (arg
3)
fs/reiser4/key.c:150: warning: long long unsigned int format, __u64 arg (arg
5)
fs/reiser4/key.c:150: warning: long long unsigned int format, __u64 arg (arg
6)
fs/reiser4/key.c:150: warning: long long unsigned int format, oid_t arg (arg
7)
fs/reiser4/key.c:150: warning: long long unsigned int format, __u64 arg (arg
8)
fs/reiser4/key.c:157: warning: long long unsigned int format, oid_t arg (arg
3)
fs/reiser4/key.c:157: warning: long long unsigned int format, __u64 arg (arg
5)
fs/reiser4/key.c:157: warning: long long unsigned int format, oid_t arg (arg
6)
fs/reiser4/key.c:157: warning: long long unsigned int format, __u64 arg (arg
7)
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/pool.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/tree_mod.o
fs/reiser4/tree_mod.c: In function `new_node':
fs/reiser4/tree_mod.c:62: warning: long long unsigned int format, reiser4_block_nr arg (arg 2)
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/estimate.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/carry.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/carry_ops.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/lock.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/tree.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/context.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/tap.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/coord.o
fs/reiser4/coord.c: In function `coords_equal':
fs/reiser4/coord.c:598: error: duplicate case value fs/reiser4/coord.c:598: error: previously used here
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got make[2]: *** [fs/reiser4/coord.o] Error 1
make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2

Looking at fs/reiser4/debug.h suggest that this is something done on purpose to guard against other problems.

Gcc 3.3.4 on debian/alpha, reiser4-2004.06.24-19.36-linux-2.6.7 snapshot.

Signature · 4 lines
Jure Pe�ar
-- 

Jure Pečar
#1 lore raw
Quoted 10 lines · Jure Pe??ar

Hi all,

i tought someone might be interested in the following compiler warnings and error:

LD fs/reiser4/built-in.o
CC [M] fs/reiser4/debug.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got

Does only reiser4 produce the above warning?

Quoted 74 lines

CC [M] fs/reiser4/stats.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/jnode.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/znode.o
fs/reiser4/znode.c: In function `zget':
fs/reiser4/znode.c:565: warning: long long unsigned int format, long unsigned int arg (arg 2)
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/key.o
fs/reiser4/key.c: In function `sprintf_key':
fs/reiser4/key.c:150: warning: long long unsigned int format, oid_t arg (arg
3)
fs/reiser4/key.c:150: warning: long long unsigned int format, __u64 arg (arg
5)
fs/reiser4/key.c:150: warning: long long unsigned int format, __u64 arg (arg
6)
fs/reiser4/key.c:150: warning: long long unsigned int format, oid_t arg (arg
7)
fs/reiser4/key.c:150: warning: long long unsigned int format, __u64 arg (arg
8)
fs/reiser4/key.c:157: warning: long long unsigned int format, oid_t arg (arg
3)
fs/reiser4/key.c:157: warning: long long unsigned int format, __u64 arg (arg
5)
fs/reiser4/key.c:157: warning: long long unsigned int format, oid_t arg (arg
6)
fs/reiser4/key.c:157: warning: long long unsigned int format, __u64 arg (arg
7)
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/pool.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/tree_mod.o
fs/reiser4/tree_mod.c: In function `new_node':
fs/reiser4/tree_mod.c:62: warning: long long unsigned int format, reiser4_block_nr arg (arg 2)
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/estimate.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/carry.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/carry_ops.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/lock.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/tree.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/context.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/tap.o
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got
CC [M] fs/reiser4/coord.o
fs/reiser4/coord.c: In function `coords_equal':
fs/reiser4/coord.c:598: error: duplicate case value fs/reiser4/coord.c:598: error: previously used here
{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got make[2]: *** [fs/reiser4/coord.o] Error 1
make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2

Quoted 2 lines

Looking at fs/reiser4/debug.h suggest that this is something done on purpose to guard against other problems.

yes, "duplicated case value" is a result of our compile-time assertion if it fails.

But the assertion is wrong because the assumtion that struct coord has no implicit padding is wrong on alpha.

Quoted 1 line

Gcc 3.3.4 on debian/alpha, reiser4-2004.06.24-19.36-linux-2.6.7 snapshot.

Thanks for the report

Quoted 2 lines
Signature · 1 line
Jure Pe??ar
Signature · 1 line
Alex.
#2 lore raw
Quoted 5 lines · On Sat, 26 Jun 2004 10:41:31 +0400 Alex Zarochentsev <[email protected]> wrote:
Quoted 3 lines

{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got

Does only reiser4 produce the above warning?

No. I get these from various parts of the kernel, but are a lot less frequent now on 2.6.7 than on previous kernels.

Quoted 8 lines
Quoted 2 lines

Looking at fs/reiser4/debug.h suggest that this is something done on purpose to guard against other problems.

yes, "duplicated case value" is a result of our compile-time assertion if it fails.

But the assertion is wrong because the assumtion that struct coord has no implicit padding is wrong on alpha.

Do i undestrand that right, the fix is just to comment out the c1->pad line there?

Signature · 1 line
Jure Peèar
#3 lore raw
Quoted 15 lines · Jure Pe??ar
Quoted 5 lines · On Sat, 26 Jun 2004 10:41:31 +0400 Alex Zarochentsev <[email protected]> wrote:
Quoted 3 lines

{standard input}: Assembler messages:
{standard input}:5: Warning: setting incorrect section attributes for .got

Does only reiser4 produce the above warning?

No. I get these from various parts of the kernel, but are a lot less frequent now on 2.6.7 than on previous kernels.

Quoted 3 lines
Quoted 2 lines

Looking at fs/reiser4/debug.h suggest that this is something done on purpose to guard against other problems.

Quoted 8 lines
Quoted 5 lines

yes, "duplicated case value" is a result of our compile-time assertion if it fails.

But the assertion is wrong because the assumtion that struct coord has no implicit padding is wrong on alpha.

Do i undestrand that right, the fix is just to comment out the c1->pad line there?

you can remove the wrong caccert.

Signature · 1 line
Alex.