1. LightShell

    OP LightShell GBAtemp Regular
    Member

    Joined:
    Nov 20, 2016
    Messages:
    123
    Country:
    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 Lil' Buffer Overflow
    Member

    Joined:
    Dec 28, 2016
    Messages:
    160
    Country:
    Hungary
  3. LightShell

    OP LightShell GBAtemp Regular
    Member

    Joined:
    Nov 20, 2016
    Messages:
    123
    Country:
    I've already reinstalled. Still doesn't work.
     
  4. moriczgergo

    moriczgergo Lil' Buffer Overflow
    Member

    Joined:
    Dec 28, 2016
    Messages:
    160
    Country:
    Hungary
    Then you fucked up your code. Read the errors.
     
    TuxSH likes this.
  5. LightShell

    OP LightShell GBAtemp Regular
    Member

    Joined:
    Nov 20, 2016
    Messages:
    123
    Country:
    The error is #include <unistd.h> it does the same thing with the normal source.
     
  6. moriczgergo

    moriczgergo Lil' Buffer Overflow
    Member

    Joined:
    Dec 28, 2016
    Messages:
    160
    Country:
    Hungary
    Make sure you have the needed libraries included in the makefile.
     
  7. LightShell

    OP LightShell GBAtemp Regular
    Member

    Joined:
    Nov 20, 2016
    Messages:
    123
    Country:
    I have unistd.h
     
  8. moriczgergo

    moriczgergo Lil' Buffer Overflow
    Member

    Joined:
    Dec 28, 2016
    Messages:
    160
    Country:
    Hungary
    Where?
     
  9. LightShell

    OP LightShell GBAtemp Regular
    Member

    Joined:
    Nov 20, 2016
    Messages:
    123
    Country:
    C:\devkitPro\devkitARM\arm-none-eabi\include\sys
     
  10. moriczgergo

    moriczgergo Lil' Buffer Overflow
    Member

    Joined:
    Dec 28, 2016
    Messages:
    160
    Country:
    Hungary
    Try sys/unistd.h
     
  11. LightShell

    OP LightShell GBAtemp Regular
    Member

    Joined:
    Nov 20, 2016
    Messages:
    123
    Country:
  12. Cyan

    Cyan GBATemp's lurking knight
    Former Staff

    Joined:
    Oct 27, 2002
    Messages:
    23,309
    Country:
    France
    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

    Joined:
    Nov 20, 2016
    Messages:
    123
    Country:
    • I'm compiling something from Dec 6, 2015
     
  14. Cyan

    Cyan GBATemp's lurking knight
    Former Staff

    Joined:
    Oct 27, 2002
    Messages:
    23,309
    Country:
    France
    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

    Joined:
    Nov 20, 2016
    Messages:
    123
    Country:
    upload_2017-8-11_12-45-51.png
    now this shows.
     
  16. Cyan

    Cyan GBATemp's lurking knight
    Former Staff

    Joined:
    Oct 27, 2002
    Messages:
    23,309
    Country:
    France
    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

    Joined:
    Nov 20, 2016
    Messages:
    123
    Country:
    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 Advanced Maniac
    Member

    Joined:
    Jan 11, 2014
    Messages:
    1,556
    Country:
    Italy
    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

    Joined:
    Nov 20, 2016
    Messages:
    123
    Country:
    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 瓜老外
    Developer

    Joined:
    May 26, 2008
    Messages:
    8,431
    Country:
    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?
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Anyone, broken, seems