Comments (16)
Thank you for reporting issue.
Can you provide more details on your build environment? For example, OS, compiler version, etc.
This file is part of the EDKII base tool, and it is the same as EDKII repo. I guess it might be something to do with the supported compiler version.
from slimbootloader.
gcc (GCC) 8.2.1 20181215 (Red Hat 8.2.1-6)
Copyright (C) 2018 Free Software Foundation, Inc.
Fedora29
from slimbootloader.
I've checked EDKII it forces -Wno-stringop-truncation
from slimbootloader.
../BaseTools/Source/C/Makefiles/header.makefile
ifeq ($(DARWIN),Darwin)
assume clang or clang compatible flags on OS X
BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib -g
else
BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g
endif
from slimbootloader.
Thank you for the information. We will take a look into it.
from slimbootloader.
I am using gcc 8.2.0 on Ubuntu18, but there is no compile error. Can you give more information here?
gcc -v
uname -a
Can you compile a single file as below?
cd BaseTools/Source/C/Common
With Wno-stringop-truncation
gcc -c -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2 EfiUtilityMsgs.c -o EfiUtilityMsgs.o
Without Wno-stringop-truncation
gcc -c -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-restrict -Wno-unused-result -nostdlib -g
-O2 EfiUtilityMsgs.c -o EfiUtilityMsgs.o
Please share your information and the result.
from slimbootloader.
Confirmed this issue building BaseTools can be duplicated on Fedora 29 when building BaseTools @ f9397b3.
It looks like upstream EDK2 @ bac50df can build BaseTools without issues. After searching through EDK2 history--appears resolved by this commit: 1d212a8. Probably best to sync with upstream EDK2 soon.
from slimbootloader.
from slimbootloader.
I think I can apply this patch from edk2 looks like less overhead that switching to ubuntu :)
from slimbootloader.
Sure. Meanwhile we also plan to merge the EDK2 fix into Slim Bootloader.
from slimbootloader.
@tomasbw Please feel free to apply the patch. We will follow up next steps. Thanks.
from slimbootloader.
@tomasbw To follow up this issue, #91 has been merged. Can you try the latest code?
from slimbootloader.
The compilation works, there are some issues with the quality of the patches, but you probably just brought them from the EDKII. I left some comments.
from slimbootloader.
@tomasbw Right, it was brought from EDKII and we keep the original file format. We can use dos2unix, but it will convert entire file and make hard to diff the change.
from slimbootloader.
@tomasbw Let me close this issue. Please let us know if you have any other issues or feel free to open your concern. Thanks.
from slimbootloader.
Ok
from slimbootloader.
Related Issues (20)
- [ICX-D] Slimbootloader for Idaville LCC HOT 2
- Platform Auth HOT 1
- [EHL] CAN0 TX work, RX doesn't work in ubuntu22. HOT 24
- Managing New Version of FSP Binaries HOT 2
- [EHL] soft-power-off can't shutdown board power HOT 3
- [EHL] RESET botton take long time to do real reset. HOT 2
- [EHL] How to enable SATAXPCIE auto detect function. HOT 23
- [ICX-D] Not being able to reproduce PCR 7 value using Authority PCR event log HOT 1
- [EHL] STMMAC: change MTU to a bigger value(>1508) will cause large frame(>1476) blocked HOT 1
- IsElfFormat doesn't correctly check the ELF header HOT 1
- UDK Url at slimbootloader.github.io is wrong
- GetContainerHeaderSize in ContainerLib returns 0 HOT 3
- [EHL] FPT tool not working properly HOT 5
- [EHL] EFI payload boot option changes can't be saved. HOT 1
- [EHL] sdcard not working at 1.8v signaling mode HOT 1
- Configure the system to enter the S5 state when power is restored after G3 state HOT 1
- SBL fails to reboot on TigerLake HOT 5
- [EHL] How to write some codes to do something during S0 into S5 HOT 5
- [MTL] build fail on Ubuntu HOT 3
- UP Squared V2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slimbootloader.