MorphOS SDK 3.14 and GCC9
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 264 from 2003/7/25
    From: Wroclaw/Poland
    Hello

    I use FlowStudio with GCC5. However after release MorphOS 3.13 I decided to download new SDK (3.14) and switch to GCC9. Unfortunately when I try to compile my project with GCC9 I have message:

    Code:
    ### Build Start ###
    make: Entering directory `/Files/MDW/dev/MyProject'
    mkdir: missing operand
    Try 'mkdir --help' for more information.
    make: *** [MKDIR_RELEASE] Error 1
    make: Leaving directory `/Files/MDW/dev/MyProject'
    ### Build End ###


    If I switch to GCC8, everything is ok, project is compiled and linked with success, executable file is ok.

    Where is the problem? Makefile generated by FlowStudio uses mkdir but... it looks ok. Why if I use GCC8 everything is ok?

    I noticed, if I set in Project Setings "g++-8", next to cycle gadget I see (shaded) "ppc-morphos-g++-8". If I set "g++-5", I see "ppc-morphos-g++-5", etc... However if I set "g++-9", the shaded label is empty.
    It is strange because I have GG:bin/ppc-morphos-g++-9.
  • »08.02.20 - 17:49
    Profile Visit Website
  • Just looking around
    Flash
    Posts: 9 from 2019/11/1
    Your have to use only gcc and g++ command binary in flow studio
  • »08.02.20 - 19:36
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 264 from 2003/7/25
    From: Wroclaw/Poland
    Quote:

    Flash wrote:
    Your have to use only gcc and g++ command binary in flow studio

    Will gcc-9 be used if I set in project settings gcc and g++?

    I am not sure because in GG:bin/ I see:
    ppc-morphos-gcc <link to ppc-morphos-gcc-2.95.3>
    ppc-morphos-gcc-2.95.3 <file>
    ppc-morphos-gcc-4 <link to ppc-morphos-gcc-4.4.5>
    ppc-morphos-gcc-4.4.5 <file>
    ppc-morphos-gcc-5 <file>
    ppc-morphos-gcc-7 <file>
    ppc-morphos-gcc-8 <file>
    ppc-morphos-gcc-9 <file>

    ppc-morphos-g++ also is link to ppc-morphos-g++-2.95.3

    So gcc and g++ probably use gcc-2.95.3, not gcc-9.
  • »09.02.20 - 10:45
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    tolkien
    Posts: 306 from 2013/5/29
    type in a shell "gcc -v" and see to what version gcc is refered
    PowerMac G5 - PowerBook G4 - MacMini with MorphOS. Amiga 1200/060 AmigaOS 3.x
  • »09.02.20 - 12:47
    Profile
  • Just looking around
    Flash
    Posts: 9 from 2019/11/1
    Quote:

    MDW wrote:
    Quote:

    Flash wrote:
    Your have to use only gcc and g++ command binary in flow studio

    Will gcc-9 be used if I set in project settings gcc and g++?

    I am not sure because in GG:bin/ I see:
    ppc-morphos-gcc <link to ppc-morphos-gcc-2.95.3>
    ppc-morphos-gcc-2.95.3 <file>
    ppc-morphos-gcc-4 <link to ppc-morphos-gcc-4.4.5>
    ppc-morphos-gcc-4.4.5 <file>
    ppc-morphos-gcc-5 <file>
    ppc-morphos-gcc-7 <file>
    ppc-morphos-gcc-8 <file>
    ppc-morphos-gcc-9 <file>

    ppc-morphos-g++ also is link to ppc-morphos-g++-2.95.3

    So gcc and g++ probably use gcc-2.95.3, not gcc-9.


    Gcc —version, under mos 3.12 or better should be v9
  • »09.02.20 - 13:37
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1916 from 2003/3/5
    From: Canada
    Err, you've just hit a bug in Flow. It'll probably work OK if you re-create the project.

    On a side note, I do NOT recommend using 'gcc' in your makefiles, etc. Always best to use the full name. Saves problems if you want to cross-compile your project or target different archs explicitly.
  • »09.02.20 - 16:35
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 264 from 2003/7/25
    From: Wroclaw/Poland
    Quote:

    jacadcaps wrote:
    Err, you've just hit a bug in Flow. It'll probably work OK if you re-create the project.

    Hehe. Ok, I will recreate project. However I probably have to keep gcc8 because my code is not ready for gcc9. :) And I have strange message "unrecognized option '-MP'". I am not sure if gcc9 allows to force C++ standard (e.g. -std=c++11). This version of gcc works strange for me. :)

    Quote:

    jacadcaps wrote:
    On a side note, I do NOT recommend using 'gcc' in your makefiles, etc. Always best to use the full name. Saves problems if you want to cross-compile your project or target different archs explicitly.

    Ok, I will specify version of gcc/g++ in each project. :)

    [ Edited by MDW 09.02.2020 - 19:33 ]
  • »09.02.20 - 18:15
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 264 from 2003/7/25
    From: Wroclaw/Poland
    Quote:

    jacadcaps wrote:
    Err, you've just hit a bug in Flow. It'll probably work OK if you re-create the project.

    If I create new empty project, and select "gcc-9" and "g++-9" (in "Project Settings"), full name of gcc version also is not visible next to cycle button. So re-creating project doesn't help.
  • »21.02.20 - 21:28
    Profile Visit Website