MPLABX munmap makefle recipe error

Re: MPLABX munmap -- fixDeps bug???

Postby CaptFrito » Thu Jul 17, 2014 9:05 pm

Okay, so this is a little aggravating.

With the following inlcudes (and files located accordingly), I can do a full clean build and a fuull debug clean build without a problem:

Code: Select all
#include "libs/TCPIP.h"
#include "max32/max32compiler.h"
#include "src/i2c_eeprom.h"
#include "src/stepper.h"
#include "src/i2c_memmap.h"
#include "commands.h"
#include <plib.h>


But.... if I change #include "commands.h" to #include "src/commands.h" as shown if will clean build but it fails doing a clean debug build (I moved the .c and .h files to src/ and changed the includes in the affected files themselves):

Code: Select all
#include "libs/TCPIP.h"
#include "max32/max32compiler.h"
#include "src/i2c_eeprom.h"
#include "src/stepper.h"
#include "src/i2c_memmap.h"
#include "src/commands.h"
#include <plib.h>


Here is the error output from the clean and build for dugging the main project:

"/opt/microchip/xc32/v1.32/bin/xc32-gcc" -g -D__DEBUG -D__MPLAB_DEBUGGER_REAL_ICE=1 -fframe-base-loclist -x c -c -mprocessor=32MX795F512L -Ilegacy_demos -Ilibs -Imax32 -Isrc -Wall -MMD -MF build/default/debug/Main.o.d -o build/default/debug/Main.o Main.c
*** Error in `fixDeps': munmap_chunk(): invalid pointer: 0x084e4598 ***
make[2]: *** [build/default/debug/src/commands.o] Segmentation fault
make[2]: *** Deleting file 'build/default/debug/src/commands.o'
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

nbproject/Makefile-default.mk:431: recipe for target 'build/default/debug/src/commands.o' failed
make[2]: Leaving directory '/home/dbishop/MPLABXProjects/XBF32saveme.X'
make[1]: Leaving directory `/home/dbishop/MPLABXProjects/XBF32saveme.X'

BUILD FAILED (exit value 2, total time: 8s)

Does anyone know if this is a Microchip bug or if it's something I am doing (or not doing)?
CaptFrito
 
Posts: 11
Joined: Thu Jul 17, 2014 1:36 pm
PIC experience: Professional 2-5 years with MCHP products

Re: MPLABX munmap makefle recipe error

Postby jtemples » Thu Jul 17, 2014 9:27 pm

There is nothing you should be able to do to cause a segmentation fault. It's a tool bug. I would suggest opening a ticket at support.microchip.com.
jtemples
Verified identity
 
Posts: 163
Joined: Sun May 25, 2014 2:23 am
Location: The 805
PIC experience: Professional 5+ years with MCHP products

Re: MPLABX munmap makefle recipe error

Postby CaptFrito » Thu Jul 17, 2014 9:35 pm

Will do. Thx. I will report back what happens.
CaptFrito
 
Posts: 11
Joined: Thu Jul 17, 2014 1:36 pm
PIC experience: Professional 2-5 years with MCHP products

Re: MPLABX munmap makefle recipe error

Postby CaptFrito » Mon Jul 28, 2014 5:07 am

I still haven't reported this as a bug to Microchip but I probably need to. My work habits are such that I usually create a few parallel subdirectories to hold various groupings of code within my projects. But it seems that the code building process in MPLABX (I am on v2.15/Linux) does not like to look in parallel subdirectories (eg, #include ../up/down/file.h ). It works to some extent, but then will just start bombing for no apparent reason. If I move everything to a single directory the problem goes away. It makes it harder for me to work this way since I can't just symlink to new branches of code, use simple targeted grep, sed and awk scripts on the src/hdr files, and so on. But I realize that most developers use Windows and can't really do these kinds of file system maneuvers and probably never run into if they rely on "virtual folders" within the MPLABX IDE. (This might be include components a pro-Linux rant, but I am unabashedly pro-Linux (-: )
CaptFrito
 
Posts: 11
Joined: Thu Jul 17, 2014 1:36 pm
PIC experience: Professional 2-5 years with MCHP products

Previous

Return to MPLAB X IDE

Who is online

Users browsing this forum: No registered users and 1 guest