Git Product home page Git Product logo

Comments (16)

mauricema avatar mauricema commented on May 18, 2024

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.

tomasbw avatar tomasbw commented on May 18, 2024

gcc (GCC) 8.2.1 20181215 (Red Hat 8.2.1-6)
Copyright (C) 2018 Free Software Foundation, Inc.
Fedora29

from slimbootloader.

tomasbw avatar tomasbw commented on May 18, 2024

I've checked EDKII it forces -Wno-stringop-truncation

from slimbootloader.

tomasbw avatar tomasbw commented on May 18, 2024

../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.

mauricema avatar mauricema commented on May 18, 2024

Thank you for the information. We will take a look into it.

from slimbootloader.

myguitar avatar myguitar commented on May 18, 2024

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.

mborgerson avatar mborgerson commented on May 18, 2024

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.

rprangar avatar rprangar commented on May 18, 2024

from slimbootloader.

tomasbw avatar tomasbw commented on May 18, 2024

I think I can apply this patch from edk2 looks like less overhead that switching to ubuntu :)

from slimbootloader.

mauricema avatar mauricema commented on May 18, 2024

Sure. Meanwhile we also plan to merge the EDK2 fix into Slim Bootloader.

from slimbootloader.

myguitar avatar myguitar commented on May 18, 2024

@tomasbw Please feel free to apply the patch. We will follow up next steps. Thanks.

from slimbootloader.

myguitar avatar myguitar commented on May 18, 2024

@tomasbw To follow up this issue, #91 has been merged. Can you try the latest code?

from slimbootloader.

tomasbw avatar tomasbw commented on May 18, 2024

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.

myguitar avatar myguitar commented on May 18, 2024

@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.

myguitar avatar myguitar commented on May 18, 2024

@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.

tomasbw avatar tomasbw commented on May 18, 2024

Ok

from slimbootloader.

Related Issues (20)

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.