Jump to content

Recommended Posts

Posted

Hello,

I have always get an error when I try to compile a c application

below are some examples of my problem (no modifications were made to the c apps)

and the contents of my path variable

I have installed sdcc v2.5, perl and gputils-0.13.2-1.exe to e:\miosc

E:\data\midibox\analog_toolbox_v1_1c>make

Makefile generated.

Makefile.bat generated.

Assembling MIOS SDCC wrapper

==========================================================================

Compiling eg.c

Processor: 18F452

e:\miosc\sdcc\bin\sdcpp.exe: eg.c: No such file or directory

ERROR!

E:\data\midibox\clockbox_v1_0>make

Makefile generated.

Makefile.bat generated.

Assembling MIOS SDCC wrapper

==========================================================================

Compiling mclock.c

Processor: 18F452

e:\miosc\sdcc\bin\sdcpp.exe: mclock.c: No such file or directory

ERROR!

PATH=e:\miosc\sdcc\bin;e:\miosc\gputils\bin;E:\miosc\perl\bin\;etc...

Michael

Posted

Hi,

note this error message:

[tt]

e:\miosc\sdcc\bin\sdcpp.exe: eg.c: No such file or directory

[/tt]

[tt]

e:\miosc\sdcc\bin\sdcpp.exe: mclock.c: No such file or directory

[/tt]

how and from where are you starting the make.bat?

Best Regards, Thorsten.

Posted

hello thorsten

thank you for your time and your quick reply  :D

I'm starting the bat file from the dos terminal (run cmd.exe)

then I navigate to the folder wich contains the app directory,

for the analog toolbox: E:\data\midibox\analog_toolbox_v1_1c

then I type make and press enter...

below is the content of the analog toolbox directory:

E:\data\midibox\analog_toolbox_v1_1c>dir

De volumenaam van station E is LOCAL

Map van E:\data\midibox\analog_toolbox_v1_1c

18/12/2005  15:51    <DIR>          .

18/12/2005  15:51    <DIR>          ..

10/11/2005  23:34            6.202 aout.c

10/11/2005  23:34            3.479 aout.h

10/11/2005  23:34              305 CHANGELOG.txt

10/11/2005  23:34              207 clean.bat

10/11/2005  23:34            13.413 cmios.h

10/11/2005  23:34            18.671 COPYRIGHT.txt

10/11/2005  23:34            3.978 eg.c

10/11/2005  23:34            2.583 eg.h

10/11/2005  23:34            7.216 eg_table.inc

10/11/2005  23:34            2.951 lfo.c

10/11/2005  23:34            2.139 lfo.h

10/11/2005  23:34            7.473 lfo_table.inc

10/11/2005  23:34            7.751 main.c

10/11/2005  23:34            2.350 main.h

10/11/2005  23:34                66 make.bat

18/12/2005  16:29            1.128 Makefile

18/12/2005  16:29            4.345 Makefile.bat

10/11/2005  23:34            1.469 MAKEFILE.SPEC

10/11/2005  23:34            6.262 map.c

10/11/2005  23:34            3.019 map.h

10/11/2005  23:34            3.384 midi.c

10/11/2005  23:34            2.343 midi.h

18/12/2005  15:51    <DIR>          mios_wrapper

10/11/2005  23:34            5.377 pic18f452.c

10/11/2005  23:34            21.979 pic18f452.h

10/11/2005  23:34            17.302 project.hex

10/11/2005  23:34            1.118 project.lkr

10/11/2005  23:34            7.104 project.syx

10/11/2005  23:34            8.610 readme.txt

18/12/2005  15:51    <DIR>          tools

18/12/2005  15:51    <DIR>          utils

18/12/2005  15:51    <DIR>          _output

              28 bestand(en)          162.224 bytes

              6 map(pen)  18.034.728.960 bytes beschikbaar

thank you very much,

Michael

Posted

So, everything seems to be on place.

Are you working with Win98 or WinME? Then it might be useful to add the PATH extensions into the C:\AUTOEXEC.BAT file, and to reboot the PC

Best Regards, Thorsten.

Posted

Hi Thorsten,

Yesterday I tried installing the compiler etc on my girlfriends computer,

everything works as expected...

