chipKIT32/chipKIT32-MAX — Issue #171: Need 32bit libelf for 64bit linux
Author: phgphd
Created: 2011-12-20 00:24:49+00:00
State: open

I am running the 32bit MP IDE 0022-linux32-20110822 on a 64 bit Ubuntu 11.10 linux laptop. The target is the MAX32 chipkit. Compilation/link fails with the error message

/home/phil/Projects/mpide-0022-linux32-20110822/hardware/pic32/compiler/pic32-tools/bin/../pic32mx/bin/gcc/pic32mx/4.5.1/cc1plus: error while loading shared libraries: libelf.so.1: wrong ELF class: ELFCLASS64

I know this means the the gcc compiler/linker is attempting to use the /usr/lib/libelf.so.1 64 bit library which is of course incompatible with the 32 bit gcc supplied with the MP IDE. I have a 32 bit libelf library and have attempted to place it in just about every sub-directory under the mpide-0022-linux32-20110822 parent directory, hoping that it will be found in the 32 bit gcc search path before going outside to the /usr/lib directory. BUT no such luck

This may be related to issue #119.