make error

Discussion in '3DS - Homebrew Development and Emulators' started by -LuCas-, Mar 13, 2015.

  1. -LuCas-
    OP

    -LuCas- Member

    Newcomer
    34
    12
    Dec 6, 2014
    Italy
    I think it's a stupid question but I don't know how to fix this error. Anyone can help me please ?

    Code:
    main.c
    arm-none-eabi-gcc -MMD -MP -MF /c/Users/-/Desktop/3ds-helloworld-master/build/main.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=softfp -I/c/Users/-/Desktop/3ds/include -I/c/devkitPro/libctru/include -I/c/Users/-/Desktop/3ds/build -DARM11 -D_3DS -c /c/Users/-/Desktop/3ds/source/main.c -o main.o
    linking 3ds.elf
    c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld.exe: cannot find 3dsx_crt0.o: No such file or directory
    collect2.exe: error: ld returned 1 exit status
    make[1]: *** [/c/Users/-/Desktop/3ds/3ds.elf] Error 1
    "make": *** [build] Error 2
    
     
  2. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,263
    Nov 24, 2014
    Italy
    Bologna
    Use -mfloat-abi=hard instead of -mfloat-abi=softfp
     
  3. -LuCas-
    OP

    -LuCas- Member

    Newcomer
    34
    12
    Dec 6, 2014
    Italy
    it works thanks. I've seen that you are italian. can I chat with you in pm ?
     
  4. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,263
    Nov 24, 2014
    Italy
    Bologna
    No problem, you can also contact me on Skype: rinnegatamante1
     
    -LuCas- likes this.
  5. cynosura

    cynosura GBAtemp Regular

    Member
    152
    52
    Jun 7, 2015
    France
    Bed
    I have a make error when I try to compile a sample in c++, and I don't want to start a new thread;
    here's the error:

    Code:
    arm-none-eabi-g++ -MMD -MP -MF /c/Users/user/Desktop/test/build/main.d -g -Wall
    -O2 -mword-relocations -fomit-frame-pointer
    -ffast-math -march=armv6k -mtune=mp core -mfloat-abi=hard
    -I/c/Users/user/Desktop/test/include -I/c/devkitPro/portlibs/armv6k/include
    -I/c/devkitPro/portlibs/3ds/include -I/c/devkitPro/libctru/include
    -I/c/Users/user/Desktop/test/build -DARM11 -D_3DS -fno-rtti -fno-exceptions -std=gnu++11
    -c /c/Users/user/Desktop/test/source/main.cpp -o main.o
    linking test.elf
    c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-e
    abi/bin/ld.exe: cannot find -lz
    collect2.exe: error: ld returned 1 exit status
    make[1]: *** [/c/Users/user/Desktop/test/test.elf] Error 1
    make: *** [build] Error 2
    can anyone help me please ? thanks !
     
  6. lolzvid

    lolzvid GBAtemp Regular

    Member
    148
    115
    Dec 26, 2014
    Brazil
    Seems like you have the same problem as OP.
     
  7. cynosura

    cynosura GBAtemp Regular

    Member
    152
    52
    Jun 7, 2015
    France
    Bed
    Nope, his error was "cannot find 3dsx_crt0.o:No such file or directory" , mine is different : "cannot find -lz" . And google doesn't given me any answers
     
    lolzvid likes this.
  8. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,263
    Nov 24, 2014
    Italy
    Bologna
    lz is zlib. You should install it.
     
  9. ghjfdtg

    ghjfdtg Advanced Member

    Newcomer
    59
    42
    Jul 13, 2014
  10. cynosura

    cynosura GBAtemp Regular

    Member
    152
    52
    Jun 7, 2015
    France
    Bed
    okay thanks I'll try it