Comments (5)
Finally sorted a release with the upstream update. :)
from buildscripts.
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.
@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.
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.
This has been fixed upstream, so now we only need to wait for updated tarballs.
from buildscripts.
Related Issues (20)
- when i install devkitA64,return 404 HOT 2
- bin2s doesn't replace dashes (and probably more stuff) with underscores
- 404 error when downloading gdb-8.2 HOT 6
- Fail to extract "-.tar" HOT 2
- Linux installation for user HOT 1
- Bug report link is broken HOT 1
- (please delete this issue) HOT 2
- (please delete this issue) HOT 2
- libnx 2.2.0 bz2 unavailable HOT 1
- Include rules in build HOT 3
- Fatal error: invalid -march= option: 'armv4t' HOT 3
- return value uninitialized in utimes HOT 1
- Latest devkitPPC GCC Regression HOT 9
- attempt to download binutils-2.34.tar.xz results in 404 HOT 4
- Missing source archives HOT 4
- buildscripts fail (404) requesting these files from download.devkitpro.org HOT 7
- ioctl missing from libsysbase HOT 17
- Some parts of the devkitARM build scripts assume /opt/devkitpro is the installation directory and fail to build if a different path is chosen HOT 5
- arm-none-eabi-gcc error: `no iconv implementation` on MSYS2 HOT 3
- Linker attempts to load dlsym _onload which does not exist HOT 2
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 buildscripts.