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

support for the powerpc toolchain
Post Reply
User avatar
Slappy
Posts: 5
Joined: Thu May 21, 2009 7:14 am
Location: Slovakia

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

Post by Slappy » Thu May 21, 2009 7:25 am

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?

Josh @ Dreamland
Posts: 5
Joined: Mon May 18, 2009 12:37 am

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

Post by Josh @ Dreamland » Thu May 21, 2009 11:52 am

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.

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

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

Post by WinterMute » Tue May 26, 2009 3:25 am

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 ).
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests