Giter Club home page Giter Club logo

edk2's People

Contributors

bobcf avatar dandanbi avatar ftian1 avatar hhtian avatar hwu25 avatar jcarsey avatar jiaxinwu avatar jljusten avatar jljusten2 avatar jwang36 avatar jyao1 avatar kraxel avatar lcp avatar lersek avatar lgao4 avatar lzeng14 avatar makubacki avatar mdkinney avatar mxu9 avatar niruiyu avatar oliviermartin avatar pierregondois avatar samimujawar avatar sfu5 avatar shenglei10 avatar sun-rui avatar vanjeff avatar ydong10 avatar zhangchaointel avatar zhichaogao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

edk2's Issues

GnuMake Linker error while building Helloworld application in edk2 in windows using clang38

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]

  • Failed -
    Build end time: 11:04:24, Jul.28 2022
    Build total time: 00:00:08

C:\Users\I31184\Patil\edk2-working>

cannot find /usr/lib/llvm-10/lib/clang/10.0.0/lib/linux/libclang_rt.profile-aarch64.a: No such file or directory

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.