fwts: ppc64el build failures on method test

Bug #1272265 reported by Colin Ian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Firmware Test Suite
Fix Released
Medium
Colin Ian King

Bug Description

ppc64el FTBFS errors, should be fixed:

cc -DHAVE_CONFIG_H -I. -I.. -I../src/lib/include -I../src/acpica/source/include -I../src/acpica/source/compiler -I../efi_runtime -Wall -Werror -Wextra -g -O2 -c -o acpi/method/fwts-method.o `test -f 'acpi/method/method.c' || echo './'`acpi/method/method.c
acpi/method/method.c: In function 'method_test_HID_return':
acpi/method/method.c:990:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
    fwts_passed(fw, "%s returned an integer "
    ^
acpi/method/method.c:994:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
    fwts_failed(fw, LOG_LEVEL_MEDIUM,
    ^
acpi/method/method.c: In function 'method_test_FIX_return':
acpi/method/method.c:1874:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
    fwts_failed(fw, LOG_LEVEL_MEDIUM,
    ^
acpi/method/method.c: In function 'method_test_SEG_return':
acpi/method/method.c:2101:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c: In function 'method_test_Sx__return':
acpi/method/method.c:2340:2: error: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
  fwts_log_info(fw, "%s PM1a_CNT.SLP_TYP value: 0x%8.8" PRIx64, name,
  ^
acpi/method/method.c:2342:2: error: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
  fwts_log_info(fw, "%s PM1b_CNT.SLP_TYP value: 0x%8.8" PRIx64, name,
  ^
acpi/method/method.c: In function 'method_test_CSD_return':
acpi/method/method.c:2485:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
    fwts_failed(fw, LOG_LEVEL_MEDIUM,
    ^
acpi/method/method.c:2495:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
    fwts_failed(fw, LOG_LEVEL_MEDIUM,
    ^
acpi/method/method.c:2508:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
    fwts_failed(fw, LOG_LEVEL_MEDIUM,
    ^
acpi/method/method.c: In function 'method_test_CST_return':
acpi/method/method.c:2577:3: error: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM, "Method_CSTElement0CountMismatch",
   ^
acpi/method/method.c:2674:5: error: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
     fwts_log_info_verbatum(fw,
     ^
acpi/method/method.c:2674:5: error: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'UINT64' [-Werror=format=]
acpi/method/method.c:2674:5: error: format '%lu' expects argument of type 'long unsigned int', but argument 11 has type 'UINT64' [-Werror=format=]
acpi/method/method.c: In function 'method_test_PSS_return':
acpi/method/method.c:2845:5: error: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
     fwts_log_info_verbatum(fw, " %3d %7" PRIu64 " %8" PRIu64
     ^
acpi/method/method.c:2845:5: error: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'UINT64' [-Werror=format=]
acpi/method/method.c:2845:5: error: format '%lu' expects argument of type 'long unsigned int', but argument 11 has type 'UINT64' [-Werror=format=]
acpi/method/method.c:2845:5: error: format '%lu' expects argument of type 'long unsigned int', but argument 12 has type 'UINT64' [-Werror=format=]
acpi/method/method.c: In function 'method_test_TSD_return':
acpi/method/method.c:2993:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
    fwts_failed(fw, LOG_LEVEL_MEDIUM,
    ^
acpi/method/method.c:3004:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
    fwts_failed(fw, LOG_LEVEL_MEDIUM,
    ^
acpi/method/method.c:3018:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
    fwts_failed(fw, LOG_LEVEL_MEDIUM,
    ^
acpi/method/method.c: In function 'method_test_TSS_return':
acpi/method/method.c:3123:4: error: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
    fwts_failed(fw, LOG_LEVEL_MEDIUM,
    ^
acpi/method/method.c:3144:5: error: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
     fwts_log_info_verbatum(fw,
     ^
acpi/method/method.c:3144:5: error: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'UINT64' [-Werror=format=]
acpi/method/method.c:3144:5: error: format '%lu' expects argument of type 'long unsigned int', but argument 11 has type 'UINT64' [-Werror=format=]
acpi/method/method.c:3144:5: error: format '%lx' expects argument of type 'long unsigned int', but argument 12 has type 'UINT64' [-Werror=format=]
acpi/method/method.c:3144:5: error: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'UINT64' [-Werror=format=]
acpi/method/method.c: In function 'method_test_GCP_return':
acpi/method/method.c:3256:3: error: format '%ld' expects argument of type 'long int', but argument 8 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c: In function 'method_test_GWS_return':
acpi/method/method.c:3319:3: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c: In function 'method_test_SBS_return':
acpi/method/method.c:3414:3: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
   fwts_passed(fw, "%s correctly returned value %" PRIu64 " %s",
   ^
acpi/method/method.c:3419:3: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM, "Method_SBSReturn",
   ^
acpi/method/method.c: In function 'method_test_BIF_return':
acpi/method/method.c:3495:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c:3528:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c: In function 'method_test_BIX_return':
acpi/method/method.c:3632:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c:3668:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c: In function 'method_test_BST_return':
acpi/method/method.c:3781:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c:3790:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c: In function 'method_test_PSR_return':
acpi/method/method.c:3936:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c: In function 'method_test_THERM_return':
acpi/method/method.c:4124:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
    fwts_passed(fw,
    ^
acpi/method/method.c:4131:4: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
    fwts_failed(fw, LOG_LEVEL_MEDIUM,
    ^
acpi/method/method.c: In function 'method_test_BCL_return':
acpi/method/method.c:4599:3: error: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'UINT64' [-Werror=format=]
   fwts_failed(fw, LOG_LEVEL_MEDIUM,
   ^
acpi/method/method.c:4599:3: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
acpi/method/method.c:4613:4: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
    fwts_log_info(fw,
    ^
acpi/method/method.c:4613:4: error: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'UINT64' [-Werror=format=]
acpi/method/method.c:4636:2: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
  fwts_log_info_verbatum(fw, " Level on full power : %" PRIu64, obj->Package.Elements[0].Integer.Value);
  ^
acpi/method/method.c:4637:2: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'UINT64' [-Werror=format=]
  fwts_log_info_verbatum(fw, " Level on battery power: %" PRIu64, obj->Package.Elements[1].Integer.Value);
  ^
acpi/method/method.c:4643:4: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'UINT64' [-Werror=format=]
    obj->Package.Elements[i].Integer.Value);
    ^
acpi/method/method.c:4643:4: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'UINT64' [-Werror=format=]
cc1: all warnings being treated as errors
make[4]: *** [acpi/method/fwts-method.o] Error 1
make[4]: Leaving directory `/build/buildd/fwts-14.01.01/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/build/buildd/fwts-14.01.01/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/fwts-14.01.01'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/fwts-14.01.01'

Changed in fwts:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Colin King (colin-king)
Revision history for this message
Colin Ian King (colin-king) wrote :
Changed in fwts:
milestone: none → 14.02.00
Revision history for this message
Colin Ian King (colin-king) wrote :

Fix committed, commit 5a8ce18059de2d1c5cdd25437c572949d6536b48

Changed in fwts:
status: In Progress → Fix Committed
Revision history for this message
Colin Ian King (colin-king) wrote :

Correction, should be commit: 94b9e912493662f1022976a01a48bea242d83129

Alex Hung (alexhung)
Changed in fwts:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.