Coder Social home page Coder Social logo

edk2-linux-toolchain's Introduction

edk2-linux-toolchain

simplifies UEFI development with a easy to use toolchain and make tool

Usage: makeefi [options] SOURCE DSC [INF]

SOURCE: directory to use as the workspace
DSC: dsc file relative to workspace. Can also be the name of a globally registered dsc
INF: inf file relative to workspace. If enabled, the dsc's Components section will be ignored

  -j, --jobs=N        Allow N jobs at once; 1 jobs with no arg.
  -a, --arch=NAME     Force architecture to use. This must the EDKII arch name e.g. X64
  -s, --silent        Make use of silent mode of (n)make.
  -q, --quiet         Disable all messages except FATAL ERRORS.
  -v, --verbose       Turn on verbose output with informational messages printed, including library instances selected, final dependency
                      expression, and warning messages, etc.

Help options:
  -?, --help          Show this help message
      --usage         Display brief usage message

edk2-linux-toolchain's People

Contributors

m1cha avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

edk2-linux-toolchain's Issues

Compilation fails with `error: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]`

When I compile this software, compilation fails with
main.c:432:17: error: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/[...]/.cache/yay/edk2-linux-toolchain/src/edk2-linux-toolchain/makeefi
[ 50%] Building C object CMakeFiles/makeefi.dir/src/main.c.o
/home/[...]/.cache/yay/edk2-linux-toolchain/src/edk2-linux-toolchain/makeefi/src/main.c: In function ‘main’:
/home/[...]/.cache/yay/edk2-linux-toolchain/src/edk2-linux-toolchain/makeefi/src/main.c:407:13: error: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
  407 |             write(fd, &character, 1);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~
/home/[...]/.cache/yay/edk2-linux-toolchain/src/edk2-linux-toolchain/makeefi/src/main.c:408:13: error: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
  408 |             write(fd, arg_inffile, strlen(arg_inffile));
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/[...]/.cache/yay/edk2-linux-toolchain/src/edk2-linux-toolchain/makeefi/src/main.c:431:17: error: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
  431 |                 write(fd, &character, 1);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
/home/[...]/.cache/yay/edk2-linux-toolchain/src/edk2-linux-toolchain/makeefi/src/main.c:432:17: error: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
  432 |                 write(fd, prefix, strlen(prefix));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/[...]/.cache/yay/edk2-linux-toolchain/src/edk2-linux-toolchain/makeefi/src/main.c:433:17: error: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
  433 |                 write(fd, pathbuf, strlen(pathbuf));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/makeefi.dir/build.make:76: CMakeFiles/makeefi.dir/src/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/makeefi.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

I build according to your PKGBUILD, gcc version is 13.1.1.

The error also appears if I add

    CFLAGS+=' -Wno-error=unused-result'
    CXXFLAGS+=' -Wno-error=unused-result'
    export CFLAGS
    export CXXFLAGS

to build() in your PKGBUILD.

Regards!

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.