Package Details: microchip-mplabxc32-bin 2.50-1

Git Clone URL: (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:
Licenses: custom
Submitter: bxs
Maintainer: greyltc (mickael9, thodnev)
Last Packager: mickael9
Votes: 11
Popularity: 0.001842
First Submitted: 2012-03-24 20:37
Last Updated: 2021-02-18 22:07

Latest Comments

1 2 3 4 5 6 Next › Last »

lsigma commented on 2021-02-03 20:08

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
@@ -4,7 +4,7 @@

 pkgdesc="Microchip's MPLAB XC${_number_of_bits} C compiler toolchain for all of their 32bit microcontrollers"
@@ -16,7 +16,7 @@ makedepends=(bitrock-unpacker)
 options=(!strip docs libtool emptydirs !zipman staticlibs)



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

   # Workaround to skip license checks
-  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

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

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

ashleyr commented on 2020-04-22 12:07

Issue was fixed using the modifed PKGBUILD 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

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/"
    ("package ifneeded Tcllzmadec 0.2" script)
    invoked from within
"package require Tcllzmadec"
    (file "./bitrock-unpacker.tcl" line 26)
==> ERROR: A failure occurred in build().

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.

thodnev commented on 2018-09-09 05:42

Guys, here's the latest 2.10 version PKGBUILD with NO LICENSE REQUIRED

(for those who ask -- yes, it's absolutely legal: 1. XC-32 is based on GCC. And it's open-source 2. Bad as$ Microchip make it almost impossible to build from source 3. Here all binaries of original distibution left as is ) Don't forget to add bitrock-unpacker.tcl

calcmogul commented on 2018-05-09 17:00

v2.05 moved some files around. I had to make the following changes to fix packaging: That patch also does "chmod +s" on xclm so xclm doesn't complain about it during compiler invocations.

greyltc commented on 2018-03-18 12:12

logicnotlogical, could you please post your working PKGBUILD somewhere so I don't have to re-invent the wheel?

logicnotlogical commented on 2017-12-24 16:44

I had to wrangle a lot of the package() method to get this to build successfully. notably the xclmallBin directory no longer exists, files are found at xclmBinlinux32 instead. This concerns lines 35-39 in the PKGBUILD.

anatolyb commented on 2017-01-13 09:48

replace 39'th string with this:

mv unpacked.vfs/licensecomponent/xclmallBin/etc/xclm.conf "${pkgdir}${instdir}/etc"