shijunjing / edk2 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tianocore/edk2
EDK II
Home Page: http://www.tianocore.org/edk2/
License: Other
This project forked from tianocore/edk2
EDK II
Home Page: http://www.tianocore.org/edk2/
License: Other
Hi Shijunjing,
I followed the steps mentioned in https://github.com/shijunjing/edk2/tree/2021-gsoc-llvm-gnumake-v2 to make infrastructure.
I am trying to build Helloworld application in MSVC 2019 using CLANG38.
I have added GnuMake as enviornment path as well.
Made changes in ToolsDef.txt from CLANG38_MAKE_PATH = make to CLANG38_MAKE_PATH = gnumake
After that able to compile, but during linking getting below errors.
Please let me know if i miss anything
edk2-working>build -t CLANG38 -a X64 -p MdeModulePkg\MdeModulePkg.dsc -m MdeModulePkg\Application\HelloWorld\HelloWorld.inf --verbose
"GenFw" -o c:\users\i31184\patil\edk2-working\Build\MdeModule\DEBUG_CLANG38\X64\MdeModulePkg\Application\HelloWorld\HelloWorld\OUTPUT\HelloWorldhii.rc -g 6987936E-ED34-44db-AE97-1FA5E4ED2116 --hiibinpackage c:\users\i31184\patil\edk2-working\Build\MdeModule\DEBUG_CLANG38\X64\MdeModulePkg\Application\HelloWorld\HelloWorld\OUTPUT\HelloWorldStrDefs.hpk
"objcopy" -I binary -O elf64-x86-64 -B i386 --rename-section .data=.hii c:\users\i31184\patil\edk2-working\Build\MdeModule\DEBUG_CLANG38\X64\MdeModulePkg\Application\HelloWorld\HelloWorld\OUTPUT\HelloWorldhii.rc c:\users\i31184\patil\edk2-working\Build\MdeModule\DEBUG_CLANG38\X64\MdeModulePkg\Application\HelloWorld\HelloWorld\OUTPUT\HelloWorldhii.lib
Waiting for thread ending...(1)
process_begin: CreateProcess(NULL, objcopy -I binary -O elf64-x86-64 -B i386 --rename-section .data=.hii c:\users\i31184\patil\edk2-working\Build\MdeModule\DEBUG_CLANG38\X64\MdeModulePkg\Application\HelloWorld\HelloWorld\OUTPUT\HelloWorldhii.rc c:\users\i31184\patil\edk2-working\Build\MdeModule\DEBUG_CLANG38\X64\MdeModulePkg\Application\HelloWorld\HelloWorld\OUTPUT\HelloWorldhii.lib, ...) failed.
make (e=2): The system cannot find the file specified.
gnumake: *** [GNUmakefile:356: c:\users\i31184\patil\edk2-working\Build\MdeModule\DEBUG_CLANG38\X64\MdeModulePkg\Application\HelloWorld\HelloWorld\OUTPUT\HelloWorldhii.lib] Error 2
build.py...
: error 7000: Failed to execute command
gnumake tbuild [c:\users\i31184\patil\edk2-working\Build\MdeModule\DEBUG_CLANG38\X64\MdeModulePkg\Application\HelloWorld\HelloWorld]
build.py...
: error F002: Failed to build module
c:\users\i31184\patil\edk2-working\MdeModulePkg\Application\HelloWorld\HelloWorld.inf [X64, CLANG38, DEBUG]
C:\Users\I31184\Patil\edk2-working>
Trying to compile edk2 source code with CLANG35 tool chain on AARCH64 architecture
build -p MdeModulePkg/MdeModulePkg.dsc -m MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf -t CLANG35 -a AARCH64
"clang" -MMD -MF /home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.obj.deps -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -mlittle-endian -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -Wno-address -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-pic -fno-pie -ffixed-x18 -target aarch64-linux-gnu -mcmodel=small -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unknown-warning-option -O1 --coverage -c -o /home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/./Vfr.obj -I/home/bios/Patil/edk2/MdeModulePkg/Universal/DriverSampleDxe -I/home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/DEBUG -I/home/bios/Patil/edk2/MdePkg -I/home/bios/Patil/edk2/MdePkg/Include -I/home/bios/Patil/edk2/MdePkg/Test/UnitTest/Include -I/home/bios/Patil/edk2/MdePkg/Include/AArch64 -I/home/bios/Patil/edk2/MdeModulePkg -I/home/bios/Patil/edk2/MdeModulePkg/Include -I/home/bios/Patil/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/include /home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/DEBUG/Vfr.c
rm -f /home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/DriverSample.lib
"ar" cr /home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/DriverSample.lib @/home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/object_files.lst
"clang" -o /home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/DEBUG/DriverSample.dll -target aarch64-linux-gnu -Wl,--emit-relocs -nostdlib -Wl,--gc-sections -u _ModuleEntryPoint -Wl,-e,_ModuleEntryPoint,-Map,/home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/DEBUG/DriverSample.map -z common-page-size=0x20 -z common-page-size=0x1000 -Wl,--start-group,@/home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/static_library_files.lst,--end-group -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -mlittle-endian -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -Wno-address -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-pic -fno-pie -ffixed-x18 -target aarch64-linux-gnu -mcmodel=small -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unknown-warning-option -O1 --coverage -Wl,--script=/home/bios/Patil/edk2/BaseTools/Scripts/GccBase.lds -Wl,--defsym=PECOFF_HEADER_SIZE=0x228
/usr/bin/aarch64-linux-gnu-ld: cannot find /usr/lib/llvm-10/lib/clang/10.0.0/lib/linux/libclang_rt.profile-aarch64.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [GNUmakefile:329: /home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/DEBUG/DriverSample.dll] Error 1
build.py...
: error 7000: Failed to execute command
make tbuild [/home/bios/Patil/edk2/Build/MdeModule/DEBUG_CLANG35/AARCH64/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe]
build.py...
: error F002: Failed to build module
/home/bios/Patil/edk2/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf [AARCH64, CLANG35, DEBUG]
Failed -
Build end time: 00:33:01, Aug.02 2022
Build total time: 00:00:03
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.