Package Details: microchip-mplabxc32-bin 4.35-1

Git Clone URL: https://aur.archlinux.org/microchip-mplabxc32-bin.git (read-only, click to copy)
Package Base: microchip-mplabxc32-bin
Description: Microchip's MPLAB XC32 C compiler toolchain for all of their 32bit microcontrollers
Upstream URL: https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers
Licenses: custom
Submitter: bxs
Maintainer: marceljoseph (mickael9, thodnev)
Last Packager: marceljoseph
Votes: 13
Popularity: 0.000014
First Submitted: 2012-03-24 20:37 (UTC)
Last Updated: 2023-10-18 18:53 (UTC)

Latest Comments

1 2 3 4 5 6 Next › Last »

s.f commented on 2024-03-25 13:56 (UTC) (edited on 2024-03-25 13:56 (UTC) by s.f)

Clean install; all dependencies installed by hand with makepkg.

I just re-run with LANG=C.

makepkg -si  
==> Making package: microchip-mplabxc32-bin 4.35-1 (Mon Mar 25 14:54:07 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found xc32-v4.35-full-install-linux-x64-installer.tar
==> Validating source files with sha256sums...
    xc32-v4.35-full-install-linux-x64-installer.tar ... Passed
==> Extracting sources...
  -> Extracting xc32-v4.35-full-install-linux-x64-installer.tar with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
  -> Unpacking files from Microchip's installer blob
application-specific initialization failed: 
  /usr/bin/tclkit has no VFS data to start up
can't find package starkit
    while executing
"package require starkit"
    (file "/usr/bin/sdx.kit" line 4)
    invoked from within
"source /usr/bin/sdx.kit"
    (file "/usr/bin/bitrock-unpacker" line 6)
==> ERROR: A failure occurred in build().
    Aborting...

marceljoseph commented on 2023-05-04 09:59 (UTC)

@hypothermic I think you also need to add x64 to the filename in build()

hypothermic commented on 2023-02-28 13:01 (UTC) (edited on 2023-02-28 13:02 (UTC) by hypothermic)

Microchip changed the download URLs for version 4.xx onwards.

Here is a patch for version 4.21, the latest at the time of writing:

https://gist.github.com/hypothermic/a2f3674bae5038e86a59793c3dc73163

Changes by @lightspot21 incorporated

lightspot21 commented on 2021-09-06 08:06 (UTC)

@greyltc @mickael9 @thodnev newest version available is 3.01. Patch for updating PKGBUILD:

https://gist.github.com/lightspot21/07f172dd4f93632a65b5a006d54d1d1b

Bumps version, adds rsync as makedep and changes to the more secure SHA256 hash provided by Microchip.

amakovec commented on 2021-08-25 16:28 (UTC)

rsync is currently missing as a makedepend.

lsigma commented on 2021-02-03 20:08 (UTC) (edited on 2021-02-03 20:55 (UTC) by lsigma)

The compiler is broken for ATSAME54N20A. Compiling anything with -mprocessor=ATSAME54N20A leads to the following error:

c1: error: target CPU does not support ARM mode
/opt/microchip/xc32/v2.50/bin/bin/../../lib/gcc/pic32c/6.2.1/../../../../bin/bin/pic32c-ld: cannot open linker script file ATSAME54N20A.ld.0000fdc7.00: No such file or directory

EDIT: I got it working by disabling the license check workaround, diff for that & the update to v2.50:

diff --git a/PKGBUILD b/PKGBUILD
index 7bc8eaf..44383ed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@

 _number_of_bits=32
 pkgname=microchip-mplabxc${_number_of_bits}-bin
-pkgver=2.41
+pkgver=2.50
 pkgrel=1
 pkgdesc="Microchip's MPLAB XC${_number_of_bits} C compiler toolchain for all of their 32bit microcontrollers"
 arch=(x86_64)
@@ -16,7 +16,7 @@ makedepends=(bitrock-unpacker)
 options=(!strip docs libtool emptydirs !zipman staticlibs)
 source=("http://ww1.microchip.com/downloads/en/DeviceDoc/xc${_number_of_bits}-v$pkgver-full-install-linux-installer.run")

-md5sums=('172f15c463ae3123faebe79e19d91189')
+md5sums=('5eff2f242d424b51d0986631f1e0eb83')

 install=$pkgname.install

@@ -48,5 +48,5 @@ package() {

   # Workaround to skip license checks
   # https://github.com/cv007/XC3216
-  echo -en "*cc1:+ -mafrlcsj\n\n*cc1plus:+ -mafrlcsj" > "${pkgdir}${instdir}/lib/gcc/specs"
+  # echo -en "*cc1:+ -mafrlcsj\n\n*cc1plus:+ -mafrlcsj" > "${pkgdir}${instdir}/lib/gcc/specs"
 }

CathyGarrett commented on 2020-09-27 18:39 (UTC)

I wonder when 2.40-2 is gonna come out that makes the below changes. Ho-hmm.

Pandor commented on 2020-05-23 16:08 (UTC)

The PKGBUILD posted by ashleyr works a treat. just upgraded to 2.41.

ashleyr commented on 2020-04-22 12:07 (UTC) (edited on 2020-04-23 02:52 (UTC) by ashleyr)

Issue was fixed using the modifed PKGBUILD https://pastebin.com/3L9NZDun also suggest that the comment in bitrock-unpacker.tcl be updated to remove the 32 bit notes.

Needed to uninstall lib32-tclkit, I uninstalled sdx as well to allow this.

Then changed the dependencies for x86_64 to be tclkit and rebuilt the package and it worked.

EDIT: can probably remove the 32 bit support from the PKGBUILD now that it is 64 bit only.

Microchip are shipping 64 bit executables as of 2.40 it seems. 2.30 was still a 32 bit executable.

ashleyr commented on 2020-04-22 03:01 (UTC) (edited on 2020-04-22 11:05 (UTC) by ashleyr)

Having trouble extractig the v2.40-1 version. I get the following error:

==> Starting build()...
  -> Unpacking files from installer
couldn't load file "/tmp/tcl_9p9SHN": /tmp/tcl_9p9SHN: wrong ELF class: ELFCLASS64
    while executing
"load /installer/libraries/lzma-decoder-linux-x64/liblzmadec0.2.so"
    ("package ifneeded Tcllzmadec 0.2" script)
    invoked from within
"package require Tcllzmadec"
    (file "./bitrock-unpacker.tcl" line 26)
==> ERROR: A failure occurred in build().
    Aborting...

However the previous 2.10-1 build works fine (re-ran it to verify).

After some digging, the download is now an ELF64 bit binary, the previous version was an ELF32.