Code Monkey home page Code Monkey logo

Comments (5)

WinterMute avatar WinterMute commented on June 29, 2024 1

Finally sorted a release with the upstream update. :)

from buildscripts.

Kingwad avatar Kingwad commented on June 29, 2024

I get the same issue. I am building on a Debian Jessie system with gcc 4.9.2, if that helps with tracking this down.

make[1]: Entering directory '/home/zomnut/build/buildscripts/.devkitARM/dfu-util-0.8.1'
Making all in src
make[2]: Entering directory '/home/zomnut/build/buildscripts/.devkitARM/dfu-util-0.8.1/src'
  CC     main.o
In file included from main.c:34:0:
portable.h:17:17: fatal error: io.h: No such file or directory
 # include <io.h>
                 ^
compilation terminated.
Makefile:334: recipe for target 'main.o' failed

Failing code snippet in portable.h

#ifdef HAVE_FTRUNCATE
# include <unistd.h>
#else
# include <io.h>
#endif /* HAVE_FTRUNCATE */

from buildscripts.

carstene1ns avatar carstene1ns commented on June 29, 2024

@dacox: The compiled gcc is only for the target software, dfu-util is run on the host, so it does not interfere here.

The header file of the dfu-util package tries to guess which system it is build on. If it is a POSIX compatible system, it should include the unistd header and under MSVC (Windows) it would include the io header. However, this check is broken, as it does assume every POSIX system has the ftruncate function (which is not true for you). Funny thing is, it is not even used afterwards...

I think what could be done is changing the check so it uses HAVE_UNISTD_H, this would be safe because autotools detect if the unistd header is available and MSVC does not define it.
However, as dfu-util is external software this really should be fixed upstream. I am going to open a bug report and link this issue here.

from buildscripts.

Kingwad avatar Kingwad commented on June 29, 2024

Thanks @carstene1ns. I'm adding a link here to the dfu-util bug report for reference. http://sourceforge.net/p/dfu-util/tickets/9/

from buildscripts.

carstene1ns avatar carstene1ns commented on June 29, 2024

This has been fixed upstream, so now we only need to wait for updated tarballs.

from buildscripts.

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.