Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
I just retested the Makefile I posted and was able to use it changing only a few paths. You must click view raw and copy and paste that. The reason for this is because in a makefile; the spacing does matter.
ProgrammerNerd wrote:
I just retested the Makefile I posted and was able to use it changing only a few paths. You must click view raw and copy and paste that. The reason for this is because in a makefile; the spacing does matter.
thanks, i did not know about raw copy, sorry, will try by tomorrow. Thanks again
amazonka wrote:
ProgrammerNerd wrote:
I just retested the Makefile I posted and was able to use it changing only a few paths. You must click view raw and copy and paste that. The reason for this is because in a makefile; the spacing does matter.
thanks, i did not know about raw copy, sorry, will try by tomorrow. Thanks again

thanks again for the tips and the makefile too. I did the raw copy and must have something else wrong but unfortunately am too inexperienced to figure out was is actually wrong please.

The error log is as follows please:



Code:

C:\CASIO\projects\starfield>..\..\bin\make.exe
sh3eb-elf-gcc -c -m4a-nofpu -mb -O2 -mhitachi -Wall -I../../include -lgcc -L../.
./lib -flto -fuse-linker-plugin src/main.c -o src/main.o
sh3eb-elf-gcc: error: CreateProcess: No such file or directory
make: *** [src/main.o] Error 1

C:\CASIO\projects\starfield>pause
Press any key to continue . . .


and my directory structure is
C:\CASIO\
which includes projects\starfield with bmps, makefile make.bat and src\main.c inside

also the previously mentioned C:\CASIO\ folder includes: lib, include, libc, libfxcg, toolchain and other directories to give you an idea of the setup I have so I am at complete loss what file or directory is missing for the compiler.

I'm sorry for being so hopeless with this and appreciate the help you can give me in sorting my setup for me.

Kind regards
You have had this issue before. Please set your path to include the directory in which sh3eb-elf-gcc is located.
ProgrammerNerd wrote:
You have had this issue before. Please set your path to include the directory in which sh3eb-elf-gcc is located.

Many thanks for helping on this. I modified my make.bat file as following

Code:
SET PATH=%PATH%;C:\CASIO\bin
..\..\bin\make.exe %*
pause
and it helped to move things further but gave me this at the end
Code:
 
C:\CASIO\projects\starfield>SET PATH=C:\Program Files (x86)\AMD APP\bin\x86_64;C
:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\
System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)
\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files (x86)\Microsoft SQL Serve
r\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Serve
r\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\P
rogram Files\Microsoft SQL Server\110\Tools\Binn\;C:\blp\API;C:\blp\API\dde;C:\P
rogram Files (x86)\Git\cmd;C:\CASIO\bin

C:\CASIO\projects\starfield>..\..\bin\make.exe
sh3eb-elf-gcc -c -m4a-nofpu -mb -O2 -mhitachi -Wall -I../../include -lgcc -L../.
./lib -flto -fuse-linker-plugin src/main.c -o src/main.o
src/main.c: In function 'newStar':
src/main.c:9:5: warning: this decimal constant is unsigned only in ISO C90 [enab
led by default]
src/main.c: At top level:
src/main.c:39:6: warning: return type of 'main' is not 'int' [-Wmain]
src/main.c: In function 'main':
src/main.c:43:5: warning: implicit declaration of function 'memset' [-Wimplicit-
function-declaration]
src/main.c:43:5: warning: incompatible implicit declaration of built-in function
 'memset' [enabled by default]
