public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Issue in building the StdLibc using Clang38 for 64 bit build on Ubuntu 20.02
@ 2022-07-01 13:30 Jayaprakash, N
  0 siblings, 0 replies; only message in thread
From: Jayaprakash, N @ 2022-07-01 13:30 UTC (permalink / raw)
  To: devel@edk2.groups.io; +Cc: Kinney, Michael D, rebecca@nuviainc.com

[-- Attachment #1: Type: text/plain, Size: 2914 bytes --]

Hi All,

I am trying to build AppPkg under edk2-libc project using the clang compiler tool chain from Ubuntu 20.04 system.
While doing so I am encountering an error, which I am not able to resolve.

This error is coming from the Standard C Library module as shown below.
Any clues to solve this error would be of great help as I am planning to add build support for Python 3.6.8 on UEFI shell using the Clang compiler tool chain.

"""
Getting the following error while trying to compile the AppPkg from edk2 build environment using the CLANG38 tool option.

Building ... /home/jp/src/edk2/StdLib/EfiSocketLib/EfiSocketLib.inf [X64]
/home/jp/src/edk2/StdLib/LibC/Uefi/SysCalls.c:1427:3: error: 'va_start' used in Win64 ABI function
  va_start(ap, path);
  ^
/home/jp/src/edk2/StdLib/Include/stdarg.h:69:21: note: expanded from macro 'va_start'
#define va_start    __builtin_va_start
                    ^
1 error generated.

"clang" -MMD -MF /home/jp/src/edk2/Build/AppPkg/RELEASE_CLANG38/X64/StdLib/EfiSocketLib/EfiSocketLib/OUTPUT/Tcp4.obj.deps -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -ffunction-sections -fdata-sections -DSTRING_ARRAY_NAME=EfiSocketLibStrings -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-protector -mms-bitfields -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redeclaration -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -msoft-float -mno-implicit-float -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -funsigned-char -fno-ms-extensions -Wno-null-dereference -m64 "-DEFIAPI=__attribute__((ms_abi))" -mno-red-zone -mcmodel=small -fpie -Oz -flto -target x86_64-pc-linux-gnu -nostdinc -nostdlib -DUEFI_C_SOURCE -c -o /home/jp/src/edk2/Build/AppPkg/RELEASE_CLANG38/X64/StdLib/EfiSocketLib/EfiSocketLib/OUTPUT/./Tcp4.obj -I/home/jp/src/edk2/StdLib/EfiSocketLib -I/home/jp/src/edk2/Build/AppPkg/RELEASE_CLANG38/X64/StdLib/EfiSocketLib/EfiSocketLib/DEBUG -I/home/jp/src/edk2/MdePkg -I/home/jp/src/edk2/MdePkg/Include -I/home/jp/src/edk2/MdePkg/Test/UnitTest/Include -I/home/jp/src/edk2/MdePkg/Include/X64 -I/home/jp/src/edk2/MdeModulePkg -I/home/jp/src/edk2/MdeModulePkg/Include -I/home/jp/src/edk2/StdLib -I/home/jp/src/edk2/StdLib/Include -I/home/jp/src/edk2/StdLib/Include/X64 /home/jp/src/edk2/StdLib/EfiSocketLib/Tcp4.c
make: *** [GNUmakefile:309: /home/jp/src/edk2/Build/AppPkg/RELEASE_CLANG38/X64/StdLib/LibC/Uefi/Uefi/OUTPUT/SysCalls.obj] Error 1


build.py...
: error 7000: Failed to execute command
        make tbuild [/home/jp/src/edk2/Build/AppPkg/RELEASE_CLANG38/X64/StdLib/LibC/Uefi/Uefi]

"""


Regards,
JP

[-- Attachment #2: Type: text/html, Size: 6040 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-01 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-01 13:30 Issue in building the StdLibc using Clang38 for 64 bit build on Ubuntu 20.02 Jayaprakash, N

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox