Code Monkey home page Code Monkey logo

Comments (12)

gfwilliams avatar gfwilliams commented on June 28, 2024 1

You mean when using GitHub actions it doesn't upload the binary?

Honestly, I thought that wasn't worth it. When you're on Linux or WSL you just type make on your PC and it's built in about 5 seconds, if that.

from espruino.

d3nd3 avatar d3nd3 commented on June 28, 2024

Having trouble:

gcc: warning: Git: linker input file unused because linking not done
gcc: error: Git: linker input file not found: No such file or directory

from espruino.

gfwilliams avatar gfwilliams commented on June 28, 2024

What are you doing that's causing the trouble? What commands? where? what OS?

from espruino.

d3nd3 avatar d3nd3 commented on June 28, 2024
source ./scripts/provision.sh LINUX
make

Windows 11, WSL2 debian

CC obj/src/jsflash.o
CC obj/src/jspin.o
CC obj/src/jsinteractive.o
CC obj/src/jsdevices.o
src/jsflash.c: In function ‘jsfCacheClearFile’:
...
...
gcc: warning: Git: linker input file unused because linking not done
gcc: error: Git: linker input file not found: No such file or directory
gcc: warning: 2188a9236: linker input file unused because linking not done
gcc: error: 2188a9236: linker input file not found: No such file or directory
make: *** [Makefile:835: obj/src/jsflash.o] Error 1
make: *** Waiting for unfinished jobs....
gcc: warning: Git: linker input file unused because linking not done
gcc: error: Git: linker input file not found: No such file or directory
gcc: warning: 2188a9236: linker input file unused because linking not done
gcc: error: 2188a9236: linker input file not found: No such file or directory
make: *** [Makefile:835: obj/src/jspin.o] Error 1

I aliased python3 to python, to fix some env error. Hope python3 is fine.

from espruino.

gfwilliams avatar gfwilliams commented on June 28, 2024

That's strange - I wonder why it says Git: though?

I just tried again and it works fine here.

Is it possible you're trying to built it through Git Bash and not WSL?

from espruino.

d3nd3 avatar d3nd3 commented on June 28, 2024

I am definitely in a debian shell, I will try a clean repo.
pulled directly from espruino/Espruino.
Ran:

make

same errors.
gcc version: gcc (Debian 12.2.0-14) 12.2.0
python version: Python 3.11.2

I can try it on my laptop. It runs linux.

from espruino.

d3nd3 avatar d3nd3 commented on June 28, 2024

Works on my laptop. Hm.

from espruino.

gfwilliams avatar gfwilliams commented on June 28, 2024

Maybe try V=1 make and see if it gives some clue as to why it's saying 2188a9236: and Git:

Only other thing I can think is maybe Git is set up to check out everything with Windows Line Endings, and that's why it's screwing it up?

from espruino.

d3nd3 avatar d3nd3 commented on June 28, 2024

I am using autocrlf=input for linux git
and autocrlf=true for windows git

and I do have a weird git wrapper, that either calls windows git or linux git depending on CWD.

/usr/local/bin/git:

#!/usr/bin/env bash
set -e
if [[ $(pwd -P) =~ ^/mnt/. ]]
    then
        echo "windows Git"
        exec /mnt/c/Program\ Files/Git/cmd/git.exe "$@"
    else
        echo "linux Git"
        exec /usr/bin/git "$@"
fi

should I try disable this wrapper?

I have idea, I will try my wsl1 ubuntu distro

from espruino.

d3nd3 avatar d3nd3 commented on June 28, 2024

Ok, it works on my ubuntu wsl1, which ran python2. It might just be that it works only with python2?

Which python version do you use?
Nevermind, it also works with python3 on ubuntu wsl1.

Problem resolved, my wrapper was causing it. You must have some unique scripts that interface the git command in a way that my wrapper does not support!

from espruino.

d3nd3 avatar d3nd3 commented on June 28, 2024

Okay, that is really funny, my cheeky:
echo "windows Git"
Obviously messed up some output from some of the scripts, if its piped or something.!!!
Silly me! Sorry.

from espruino.

gfwilliams avatar gfwilliams commented on June 28, 2024

Ok, great! :)

from espruino.

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.