Coder Social home page Coder Social logo

obdev / crosspack-avr Goto Github PK

View Code? Open in Web Editor NEW
229.0 229.0 54.0 128 KB

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

PHP 2.02% Shell 42.79% CSS 2.55% C 0.40% HTML 48.15% Makefile 4.09%

crosspack-avr's People

Contributors

easybe avatar starkjohann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crosspack-avr's Issues

Add simavr

Unfortunately, simavr does not compile out of the box. It depends on ELF headers, which cannot be found on OS X.

mkdists fails as gmp URL has changed.

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.

GMP compile error on Mavericks / XCode 5

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.

AVRDUDE does not link to LIBUSB during compile

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

avr-binutils-2.26.*.tar.bz2 download broken

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
################################################################################

Build fails due to `make` built by us

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

Mojave issues

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

Updates to mkdist.sh to run under Yosemite with Xcode 6

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

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.