I will try again on my computer after I finish my exams

bye,

Michaël

  • 5 months later...
Posted

Old topic, but I still have this (still compiling on girlfriend's pc  :P)

I have a problem with the make macros when I compile a c project

everything works fine on my girlfriends computer

(even when I compile the source files from my own pc over network)

but on my computer I allways get the same errors (see below)

error message:

Makefile generated.

Makefile.bat generated.

Assembling MIOS SDCC wrapper

==========================================================================

Compiling iohandler.c: No such file or directory

ERROR!

I can make it work on my computer if I manually edit the makefile.bat file

and add the absolute paths to the source file

after running the the make:

I've replaced this

echo ==========================================================================

echo Compiling dseq.c

sdcc -S -mpic16 -p18F452 --fstack --fommit-frame-pointer --optimize-goto

--optimize-cmp --disable-warning 85 --obanksel=2 -pleave-reset-vector -DDEBUG_MODE=0

dseq.c -o _output\dseq.asm

if errorlevel 1 goto end_error

perl tools\fixasm.pl _output\dseq.asm

if errorlevel 1 goto end_error

gpasm -c _output\dseq.asm -o _output\dseq.o

if errorlevel 1 goto end_error

with this (I've added the absolute path to c source file)

echo ==========================================================================

echo Compiling dseq.c

sdcc -S -mpic16 -p18F452 --fstack --fommit-frame-pointer --optimize-goto

--optimize-cmp --disable-warning 85 --obanksel=2 -pleave-reset-vector -DDEBUG_MODE=0

Z:\firstdseq\dseq.c -o _output\dseq.asm

if errorlevel 1 goto end_error

perl tools\fixasm.pl _output\dseq.asm

if errorlevel 1 goto end_error

gpasm -c _output\dseq.asm -o _output\dseq.o

if errorlevel 1 goto end_error

and so on for each c file...

can I modify the mkmk.pl script to add the absolute path

so I don't have to do this manually?

Posted
Z:\firstdseq\dseq.c -o _output\dseq.asm

e:\miosc\sdcc\bin\sdcpp.exe: eg.c: No such file or directory

(...)

then I navigate to the folder wich contains the app directory,

for the analog toolbox: E:\data\midibox\analog_toolbox_v1_1c

then I type make and press enter...

Hi Michaël,

it seems to me, that the cd to your working directory hasn't been recognized properly, or maybe SDCC srewed up, because it didn't expected to be installed on E:\ but to compile on Z:\?

I know SDCC supports installations in other folders than the default one, but I'm not sure it can also be installed on other than the system's partition? Do you know if that's supported for your installed SDCC version?

(I expect your girlfriends computer just has C:\ ;D)

I would try moving your project (or better: a fresh ClockBox-Example) to E:\ and try if it compiles from this partition...

Regards,

Michael

Posted

Wow I reckon it might be about time to rebuild that PC huh :)

Hi Stryd

I probably *should* format my pc and change my drive letter to C:\

but I rather spend some time on my midibox project than reinstalling everything from scratch ::)

Hi Michaël,

it seems to me, that the cd to your working directory hasn't been recognized properly, or maybe SDCC srewed up, because it didn't expected to be installed on E:\ but to compile on Z:\?

I know SDCC supports installations in other folders than the default one, but I'm not sure it can also be installed on other than the system's partition? Do you know if that's supported for your installed SDCC version?

(I expect your girlfriends computer just has C:\ ;D)

I would try moving your project (or better: a fresh ClockBox-Example) to E:\ and try if it compiles from this partition...

Regards,

Michael

Hi Michael,

I did try to compile the standard clockbox project from

e:\clockbox

same results...

the Z drive is a network drive mapped to my midibox directory,

I did the same on the other pc (mapped to same dir on my pc)

and it works fine

the really strange thing is:

C mapped to e:\data\electronics\midibox

doesn't work

[any drive letter] mapped to e:\data\electronics\midibox\firstdseq (->project dir)

works fine

thank you for your help,

Michaël

Posted

Haven't read the whole tread but try using sysinternals ntfilemonitor. Set it's filters and run the compilation. Then look at the log for NOT FOUND files.

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...
×
×
  • Create New...