Skip to content

Can't build project under Windows (WSL1, WSL2, or pseudoenvironments) #46

@TheLogan

Description

@TheLogan

I've been trying to build the project today and I get as far as running the make script (something I'm quite unfamiliar with), I've got everything I'm doing below, I'm using GIT Bash window in Windows 10

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation
$ git clone --recurse-submodules https://github.com/j1nx/MycroftOS.git
Cloning into 'MycroftOS'...
remote: Enumerating objects: 425, done.
remote: Counting objects: 100% (425/425), done.
remote: Compressing objects: 100% (273/273), done.
remote: Total 7631 (delta 215), reused 313 (delta 133), pack-reused 7206
Receiving objects: 100% (7631/7631), 324.26 MiB | 25.27 MiB/s, done.
Resolving deltas: 100% (3529/3529), done.
Checking out files: 100% (1577/1577), done.
Submodule 'buildroot' (https://github.com/buildroot/buildroot.git) registered for path 'buildroot'
Cloning into 'C:/Home automation/MycroftOS/buildroot'...
remote: Enumerating objects: 270, done.
remote: Counting objects: 100% (270/270), done.
remote: Compressing objects: 100% (152/152), done.
remote: Total 405976 (delta 173), reused 188 (delta 118), pack-reused 405706
Receiving objects: 100% (405976/405976), 120.38 MiB | 13.06 MiB/s, done.
Resolving deltas: 100% (269821/269821), done.
Submodule path 'buildroot': checked out '6b8e73d6a1958fcf441d91338c64c73aadcc43e4'

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation
$ cd MycroftOS/

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation/MycroftOS (develop)
$ git checkout develop
Already on 'develop'
Your branch is up to date with 'origin/develop'.

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation/MycroftOS (develop)
$ git submodule update --remote --merge
Updating 6b8e73d6a1..efca26a405
Fast-forward
 CHANGES                                            |  37 +++++
 Makefile                                           |   4 +-
 linux/linux.hash                                   |   4 +-
 .../binutils/{2.35.1 => 2.35.2}/0001-sh-conf.patch |   0
 .../0002-poison-system-directories.patch           |   0
 package/binutils/Config.in.host                    |   4 +-
 package/binutils/binutils.hash                     |   2 +-
 package/busybox/udhcpc.script                      |   2 +-
 package/dhcpcd/dhcpcd.mk                           |   1 +
 ...d-fix-Werror=format-overflow-under-gcc-10.patch | 162 +++++++++++++++++++++
 package/intel-mediadriver/intel-mediadriver.mk     |   6 +-
 package/linux-headers/Config.in.host               |   4 +-
 package/mutt/0002-CVE-2021-3181-1.patch            |  40 +++++
 package/mutt/0003-CVE-2021-3181-2.patch            |  53 +++++++
 package/mutt/0004-CVE-2021-3181-3.patch            |  30 ++++
 package/mutt/mutt.mk                               |   5 +
 package/privoxy/privoxy.hash                       |   8 +-
 package/privoxy/privoxy.mk                         |   2 +-
 package/pugixml/pugixml.hash                       |   4 +-
 package/pugixml/pugixml.mk                         |   4 +-
 package/python-django/python-django.hash           |   6 +-
 package/python-django/python-django.mk             |   4 +-
 package/socat/socat.hash                           |  10 +-
 package/socat/socat.mk                             |   2 +-
 ...arch-sh-Add-64-bit-time-types-from-kernel.patch |  33 +++++
 .../wireguard-linux-compat.hash                    |   4 +-
 .../wireguard-linux-compat.mk                      |   2 +-
 .../xserver_xorg-server/xserver_xorg-server.mk     |   3 +
 package/xenomai/Config.in                          |   6 +-
 support/dependencies/check-host-cmake.mk           |   5 +
 support/misc/Vagrantfile                           |   2 +-
 31 files changed, 409 insertions(+), 40 deletions(-)
 rename package/binutils/{2.35.1 => 2.35.2}/0001-sh-conf.patch (100%)
 rename package/binutils/{2.35.1 => 2.35.2}/0002-poison-system-directories.patch (100%)
 create mode 100644 package/intel-mediadriver/0002-build-fix-Werror=format-overflow-under-gcc-10.patch
 create mode 100644 package/mutt/0002-CVE-2021-3181-1.patch
 create mode 100644 package/mutt/0003-CVE-2021-3181-2.patch
 create mode 100644 package/mutt/0004-CVE-2021-3181-3.patch
 create mode 100644 package/uclibc/0001-arch-sh-Add-64-bit-time-types-from-kernel.patch
Submodule path 'buildroot': merged in 'efca26a4051372112c03c326642a74f2981639a3'

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation/MycroftOS (develop)
$

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation/MycroftOS (develop)
$ ./scripts/br-patches.sh
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-idna/python-idna.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-idna/python-idna.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-pillow/Config.in
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-pillow/python-pillow.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-pillow/python-pillow.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-psutil/python-psutil.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-psutil/python-psutil.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3-psutil/python3-psutil.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-serial/python-serial.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-serial/python-serial.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-networkmanager/0001-Add-new-device-types.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-websocket-client/python-websocket-client.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-websocket-client/python-websocket-client.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-arrow/python-arrow.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-arrow/python-arrow.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-pyjwt/python-pyjwt.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-pyjwt/python-pyjwt.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-pyyaml/python-pyyaml.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-pyyaml/python-pyyaml.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3-pyyaml/python3-pyyaml.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-dateutil/Config.in
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-dateutil/python-dateutil.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-dateutil/python-dateutil.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-ifaddr/python-ifaddr.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-ifaddr/python-ifaddr.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-pytz/python-pytz.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-alsaaudio/python-alsaaudio.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-alsaaudio/python-alsaaudio.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-ipaddress/Config.in
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-pip/python-pip.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-pip/python-pip.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-tornado/python-tornado.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python-tornado/python-tornado.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/mimic/0001-Disable-Werror.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/mimic/0002-Fix-pulseaudio-library-linking.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/mimic/Config.in
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/mimic/mimic.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/mimic/mimic.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/pulseaudio/pulseaudio.mk
Hunk #1 succeeded at 157 (offset -5 lines).
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0001-Make-the-build-of-pyc-files-conditional.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0002-Disable-buggy_getaddrinfo-configure-test-when-cross-.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0003-Add-infrastructure-to-disable-the-build-of-certain-e.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0004-Adjust-library-header-paths-for-cross-compilation.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0005-Don-t-look-in-usr-lib-termcap-for-libraries.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0006-Don-t-add-multiarch-paths.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0007-Abort-on-failed-module-build.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0008-Serial-ioctl-workaround.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0009-Do-not-adjust-the-shebang-of-Python-scripts-for-cros.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0010-Misc-python-config.sh.in-ensure-sed-invocations-only.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0011-Override-system-locale-and-set-to-default-when-addin.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0012-Add-importlib-fix-for-PEP-3147-issue.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0013-Add-an-option-to-disable-installation-of-test-module.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0014-Add-an-option-to-disable-pydoc.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0015-Add-an-option-to-disable-lib2to3.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0016-Add-option-to-disable-the-sqlite3-module.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0017-Add-an-option-to-disable-the-tk-module.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0018-Add-an-option-to-disable-the-curses-module.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0019-Add-an-option-to-disable-expat.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0020-Add-an-option-to-disable-CJK-codecs.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0021-Add-an-option-to-disable-NIS.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0022-Add-an-option-to-disable-unicodedata.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0023-Add-an-option-to-disable-IDLE.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0024-Add-an-option-to-disable-decimal.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0025-Add-an-option-to-disable-the-ossaudiodev-module.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0026-Add-an-option-to-disable-openssl-support.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0027-Add-an-option-to-disable-the-readline-module.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0028-Add-options-to-disable-zlib-bzip2-and-xz-modules.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0029-python-config.sh-don-t-reassign-prefix.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0030-Fix-cross-compiling-the-uuid-module.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0031-Add-an-option-to-disable-uuid-module.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0032-fix-building-on-older-distributions.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0033-configure.ac-fixup-CC-print-multiarch-output-for-mus.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/0034-lib-crypt-uClibc-ng-doesn-t-set-errno-when-encryptio.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/python3.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/python3/python3.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/shairport-sync/shairport-sync.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file linux/Config.in
Hunk #1 succeeded at 424 (offset 7 lines).
(Stripping trailing CRs from patch; use --binary to disable.)
patching file linux/linux.mk
Hunk #1 succeeded at 390 (offset -40 lines).
Hunk #2 succeeded at 479 (offset -37 lines).
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/rpi-firmware/Config.in
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/rpi-firmware/rpi-firmware.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/rpi-firmware/rpi-firmware.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/rpi-wifi-firmware/rpi-wifi-firmware.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/rpi-wifi-firmware/rpi-wifi-firmware.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/kf5/kf5-kcoreaddons/kf5-kcoreaddons.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/kf5/kf5-networkmanager-qt/kf5-networkmanager-qt.hash
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/kf5/kf5.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/qt5/qt5webengine/qt5webengine.mk
Hunk #1 succeeded at 51 with fuzz 2 (offset -1 lines).
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/wpewebkit/wpewebkit.mk
Hunk #1 succeeded at 84 with fuzz 1 (offset 12 lines).
(Stripping trailing CRs from patch; use --binary to disable.)
patching file package/spidermonkey/spidermonkey.mk
(Stripping trailing CRs from patch; use --binary to disable.)
patching file support/scripts/mkusers

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation/MycroftOS (develop)
$ make clean
C:/Program Files (x86)/GnuWin32/bin/make -C buildroot BR2_EXTERNAL=../buildroot-external clean
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:/Program Files (x86)/GnuWin32/bin/make -C buildroot BR2_EXTERNAL=../buildroot-external clean'
make: *** [clean] Error 1

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation/MycroftOS (develop)$ make
mkdir -p release
config rpi3_64-gui
C:/Program Files (x86)/GnuWin32/bin/make -C buildroot BR2_EXTERNAL=../buildroot-external "rpi3_64-gui_defconfig"
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:/Program Files (x86)/GnuWin32/bin/make -C buildroot BR2_EXTERNAL=../buildroot-external "rpi3_64-gui_defconfig"'
make: *** [rpi3_64-gui-config] Error 1

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation/MycroftOS (develop)
$ make all
config rpi3_64-gui
C:/Program Files (x86)/GnuWin32/bin/make -C buildroot BR2_EXTERNAL=../buildroot-external "rpi3_64-gui_defconfig"
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:/Program Files (x86)/GnuWin32/bin/make -C buildroot BR2_EXTERNAL=../buildroot-external "rpi3_64-gui_defconfig"'
make: *** [rpi3_64-gui-config] Error 1

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation/MycroftOS (develop)
$ make rpi3-config
make: *** No rule to make target `rpi3-config'.  Stop.

Logan@DESKTOP-ANBSM94 MINGW64 /c/Home automation/MycroftOS (develop)
$ make rpi3
make: *** No rule to make target `rpi3'.  Stop.

As you can see, fails in the make step, and I can't figure out why... any pointers?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions