Jump to content


Photo
- - - - -

errors when compiling


  • Please log in to reply
4 replies to this topic

#1 avockley

avockley

    MIDIbox Newbie

  • Members
  • Pip
  • 34 posts

Posted 28 December 2011 - 06:36

I am trying to compile my own software for MIOS8, and am having some trouble. I am doing this on OS X and have installed all the necessary software on my computer to do so. No matter what I do, I have the same problem when I run "make". The following is the terminal output while running make.

new-host-6:Software aaron$ make
rm -rf _output/*
rm -rf _output
rm -rf *.cod *.map *.lst
rm -rf *.hex
mkdir -p _output
sh /mios-gpasm -c -p p18f452 -I./src -I /Users/Aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/asm -I /Users/Aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/Aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -I /Users/Aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy -DDEBUG_MODE=0 -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f -I /Users/Aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper /Users/Aaron/Documents/Projects/Analog Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper/mios_wrapper.asm -o _output/mios_wrapper.o
sh: /mios-gpasm: No such file or directory
make: *** [_output/mios_wrapper.o] Error 127
new-host-6:Software aaron$ Make -version
GNU Make 3.81
Copyright © 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.0
new-host-6:Software aaron$ nano Makefile
new-host-6:Software aaron$ export MIOS_PATH=/Users/aaron/Do
Documents/ Downloads/
new-host-6:Software aaron$ export MIOS_PATH=/Users/aaron/Documents/Projects/Analog\ Synth/S
Software/ Spec.rtf
new-host-6:Software aaron$ export MIOS_PATH=/Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/
new-host-6:Software aaron$ export MIOS_BIN_PATH=/Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin
new-host-6:Software aaron$ export MIOS_PATH=/Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1
new-host-6:Software aaron$ make
Makefile:29: /Users/aaron/Documents/Projects/Analog: No such file or directory
Makefile:29: Synth/Software/Resources/mios_base_v1_1/include/makefile/common.mk: No such file or directory
Makefile:32: /Users/aaron/Documents/Projects/Analog: No such file or directory
Makefile:32: Synth/Software/Resources/mios_base_v1_1/modules/debug_msg/debug_msg.mk: No such file or directory
Makefile:35: /Users/aaron/Documents/Projects/Analog: No such file or directory
Makefile:35: Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy/app_lcd.mk: No such file or directory
make: *** No rule to make target `Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy/app_lcd.mk'. Stop.
new-host-6:Software aaron$ export MIOS_PATH="/Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1"
new-host-6:Software aaron$ export MIOS_BIN_PATH="/Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin"
new-host-6:Software aaron$ make
rm -rf _output/*
rm -rf _output
rm -rf *.cod *.map *.lst
rm -rf *.hex
mkdir -p _output
sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-gpasm -c -p p18f452 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/asm -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy -DDEBUG_MODE=0 -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper /Users/aaron/Documents/Projects/Analog Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper/mios_wrapper.asm -o _output/mios_wrapper.o
Usage: gpasm [options] file
Options: [defaults in brackets after descriptions]
-a FMT, --hex-format FMT Select hex file format. [inhx32]
-c, --object Output relocatable object.
-C, --new-coff Use new Microchip format.
-d, --debug Output debug messages.
-D SYM=VAL, --define SYM=VAL Define SYM with value VAL.
-e [ON|OFF], --expand [ON|OFF] Macro expansion.
-g, --debug-info Use debug directives for COFF.
-h, --help Show this usage message.
-i, --ignore-case Case insensitive.
-I DIR, --include DIR Specify include directory.
-l, --list-chips List supported processors.
-L, --force-list Ignore nolist directives.
-m, --dump Memory dump.
-M, --deps Output dependency file.
-n, --dos Use DOS newlines in hex file.
-o FILE, --output FILE Alternate name of output file.
-p PROC, --processor PROC Select processor.
-q, --quiet Quiet.
-r RADIX, --radix RADIX Select radix. [hex]
-u, --absolute Use absolute pathes.
-v, --version Show version.
-w [0|1|2], --warning [0|1|2] Set message level. [0]
-y, --extended Enable 18xx extended mode.

Default header file path /usr/local/share/gputils/header

Report bugs to:
<URL:http://gputils.sourceforge.net/>
sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-gpasm -c -p p18f452 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/asm -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy -DDEBUG_MODE=0 /Users/aaron/Documents/Projects/Analog Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy/app_lcd.asm -o _output/app_lcd.o
Usage: gpasm [options] file
Options: [defaults in brackets after descriptions]
-a FMT, --hex-format FMT Select hex file format. [inhx32]
-c, --object Output relocatable object.
-C, --new-coff Use new Microchip format.
-d, --debug Output debug messages.
-D SYM=VAL, --define SYM=VAL Define SYM with value VAL.
-e [ON|OFF], --expand [ON|OFF] Macro expansion.
-g, --debug-info Use debug directives for COFF.
-h, --help Show this usage message.
-i, --ignore-case Case insensitive.
-I DIR, --include DIR Specify include directory.
-l, --list-chips List supported processors.
-L, --force-list Ignore nolist directives.
-m, --dump Memory dump.
-M, --deps Output dependency file.
-n, --dos Use DOS newlines in hex file.
-o FILE, --output FILE Alternate name of output file.
-p PROC, --processor PROC Select processor.
-q, --quiet Quiet.
-r RADIX, --radix RADIX Select radix. [hex]
-u, --absolute Use absolute pathes.
-v, --version Show version.
-w [0|1|2], --warning [0|1|2] Set message level. [0]
-y, --extended Enable 18xx extended mode.

Default header file path /usr/local/share/gputils/header

Report bugs to:
<URL:http://gputils.sourceforge.net/>
sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-sdcc -c -mpic16 -p18f452 --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/c -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -DDEBUG_MODE=0 main.c -o _output/main.o
at 1: error 131: cannot generate code for target 'pic16'
make: *** [_output/main.o] Error 1
new-host-6:Software aaron$


Any ideas?

#2 TK.

TK.

    MIDIbox Guru

  • Administrators
  • 12,415 posts
  • LocationGermany

Posted 28 December 2011 - 20:53

Hi,

sh: /mios-gpasm: No such file or directory


this is the relevant error message.

Please set the MIOS_BIN_PATH variable, because it seems that it's empty

You can do this with following command:
export MIOS_BIN_PATH=$MIOS_PATH/bin

Best Regards, Thorsten.
Posted Image Buy TK a Beer Disclaimer: buying TK a beer gets you absolutely nothing in return likesuchas firmware enhancements, technical advices and MIDIbox troubleshooting assistance.

#3 avockley

avockley

    MIDIbox Newbie

  • Members
  • Pip
  • 34 posts

Posted 28 December 2011 - 22:32

It appears that I copied too much of the terminal output. I actually fixed that problem and the current problem starts further down.

new-host-6:Software aaron$ make
rm -rf _output/*
rm -rf _output
rm -rf *.cod *.map *.lst
rm -rf *.hex
mkdir -p _output
sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-gpasm -c -p p18f452 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/asm -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy -DDEBUG_MODE=0 -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper /Users/aaron/Documents/Projects/Analog Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper/mios_wrapper.asm -o _output/mios_wrapper.o
Usage: gpasm [options] file
Options: [defaults in brackets after descriptions]
-a FMT, --hex-format FMT Select hex file format. [inhx32]
-c, --object Output relocatable object.
-C, --new-coff Use new Microchip format.
-d, --debug Output debug messages.
-D SYM=VAL, --define SYM=VAL Define SYM with value VAL.
-e [ON|OFF], --expand [ON|OFF] Macro expansion.
-g, --debug-info Use debug directives for COFF.
-h, --help Show this usage message.
-i, --ignore-case Case insensitive.
-I DIR, --include DIR Specify include directory.
-l, --list-chips List supported processors.
-L, --force-list Ignore nolist directives.
-m, --dump Memory dump.
-M, --deps Output dependency file.
-n, --dos Use DOS newlines in hex file.
-o FILE, --output FILE Alternate name of output file.
-p PROC, --processor PROC Select processor.
-q, --quiet Quiet.
-r RADIX, --radix RADIX Select radix. [hex]
-u, --absolute Use absolute pathes.
-v, --version Show version.
-w [0|1|2], --warning [0|1|2] Set message level. [0]
-y, --extended Enable 18xx extended mode.

Default header file path /usr/local/share/gputils/header

Report bugs to:
<URL:http://gputils.sourceforge.net/>
sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-gpasm -c -p p18f452 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/asm -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy -DDEBUG_MODE=0 /Users/aaron/Documents/Projects/Analog Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy/app_lcd.asm -o _output/app_lcd.o
Usage: gpasm [options] file
Options: [defaults in brackets after descriptions]
-a FMT, --hex-format FMT Select hex file format. [inhx32]
-c, --object Output relocatable object.
-C, --new-coff Use new Microchip format.
-d, --debug Output debug messages.
-D SYM=VAL, --define SYM=VAL Define SYM with value VAL.
-e [ON|OFF], --expand [ON|OFF] Macro expansion.
-g, --debug-info Use debug directives for COFF.
-h, --help Show this usage message.
-i, --ignore-case Case insensitive.
-I DIR, --include DIR Specify include directory.
-l, --list-chips List supported processors.
-L, --force-list Ignore nolist directives.
-m, --dump Memory dump.
-M, --deps Output dependency file.
-n, --dos Use DOS newlines in hex file.
-o FILE, --output FILE Alternate name of output file.
-p PROC, --processor PROC Select processor.
-q, --quiet Quiet.
-r RADIX, --radix RADIX Select radix. [hex]
-u, --absolute Use absolute pathes.
-v, --version Show version.
-w [0|1|2], --warning [0|1|2] Set message level. [0]
-y, --extended Enable 18xx extended mode.

Default header file path /usr/local/share/gputils/header

Report bugs to:
<URL:http://gputils.sourceforge.net/>
sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-sdcc -c -mpic16 -p18f452 --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/c -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -DDEBUG_MODE=0 main.c -o _output/main.o
at 1: error 131: cannot generate code for target 'pic16'
make: *** [_output/main.o] Error 1
new-host-6:Software aaron$



#4 TK.

TK.

    MIDIbox Guru

  • Administrators
  • 12,415 posts
  • LocationGermany

Posted 28 December 2011 - 22:38

What is the output of:
gpasm --version"

I'm using:
gpasm-0.13.7 beta

Best Regards, Thorsten.
Posted Image Buy TK a Beer Disclaimer: buying TK a beer gets you absolutely nothing in return likesuchas firmware enhancements, technical advices and MIDIbox troubleshooting assistance.

#5 avockley

avockley

    MIDIbox Newbie

  • Members
  • Pip
  • 34 posts

Posted 28 December 2011 - 22:42

I get
gpasm-0.14.1 (Dec 27 2011)


Edit: I just tried removing 0.14.1 and installing 0.13.6, and the same errors are still occurring.

Edited by avockley, 29 December 2011 - 04:31.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users