Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edk2-test fail to build with gcc-14 #3

Open
wzssyqa opened this issue Sep 3, 2024 · 1 comment
Open

edk2-test fail to build with gcc-14 #3

wzssyqa opened this issue Sep 3, 2024 · 1 comment
Assignees

Comments

@wzssyqa
Copy link
Collaborator

wzssyqa commented Sep 3, 2024

/data/syq/edk2/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestConformance.c: In function ‘BBTestGetInformationConformanceTest’:
/data/syq/edk2/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestConformance.c:113:19: error: implicit declaration of function ‘SctDevicePathStrFromProtocol’ [-Wimplicit-function-declaration]
  113 |   DevicePathStr = SctDevicePathStrFromProtocol (AdapterInfo, &gEfiAdapterInformationProtocolGuid);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/syq/edk2/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestConformance.c:113:17: error: assignment to ‘UINT16 *’ {aka ‘short unsigned int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  113 |   DevicePathStr = SctDevicePathStrFromProtocol (AdapterInfo, &gEfiAdapterInformationProtocolGuid);
      |                 ^
/data/syq/edk2/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestConformance.c: In function ‘BBTestSetInformationConformanceTest’:
/data/syq/edk2/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestConformance.c:164:17: error: assignment to ‘UINT16 *’ {aka ‘short unsigned int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  164 |   DevicePathStr = SctDevicePathStrFromProtocol (AdapterInfo, &gEfiAdapterInformationProtocolGuid);
      |                 ^
/data/syq/edk2/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestConformance.c: In function ‘BBTestGetSupportedTypesConformanceTest’:
/data/syq/edk2/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoBBTestConformance.c:212:17: error: assignment to ‘UINT16 *’ {aka ‘short unsigned int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  212 |   DevicePathStr = SctDevicePathStrFromProtocol (AdapterInfo, &gEfiAdapterInformationProtocolGuid);
      |                 ^
Building ... /data/syq/edk2/SctPkg/TestCase/UEFI/EFI/BootServices/MemoryAllocationServices/BlackBoxTest/MemoryAllocationServicesBBTest.inf [RISCV64]
make: *** [GNUmakefile:327: /data/syq/edk2/Build/UefiSct/RELEASE_GCC5/RISCV64/SctPkg/TestCase/UEFI/EFI/Protocol/AdapterInfo/BlackBoxTest/AdapterInfoProtocolBBTest/OUTPUT/AdapterInfoBBTestConformance.obj] Error 1
@wzssyqa
Copy link
Collaborator Author

wzssyqa commented Sep 3, 2024

tianocore/edk2-test#100

@wzssyqa wzssyqa self-assigned this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant