Page 1 of 1

Compile problem [cc1: error: invalid option 'call-sysv']

Posted: Thu May 21, 2009 7:25 am
by Slappy
Hi
I am trying to compile very basic example - helloworld using DevkitPro and Programmers Notepad for Wii
[AMD Sempron mobile processor, Win XP SP2, fresh install of DevkitPro]
I got this error:

Code: Select all

> "make"
template.c
cc1: error: invalid option `call-sysv'
cc1: error: invalid option `rvl'
cc1: error: invalid option `cpu=750'
cc1: error: invalid option `eabi'
e:/Programovanie/Wii/template/source/template.c:1: warning: -ffunction-sections may affect debugging on some targets
make[1]: *** [template.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:02
I modified wii_rules ::
MACHDEP = -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
like:
MACHDEP = -DGEKKO -mhard-float

but still I get this error:
cc1: error: invalid option `cpu=750'

When I tried to compile the same code at my computer at work everything was fine...
I am sure that all paths [msys, devkitpro, devkitppc ...] are correct

What should I do???
How can I detect correct compiler flags?

Re: Compile problem [cc1: error: invalid option 'call-sysv']

Posted: Thu May 21, 2009 11:52 am
by Josh @ Dreamland
I'm certainly no expert, but I had some trouble with environment variables myself, and since you say you've checked them yourself, I have to ask if any of them contain C:\. Because DevKit doesn't like C:\, it likes /c/.

Another potential problem I can see you having is that, if you do any other programming, you may be calling the wrong make. I always specify the fully qualified path to the make that comes with DevKit, just to be sure I don't end up with any errors that way.

Good luck.

Re: Compile problem [cc1: error: invalid option 'call-sysv']

Posted: Tue May 26, 2009 3:25 am
by WinterMute
Somehow you're managing to make gcc use the wrong compiler, I suspect you have GCC_EXEC_PREFIX set in your environment. Delete that variable and try again ( after replacing the original wii_rules ).