samrajaf / pinguino32

Automatically exported from code.google.com/p/pinguino32
0 stars 1 forks source link

Wrong lib path in macos toolchain #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start PinguinoX.3 r421
2. Open and compile any (working) example (e.g. BlinkWithoutDelay)

What is the expected output? What do you see instead?

As you can see the compilation fail :

ID Log :

Board:  PIC32 Pinguino OTG
Proc:   32MX440F256H
File:   /Users/kasey/pinguino/examples/01.Basics/AnalogReadSerial/AnalogReadSerial
.pde
mips-elf-gcc: internal compiler error: Trace/BPT trap (program cc1)
error while linking 
/Users/kasey/pinguino/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.o

Stdout log :

#----------------------------------------------------------------------------
#   clean
#----------------------------------------------------------------------------
rm -f -v /Users/kasey/pinguino/source/main32.o
rm -f -v /Users/kasey/pinguino/source/main32.elf
rm -f -v /Users/kasey/pinguino/source/main32.hex
rm -f -v /Users/kasey/pinguino/p32/obj/non-free/processor.o
« /Users/kasey/pinguino/p32/obj/non-free/processor.o » supprimé
#----------------------------------------------------------------------------
#   copy
#----------------------------------------------------------------------------
cp /Users/kasey/pinguino/p32/obj/non-free/32MX440F256H.o 
/Users/kasey/pinguino/p32/obj/non-free/processor.o
#----------------------------------------------------------------------------
#   compile and link
#----------------------------------------------------------------------------
/Users/kasey/pinguino/macosx/p32/bin/mips-elf-gcc -EL -O3 -ffunction-sections 
-fdata-sections -Wl,--gc-sections -march=24kc -msoft-float 
-Wl,--defsym,_min_heap_size=16384 
-Wl,-Map=/Users/kasey/pinguino/source/output.map 
-Wl,-L/Users/kasey/pinguino/p32/obj/non-free/ -D __PIC32MX__ -D 
__32MX440F256H__ -D PIC32_PINGUINO_OTG 
-T/Users/kasey/pinguino/p32/lkr/PIC32_PINGUINO_OTG/procdefs.ld 
-T/Users/kasey/pinguino/p32/lkr/PIC32_PINGUINO_OTG/elf32pic32mx.x 
-L/Users/kasey/pinguino/p32/obj/non-free/usb -lm -lgcc -lc 
-fdollars-in-identifiers -I/Users/kasey/pinguino/p32/include/non-free 
-I/Users/kasey/pinguino/p32/include/pinguino/core 
-I/Users/kasey/pinguino/p32/include/pinguino/libraries 
-I/Users/kasey/pinguino/p32/lkr/PIC32_PINGUINO_OTG 
-I/Users/kasey/pinguino/examples/01.Basics/AnalogReadSerial 
-I/Users/kasey/pinguino/p32/obj/non-free -o 
/Users/kasey/pinguino/source/main32.elf /Users/kasey/pinguino/source/main32.c\
        /Users/kasey/pinguino/p32/obj/non-free/crt0.S\
        /Users/kasey/pinguino/p32/obj/non-free/processor.o\
        /Users/kasey/pinguino/p32/obj/non-free/usb/libcdc.a\
        /Users/kasey/pinguino/p32/obj/non-free/usb/libadb.a\
        /Users/kasey/pinguino/p32/lkr/PIC32_PINGUINO_OTG/ISRwrapper.S\
        /Users/kasey/pinguino/p32/include/non-free/p32xxxx.h\
        -lm -lgcc -lc
dyld: Library not loaded: /Users/costesl/Desktop/my_gcc/lib/libmpfr.4.dylib
  Referenced from: /Users/kasey/pinguino/macosx/p32/bin/../libexec/gcc/mips-elf/4.6.2/cc1
  Reason: Incompatible library version: cc1 requires version 6.0.0 or later, but libmpfr.4.dylib provides version 5.0.0
mips-elf-gcc: internal compiler error: Trace/BPT trap (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [link] Error 4

What version of the product are you using? On what operating system?

* PinguinoX.3 r421
* Mac OS X 10.6 64bit
* Python 2.6

Please provide any additional information below.

As you can see on the stdout log, it seem that the lib path 
/Users/costesl/Desktop/my_gcc/lib/libmpfr.4.dylib is hardcoded somewhere.

Original issue reported on code.google.com by iphone.k...@gmail.com on 18 May 2012 at 5:06

GoogleCodeExporter commented 8 years ago
No problem with the 8bit version.

Original comment by iphone.k...@gmail.com on 18 May 2012 at 5:07

GoogleCodeExporter commented 8 years ago
Thanks for this report.
I am going to re-compile the GCC tool chain with relative path for libraries.
I will post here the new release.

JP

Original comment by jp.mandon@gmail.com on 19 May 2012 at 8:16

GoogleCodeExporter commented 8 years ago

Original comment by jp.mandon@gmail.com on 19 May 2012 at 8:18

GoogleCodeExporter commented 8 years ago
Moved dependencies from /macosx/p32/lib to 
/macosx/p32/libexec/gcc/mips-elf/4.6.2/
Updated in revision 428 

Original comment by jp.mandon@gmail.com on 19 May 2012 at 10:04

GoogleCodeExporter commented 8 years ago
Works for me. If you are going to Paris JP, I pay you my license beerware with 
pleasure.

Original comment by iphone.k...@gmail.com on 20 May 2012 at 7:33

GoogleCodeExporter commented 8 years ago
I will be in Paris for Solution Linux.
Hope we will have a beer together.

JP

Original comment by jp.mandon@gmail.com on 20 May 2012 at 8:58