Can Anyone give a zip of arm-none-eabi as mine seems to be broken.

Discussion in '3DS - Homebrew Development and Emulators' started by LightShell, Aug 11, 2017.

  1. LightShell
    OP

    LightShell GBAtemp Regular

    Member
    124
    13
    Nov 20, 2016
    fat1:/lightshell
    My arm-none-eabi headers are spitting out errors when i use make to compile a modified version of lpp-3ds.
    upload_2017-8-11_11-29-56.png
     


  2. moriczgergo

    moriczgergo GBAtemp Regular

    Member
    121
    80
    Dec 28, 2016
    Hungary
    Between table and chair, chugging water.
    Reinstall.
     
  3. LightShell
    OP

    LightShell GBAtemp Regular

    Member
    124
    13
    Nov 20, 2016
    fat1:/lightshell
    I've already reinstalled. Still doesn't work.
     
  4. moriczgergo

    moriczgergo GBAtemp Regular

    Member
    121
    80
    Dec 28, 2016
    Hungary
    Between table and chair, chugging water.
    Then you fucked up your code. Read the errors.
     
    TuxSH likes this.
  5. LightShell
    OP

    LightShell GBAtemp Regular

    Member
    124
    13
    Nov 20, 2016
    fat1:/lightshell
    The error is #include <unistd.h> it does the same thing with the normal source.
     
  6. moriczgergo

    moriczgergo GBAtemp Regular

    Member
    121
    80
    Dec 28, 2016
    Hungary
    Between table and chair, chugging water.
    Make sure you have the needed libraries included in the makefile.
     
  7. LightShell
    OP

    LightShell GBAtemp Regular

    Member
    124
    13
    Nov 20, 2016
    fat1:/lightshell
    I have unistd.h
     
  8. moriczgergo

    moriczgergo GBAtemp Regular

    Member
    121
    80
    Dec 28, 2016
    Hungary
    Between table and chair, chugging water.
    Where?
     
  9. LightShell
    OP

    LightShell GBAtemp Regular

    Member
    124
    13
    Nov 20, 2016
    fat1:/lightshell
    C:\devkitPro\devkitARM\arm-none-eabi\include\sys
     
  10. moriczgergo

    moriczgergo GBAtemp Regular

    Member
    121
    80
    Dec 28, 2016
    Hungary
    Between table and chair, chugging water.
    Try sys/unistd.h
     
  11. LightShell
    OP

    LightShell GBAtemp Regular

    Member
    124
    13
    Nov 20, 2016
    fat1:/lightshell
  12. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,313
    8,772
    Oct 27, 2002
    France
    Engine room, learning
    did you update your devkit_ARM recently ?
    did you ever managed to compile that project?

    if you are trying to compile an older project, you might have to use older devkitARM revision.
    newer version of GCC/devkitARM/DevkitPPC require more strict way fo coding.

    instead of updating devkitpro, you should downgrade it, or you might have to fix the sources to compile with latest devkit revision.

    if you want to use an older version :
    1. get devkitPPC or devkitARM version you want here
    https://sourceforge.net/projects/devkitpro/files/devkitARM/

    2. extract it to devkitpro folder but rename it, to keep multiple version.
    DO NOT INSTALL, extract it (right click -> 7zip -> open, etc.)

    example :
    devkitPro/devkitARM/ <-- keep this folder with default, latest revision, r47
    devkitPro/devkitARM_r45/ <-- folder with revision 45
    devkitPro/devkitARM_r44/ <-- folder with revision 44

    3. before compiling, change the environment variable path temporarily to the revision you want to use
    It affects only the current command line window, and will not conflict with other projects. you have to type it every time you open a new command line window, it's temporary only.

    set DEVKITARM=/c/devkitPro/devkitARM_r45/
    make



    note that you might have to use older libraries too, the one used when that project was maintained.
     
    Last edited by Cyan, Aug 11, 2017
    PabloMK7 likes this.
  13. LightShell
    OP

    LightShell GBAtemp Regular

    Member
    124
    13
    Nov 20, 2016
    fat1:/lightshell
    • I'm compiling something from Dec 6, 2015
     
  14. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,313
    8,772
    Oct 27, 2002
    France
    Engine room, learning
    look at the sourceforge link I gave above.
    dec 2015 has only devkitARM r45

    46 and 47 are newer.
    try with r45, or even r44, using the method I described above.
     
  15. LightShell
    OP

    LightShell GBAtemp Regular

    Member
    124
    13
    Nov 20, 2016
    fat1:/lightshell
    upload_2017-8-11_12-45-51.png
    now this shows.
     
  16. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,313
    8,772
    Oct 27, 2002
    France
    Engine room, learning
    About the first one : it's a warning, not an error.
    Not sure if it's part of the project, maybe the developers didn't bother to fix them, it's still compiling but can create bugs when using the program.

    About the second one:
    you replaced the full devkitarm folder? you didn't go with the multiple folder solution?
    because it still display "devkitarm" instead of "devkitarm_r45".

    Did you make sure to remove previously compiled objects?
    type "make clean" to remove them and force a recompilation of all sources using the same devkitARM.
    sometime developers are even providing their own .o files in release packages, typing "make clean" let you delete residual previous compiled objects.
     
    Last edited by Cyan, Aug 11, 2017
  17. LightShell
    OP

    LightShell GBAtemp Regular

    Member
    124
    13
    Nov 20, 2016
    fat1:/lightshell
    I fixed that error by settings the softp to hard but now it shows
    upload_2017-8-11_13-42-48.png

    — Posts automatically merged - Please don't double post! —

    I replaced the devkitarm folder
     
  18. nop90

    nop90 GBAtemp Maniac

    Member
    1,422
    2,130
    Jan 11, 2014
    Italy
    Rome
    When you update devkitpro remember to update to latest ctrulib and citro3d too from their repositories on github. Than run make clean on all your previusly compiled libs, than compile and install them again.

    At this point run make clean on the old project you want update and run make again.

    Regarding the missing 3dsx_crt0.o, thi usually depends on some flags missing in the makefile (or if you don't have a main() function, but but this shouldn't be the case).

    Check if you have this in your makefile:

    Code:
    -mfloat-abi=hard -mtp=soft
    
    You can also compare your makefile with one of the templates in the devkitarm examples.
     
  19. LightShell
    OP

    LightShell GBAtemp Regular

    Member
    124
    13
    Nov 20, 2016
    fat1:/lightshell
    I already had that and I fixed the 3dsx_crt0.o 2 hours ago.
    I edited the makefile so some of it looks like the devkit examples.
    It came out with the same error
    upload_2017-8-11_14-6-32.png
     
  20. cearp

    cearp the ticket master

    Member
    7,531
    4,791
    May 26, 2008
    Tuvalu
    it's a linker error, it looks like you are trying to use c++11, do the compilers you are using support this/your make file knows about c++11?