Menu

out of the box problems building femtoos_hellowworld with avr studio 7

Help
Larry
2018-07-28
2018-08-25
  • Larry

    Larry - 2018-07-28

    I'm brand new to using AVR studio 7 and FemtoOS. I've downloaded and installed the AVR studio 7 for windows (10), I've also installed the winAVR package but I'm not sure I need that, downloaded, unpacked, and ran the ran the "install" script for FemtoOs.

    Opened the Femtoos_helloworld project selected my processor (ATmega328P) and standard mode but when I try to build I get these errors:

    ------ Build started: Project: FemtoOS_HelloWorld, Configuration: standard AVR ------
    Build started.
    Project "FemtoOS_HelloWorld.cproj" (default targets):
    Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
    Target "CoreBuild" in file "H:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "I:\git repository\FentoOS\FemtoOS_0.922\IDE\studioprojects\FemtoOS_HelloWorld\FemtoOS_HelloWorld.cproj" (target "Build" depends on it):
        Task "RunCompilerTask"
            Shell Utils Path H:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
            H:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 8 --output-sync 
            Building file: ../../../../MainCode/femtoos_source/femtoos_port.c
            Invoking: AVR/GNU C Compiler : 5.4.0
    cc1.exe(0,0): error: invalid parameter 'inline-call-cost'
            make: *** [femtoos_port.o] Error 1
            "H:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe"  -x c -funsigned-char -DF_CPU=8000000UL  -I"..\..\..\..\MainCode\femtoos_headers" -I"..\..\..\..\MainCode\femtoos_devices" -I"..\." -I"H:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.209\include"  -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -Wall -mmcu=atmega328p -B "H:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.209\gcc\dev\atmega328p" -c -gdwarf-2 -mint8 --param inline-call-cost=2 -Wno-main -Winline -Wundef -fomit-frame-pointer -MD -MP -MF "femtoos_port.d" -MT"femtoos_port.d" -MT"femtoos_port.o"   -o "femtoos_port.o" "../../../../MainCode/femtoos_source/femtoos_port.c" 
    I:\git repository\FentoOS\FemtoOS_0.922\IDE\studioprojects\FemtoOS_HelloWorld\standard\Makefile(96,1): error: recipe for target 'femtoos_port.o' failed
            make: *** Waiting for unfinished jobs....
            Building file: ../../../../MainCode/femtoos_source/femtoos_shared.c
            Invoking: AVR/GNU C Compiler : 5.4.0
    cc1.exe(0,0): error: invalid parameter 'inline-call-cost'
            make: *** [femtoos_shared.o] Error 1
            "H:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe"  -x c -funsigned-char -DF_CPU=8000000UL  -I"..\..\..\..\MainCode\femtoos_headers" -I"..\..\..\..\MainCode\femtoos_devices" -I"..\." -I"H:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.209\include"  -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -Wall -mmcu=atmega328p -B "H:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.209\gcc\dev\atmega328p" -c -gdwarf-2 -mint8 --param inline-call-cost=2 -Wno-main -Winline -Wundef -fomit-frame-pointer -MD -MP -MF "femtoos_shared.d" -MT"femtoos_shared.d" -MT"femtoos_shared.o"   -o "femtoos_shared.o" "../../../../MainCode/femtoos_source/femtoos_shared.c" 
    I:\git repository\FentoOS\FemtoOS_0.922\IDE\studioprojects\FemtoOS_HelloWorld\standard\Makefile(103,1): error: recipe for target 'femtoos_shared.o' failed
            Building file: ../../../../MainCode/femtoos_source/femtoos_core.c
            Invoking: AVR/GNU C Compiler : 5.4.0
    cc1.exe(0,0): error: invalid parameter 'inline-call-cost'
            make: *** [femtoos_core.o] Error 1
            "H:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe"  -x c -funsigned-char -DF_CPU=8000000UL  -I"..\..\..\..\MainCode\femtoos_headers" -I"..\..\..\..\MainCode\femtoos_devices" -I"..\." -I"H:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.209\include"  -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -Wall -mmcu=atmega328p -B "H:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.209\gcc\dev\atmega328p" -c -gdwarf-2 -mint8 --param inline-call-cost=2 -Wno-main -Winline -Wundef -fomit-frame-pointer -MD -MP -MF "femtoos_core.d" -MT"femtoos_core.d" -MT"femtoos_core.o"   -o "femtoos_core.o" "../../../../MainCode/femtoos_source/femtoos_core.c" 
    I:\git repository\FentoOS\FemtoOS_0.922\IDE\studioprojects\FemtoOS_HelloWorld\standard\Makefile(110,1): error: recipe for target 'femtoos_core.o' failed
            Building file: .././code_TestHelloWorld.c
            Invoking: AVR/GNU C Compiler : 5.4.0
    cc1.exe(0,0): error: invalid parameter 'inline-call-cost'
            make: *** [code_TestHelloWorld.o] Error 1
            "H:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe"  -x c -funsigned-char -DF_CPU=8000000UL  -I"..\..\..\..\MainCode\femtoos_headers" -I"..\..\..\..\MainCode\femtoos_devices" -I"..\." -I"H:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.209\include"  -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -Wall -mmcu=atmega328p -B "H:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.209\gcc\dev\atmega328p" -c -gdwarf-2 -mint8 --param inline-call-cost=2 -Wno-main -Winline -Wundef -fomit-frame-pointer -MD -MP -MF "code_TestHelloWorld.d" -MT"code_TestHelloWorld.d" -MT"code_TestHelloWorld.o"   -o "code_TestHelloWorld.o" ".././code_TestHelloWorld.c" 
    I:\git repository\FentoOS\FemtoOS_0.922\IDE\studioprojects\FemtoOS_HelloWorld\standard\Makefile(117,1): error: recipe for target 'code_TestHelloWorld.o' failed
            The command exited with code 2.
        Done executing task "RunCompilerTask" -- FAILED.
    Done building target "CoreBuild" in project "FemtoOS_HelloWorld.cproj" -- FAILED.
    Done building project "FemtoOS_HelloWorld.cproj" -- FAILED.
    
    Build FAILED.
    ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
    

    So what where and why go I get this error "invalid parameter 'inline-call-cost" and what do I need do to get this to build?

     
  • De Vlaam

    De Vlaam - 2018-07-30

    He Larry, thanks for using my stuff. I saw your message, and will get back to it asap. But the holidays got in the way. Thank you for some patience.

     
    • Larry

      Larry - 2018-08-13

      Have you had a chance to look at this?

       
  • Larry

    Larry - 2018-07-30

    I look forward to your ideas on how to resove this so I can start pushing forward on my project.

     
  • De Vlaam

    De Vlaam - 2018-08-25

    Sorry, i did not forget you, i am still on a journey. In any case, i stopped using AVR studio at version 6 because there were to many 'weird errors'. So my first question would be, can you compile from the command line? Futhermore, it may be an compiler incompatibity. Did you try the last gcc version 4? If not, i would give that a spin. When i am back home i can try to recreate this, but not from where i am now.

     

Log in to post a comment.