Giter Club home page Giter Club logo

Comments (13)

fbergama avatar fbergama commented on August 16, 2024 1

I've just merged the fix into master.

from pigfx.

fbergama avatar fbergama commented on August 16, 2024

I confirm the problem. For a strange reason the uspi commit I was linking is no more present in their history.

I'll fix this asap. In the meanwhile you should be able to solve by doing the following:

git submodule update --init
cd uspi
git fetch
git pull
./make all

optionally, you may need to change arm-linux-gnueabihf- with arm-none-aeabi- in uspi/Rules.mk

from pigfx.

foxweb avatar foxweb commented on August 16, 2024

Thanks!

Set PREFIX ?= arm-none-eabi- in uspi/Rules.mk and ./makeall was effect. uspi builded successfully.

But make a build of pigfx was not so succefully:

2016-09-09_10-50-36

from pigfx.

fbergama avatar fbergama commented on August 16, 2024

Can you please list me the output of the following command?

$ arm-none-eabi-gcc -print-libgcc-file-name

it looks like the gnu c library is not linked properly

from pigfx.

foxweb avatar foxweb commented on August 16, 2024

/usr/local/gcc-arm-none-eabi-5_4-2016q2/bin/../lib/gcc/arm-none-eabi/5.4.1/libgcc.a

from pigfx.

fbergama avatar fbergama commented on August 16, 2024

Your error looks quite strange to me. I can't understand from your listing if it's at compile or link stage. But I can tell you that all those undefined references are from the lib gcc that should be provided by libgcc.a

I've tested my code both on Mac OS X El Capitan (your version!) and Linux Ubuntu xenial with no issues, so I'm wondering how to replicate the problem on my setup.
Tomorrow I'll do some more experiments on that. In the meanwhile, in the bin directory you can find a pre-compiled binary ready to be copied on a raspi sd card.

from pigfx.

foxweb avatar foxweb commented on August 16, 2024

Hmmm... compiled successfully with monkey patching:

src/gfx.c:

inline void __swap__( int* a, int* b )
inline int __abs__( int a )
// replaced with
void __swap__( int* a, int* b )
int __abs__( int a )

src/console.c

char buffer[32] = {0};
// replaced with
char buffer[32];

May be I have wrong versions of toolchain's utilities? For example:

$ ctags --help                                                                                                                                 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ctags: illegal option -- -

Sorry, I'm not so skilled in c-magic and toolchains. I'm use hombrew and xcode for installing tools for web-developing (lib-some-thing and etc). May be some conflicts with it?

from pigfx.

foxweb avatar foxweb commented on August 16, 2024

2016-09-14_02-16-27

from pigfx.

TheCodeman avatar TheCodeman commented on August 16, 2024

If you use the same version as the author it builds fine .
https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q2-update
ken

from pigfx.

fbergama avatar fbergama commented on August 16, 2024

Ok it depends on your toolchain. I'll check if your changes are also compatible with mine and patch the code

from pigfx.

fbergama avatar fbergama commented on August 16, 2024

I've patched the code in the issue_1_fix branch. Can you please test it if it's working on your setup before I merge on the master branch?

Thank you

from pigfx.

foxweb avatar foxweb commented on August 16, 2024

Ok, @fbergama your patch is fixed bug.

2016-09-14_13-14-41

from pigfx.

foxweb avatar foxweb commented on August 16, 2024

My version:

gcc version 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715] (GNU Tools for ARM Embedded Processors)

from pigfx.

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.