Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cowpatch.sh: line 103: patch: not found #167

Open
magicse opened this issue Feb 16, 2023 · 3 comments
Open

cowpatch.sh: line 103: patch: not found #167

magicse opened this issue Feb 16, 2023 · 3 comments

Comments

@magicse
Copy link

magicse commented Feb 16, 2023

make TARGET=arm-linux-musleabihf GCC_CONFIG="--with-arch=armv7-a --with-fpu=vfpv3-d16"
case "gcc-9.4.0" in /) exit 1 ;; esac
rm -rf gcc-9.4.0.tmp
mkdir gcc-9.4.0.tmp
( cd gcc-9.4.0.tmp && /home/musl-cross-make/cowpatch.sh -I ../gcc-9.4.0.orig )
test ! -d patches/gcc-9.4.0 || cat patches/gcc-9.4.0/* | ( cd gcc-9.4.0.tmp && /home/musl-cross-make/cowpatch.sh -p1 )
/home/musl-cross-make/cowpatch.sh: line 103: patch: not found
make: *** [Makefile:139: gcc-9.4.0] Error 127

@ryanwoodsmall
Copy link

You need to install patch, gcc, binutils, etc., development tools.

  • debian/ubuntu/etc:
    • sudo apt install build-essential
  • rhel/centos/alma/rocky/fedora:
    • sudo yum group install "Development Tools" # for rhel/centos/... <= 7
    • sudo dnf group install "Development Tools" # for rhel/alma/rocky/... >= 8

@magicse
Copy link
Author

magicse commented Feb 17, 2023

Alpine linux don't have build-essential

@wdlkmpx
Copy link

wdlkmpx commented Feb 17, 2023

The patch command is found in the patch package
apk add patch

But many other packages might be mising
apk add build-base

If packages are still missing, this may help
apk add linux-headers autoconf automake libtool bison

I recommend using gcc cross compilers from musl.cc, completely static and work on any distro and x86 cpu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants