obdev / crosspack-avr Goto Github PK
View Code? Open in Web Editor NEWScript and associated files for building avr-gcc and related tools on Mac OS X with Xcode 4
License: GNU General Public License v2.0
Script and associated files for building avr-gcc and related tools on Mac OS X with Xcode 4
License: GNU General Public License v2.0
Unfortunately, simavr does not compile out of the box. It depends on ELF headers, which cannot be found on OS X.
Current build fails befause the link to gmp has changed from /gmp to /pub/gmp.
ftp://ftp.gmplib.org/pub/gmp/
The scripts downloads a '404 not found' response and tries to untar it. I suggest using the -f flag in curl to catch server error responses.
I got "error: Oops, mp_limb_t is 32 bits, but the assembler code in this configuration expects 64 bits." during build.
I had to change the CFLAGS in mkbuild.sh from i386 to x86_64 to resolve this.
The compile succeeds but results in an AVRDUDE build without USB support.
During compile the following check fails:
checking for usb_get_string_simple in -lusb... no
As well as in the Configuration Summary:
DON'T HAVE libelf
DON'T HAVE libusb
DON'T HAVE libusb_1_0
DON'T HAVE libftdi1
I found I was able to compile with USB support by switching from using version libusb_compat=0.1.5 and rolled back to use libusb 0.1.12 (legacy).
I spent quite some time trying to set the right flag to set to get AVRDUDE to compile with the latest version of LIBUSB, but I couldn't solve it.
Anyone have any ideas?
~R
Just figured out, that the download source is not working for mpc:
https://github.com/obdev/CrossPack-AVR/blob/master/mkdist.sh#L470
as listed here:
http://www.multiprecision.org/mpc/download.html
the correct download link would be:
http://www.multiprecision.org/downloads/mpc-1.0.tar.gz
Seems like the latest commit does not point to the proper avr-binutils location, this is the ouptut
Commit:
λ CrossPack-AVR ~> git show -s
commit a34385512e77f262a82cee46a2dd46f390837b20 (HEAD -> master, origin/master, origin/HEAD)
Merge: bd106d6 18821bd
Author: starkjohann <[email protected]>
Date: Mon Mar 20 11:10:48 2017 +0100
Merge pull request #11 from easybe/work
Update packages
And output of running ./mkdist.sh
λ CrossPack-AVR ~> ./mkdist.sh
Starting download at 2019-06-19 22:40:29
=== Downloading package avr-binutils-2.26.20160125.tar.bz2
curl: (7) Failed to connect to distribute.atmel.no port 80: Network is unreachable
################################################################################
Failed to download http://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.5.4/avr-binutils.tar.bz2
################################################################################
I'm getting this error when trying to install on my system, but I can't figure out what is wrong.
At least on Mac OS 10.11+ GNU make version 3.81 or newer is installed, so we do not need to build our own. We could check the installed version but that would require some extra lines. What do you suggest?
Error:
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
Referenced from: /usr/local/CrossPack-AVR-20131216/bin/make
Expected in: /usr/lib/libSystem.B.dylib
After fixing the broken url to download mpc-1.0.tar.gz as previously mentioned I am getting the error:
"configure: error: could not find a working compiler"
Running OSX 10.14.3
I noticed that the script couldn't download packages from Sourceforge.net. To let the script working, change lines 425 and 426 like below:
It seems that a new version of simulavr is available after the project had been dead for awhile. Is it possible to include this in Crosspack? See:
http://savannah.nongnu.org/forum/forum.php?forum_id=7109
Thank you,
Markus
Lines 376 and 377 of iotn441.h incorrectly define U0MAP and SPIMAP as 1 and 0, respectively, when they should be reversed (U0MAP = 0, SPIMAP = 1).
in my mac i have macos HighSierra 10.13.6 and xcode 10.1 but when i give /.make command the installation dont work can anyone give me a hand ? thanks to all, sorry form my english
This seems to be a problem with paths. Gcc outputs relative paths with errors and warnings, because files were specified with relative paths in the compiler command line. Xcode therefore does not know where to search for the file.
To get the latest version 20131216 to run under Yosemite (10.10) with Xcode 6, only a few tweaks to mkdist.sh are required.
In mkdist.sh, around line 50 replace:
sysroot="$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
with:
sysroot="$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"
It does not like the GMP FTP path anymore, but it'll work fine with the HTTP path-
so near line 462, replace:
getPackage http://ftp.gmplib.org/gmp/gmp-"$version_gmp".tar.bz2
with
getPackage http://gmplib.org/download/gmp/gmp-"$version_gmp".tar.bz2
(You may want to update to more recent package versions as well, but that should probably be in a different 'Issues' thread.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.