sh3eb-elf-gcc src/main.o -m4a-nofpu -mb -O2 -mhitachi -Wall -I../../include -lgc
c -L../../lib -flto -fuse-linker-plugin -nostartfiles -T../../toolchain/prizm.x
-Wl,-static -Wl,-gc-sections -o g3aNameWithoutExtension.bin
c:/casio/bin/../lib/gcc/sh3eb-elf/4.6.0/../../../../sh3eb-elf/bin/ld.exe:../../t
oolchain/prizm.x:63: warning: memory region `ocram2' not declared
could not unlink output filecollect2: ld returned 1 exit status
make: *** [g3aNameWithoutExtension.bin] Error 1

C:\CASIO\projects\starfield>pause
Press any key to continue . . .


Would you please help with what this is - I tried googling it but was unable to progress any further - thanks for all your help again.
That warning indicates that there is an error in the linker script. Paste your prizm.x verbatim, something's up with `ocram2`.
Dear AHelper,

Thanks for looking at this. Here is the prizm.x
Code:
OUTPUT_FORMAT(binary)
OUTPUT_ARCH(sh3)
 
/* Entry point.  Not really important here, since doing binary output */
ENTRY(initialize)
 
MEMORY
{
        /* Loads code at 300000, skips g3a header */
        rom (rx) : o = 0x00300000, l = 1024k
        ram (rwx) : o = 0x08100004, l = 64k  /* pretty safe guess */
        ilram (rwx) : o = 0xE5200000, l = 4k /* According to http://www.cemetech.net/forum/viewtopic.php?t=9334 */
}
 
SECTIONS
{
        /* Code, in ROM */
        .text : {
                *(.pretext)     /* init stuff */
                *(.text)
                *(.text.*)
        } > rom

        .ilram : {
                _ilramld = LOADADDR(.data) ;
                _silram = . ;
                *(.ilram)
                *(.ilram.*)
                _eilram = . ;
        } > ilram AT> rom
       
        /* Read-only data, in ROM */
        .rodata : {
                *(.rodata)
                *(.rodata.*)
        } > rom
       
        /* RW initialized data, VMA in RAM but LMA in ROM */
        .data : {
                _datald = LOADADDR(.data) ;
                _sdata = . ;
                *(.data)
                *(.data.*);
                _edata = . ;
        } >ram AT>rom
       
        /* Uninitialized data (fill with 0), in RAM */
        .bss : {
                _bbss = . ;
                *(.bss)
                *(.bss*)
                *(COMMON)
                _ebss = . ;
        } >ram
       
        /* Second on-chip RAM area */
        .ocram2 : {
                _ocram2ld = LOADADDR(.ocram2) ;
                _socram2 = . ;
                *(.ocram2) *(.ocram2.*) *(COMMON);
                _eocram2 = . ;
        } >ocram2 AT>rom
}


Thanks in advance, AHelper and everyone else.
Amazonka I will help you; but not with this immediate issue. I am not going to answer this question instead I am going talk about my philosophy on giving and receiving and help.

First of all I understand that one cannot magically recreate all human knowledge. However I believe that one should be able to have intuition and problem solving skills.

It seems as though when you have a problem your first impulse is to go to Cemetech and write about it. What your first impulse should be is to try and solve it yourself then post about it once you believe that you cannot solve the issue on your own. I have tried to help you hoping that once you get things going you would become more self sufficient but sadly I am not seeing that development in you.

This does not mean that you should never turn to people if you need to. I just want you to become a better problem solver.
ProgrammerNerd wrote:
Amazonka I will help you; but not with this immediate issue. I am not going to answer this question instead I am going talk about my philosophy on giving and receiving and help.

First of all I understand that one cannot magically recreate all human knowledge. However I believe that one should be able to have intuition and problem solving skills.

It seems as though when you have a problem your first impulse is to go to Cemetech and write about it. What your first impulse should be is to try and solve it yourself then post about it once you believe that you cannot solve the issue on your own. I have tried to help you hoping that once you get things going you would become more self sufficient but sadly I am not seeing that development in you.

This does not mean that you should never turn to people if you need to. I just want you to become a better problem solver.

Trust me I put a lot of effort to try and sort those problems out myself especially knowing that almost no one compiles with up to date prizm libraries on windows as far as I can see.

I started with the gbl08ma's makefiles for Linux which were not working on windows but by experimenting with some of the flags I managed to make them work - your makefiles are definitely compact and I would love to make them work but I'm not really able to figure out how.
Yes now I understand that you do. I was getting worried you were just immediately posting all your questions without trying.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 7 of 7
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement