I have a project the compiles fine on a machine running MPLABX 5, but on another machine running MPLABX v6 I get the following when trying to compile:
build/default/production/main.o: Link Error: Could not allocate section .text, size = 6400 PC units, attributes = code
build/default/production/main.o: Link Error: Could not allocate section .const, size = 856 PC units, attributes = psv page
build/default/production/mcc_generated_files/I2C_EEPROMDrivers/i2c_eeprom_app.o: Link Error: Could not allocate section .text, size = 626 PC units, attributes = code
build/default/production/LCD_8bit.o: Link Error: Could not allocate section .text, size = 448 PC units, attributes = code
data_init: Link Error: Could not allocate section .dinit, size = 396 PC units, attributes = code keep
build/default/production/mcc_generated_files/i2c1.o: Link Error: Could not allocate section .text, size = 234 PC units, attributes = code
build/default/production/mcc_generated_files/i2c2.o: Link Error: Could not allocate section .text, size = 234 PC units, attributes = code
build/default/production/mcc_generated_files/spi1.o: Link Error: Could not allocate section .text, size = 190 PC units, attributes = code
build/default/production/mcc_generated_files/tmr2.o: Link Error: Could not allocate section .text, size = 110 PC units, attributes = code
build/default/production/mcc_generated_files/uart2.o: Link Error: Could not allocate section .text, size = 90 PC units, attributes = code
build/default/production/mcc_generated_files/tmr1.o: Link Error: Could not allocate section .text, size = 88 PC units, attributes = code
build/default/production/mcc_generated_files/tmr5.o: Link Error: Could not allocate section .text, size = 88 PC units, attributes = code
build/default/production/mcc_generated_files/tmr3.o: Link Error: Could not allocate section .text, size = 86 PC units, attributes = code
build/default/production/mcc_generated_files/interrupt_manager.o: Link Error: Could not allocate section .text, size = 72 PC units, attributes = code
build/default/production/mcc_generated_files/pin_manager.o: Link Error: Could not allocate section .text, size = 64 PC units, attributes = code
build/default/production/mcc_generated_files/clock.o: Link Error: Could not allocate section .text, size = 46 PC units, attributes = code
delay32.Meo: Link Error: Could not allocate section .init.delay32, size = 28 PC units, attributes = code
build/default/production/mcc_generated_files/system.o: Link Error: Could not allocate section .text, size = 24 PC units, attributes = code
build/default/production/mcc_generated_files/traps.o: Link Error: Could not allocate section .text, size = 14 PC units, attributes = code
build/default/production/LCD_8bit.o: Link Error: Could not allocate section .const, size = 12 PC units, attributes = psv page
build/default/production/mcc_generated_files/system.o: Link Error: Could not allocate section .text, size = 24 PC units, attributes = code
build/default/production/mcc_generated_files/traps.o: Link Error: Could not allocate section .text, size = 14 PC units, attributes = code
build/default/production/LCD_8bit.o: Link Error: Could not allocate section .const, size = 12 PC units, attributes = psv page
Link Error: Could not allocate program memory
make[2]: *** [nbproject/Makefile-default.mk:327: dist/default/production/Water_Monitor_UI_New_Comm.X.production.hex] Error 255
make[1]: *** [nbproject/Makefile-default.mk:91: .build-conf] Error 2
make: *** [nbproject/Makefile-impl.mk:39: .build-impl] Error 2
BUILD FAILED (exit value 2, total time: 852ms)
On the machine that compiles successfully I am using optimization level 1 and the compiled code consumes 92% of available program memory and about half of available data memory. The device I'm trying to compile to is a PIC24FV32KA302. I'm using the same project properties on both machines.