Jump to content

errors when compiling


avockley
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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
[/code]

Best Regards, Thorsten.

Link to comment
Share on other sites

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$

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...