open-power / skiboot

OPAL boot and runtime firmware for POWER
Apache License 2.0
100 stars 134 forks source link

v 6.2.2 Fails to build with gcc9-9.1.1+r273003 #246

Closed hramrach closed 3 years ago

hramrach commented 5 years ago

[ 57s] hw/sbe-p9.c: In function 'p9_sbe_msg_send': [ 57s] hw/sbe-p9.c:270:9: error: taking address of packed member of 'struct p9_sbe_msg' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 57s] 270 | data = &msg->reg[0]; [ 57s] | ^~~~ [ 57s] hw/sbe-p9.c: In function 'p9_sbe_msg_receive': [ 57s] hw/sbe-p9.c:303:9: error: taking address of packed member of 'struct p9_sbe_msg' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 57s] 303 | data = &resp->reg[0]; [ 57s] | ^~~~~ [ 57s] hw/sbe-p9.c: In function 'p9_sbe_msg_complete': [ 57s] hw/sbe-p9.c:326:11: error: taking address of packed member of 'struct p9_sbe_msg' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 57s] 326 | list_del(&msg->link); [ 57s] | ^~~~~~ [ 57s] hw/sbe-p9.c: In function 'p9_sbe_queue_msg': [ 57s] hw/sbe-p9.c:423:32: error: taking address of packed member of 'struct p9_sbe_msg' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 57s] 423 | list_add_tail(&sbe->msg_list, &msg->link); [ 57s] | ^~~~~~ [ 57s] hw/sbe-p9.c: In function 'p9_sbe_cancelmsg': [ 57s] hw/sbe-p9.c:480:11: error: taking address of packed member of 'struct p9_sbe_msg' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 57s] 480 | list_del(&msg->link); [ 57s] | ^~~~~~

oohal commented 5 years ago

@hegdevasant can you have a look

hramrach commented 5 years ago

Already fixed in master.

hegdevasant commented 3 years ago

v6.2.x is unmaintained .. Current stable version is v6.6.x and soon it will be v6.7.x .. Hence closing this one.

Let me know , if you still need this issue to be addressed in v6.2.x branch.

-Vasant