Hello,
Im trying to compile libz.a, and i managed to do it at my house, this time, im working on a new computer, and set up the DEV Environment as usual, here, this is my PATH config:
However, when y tri to compile libz.a in order to compile CTRBootManager [Wich i already compiled at my home], i get this error:
TLDR; this is the issue:
d:/3ds/devstuff/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008020
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I. -c -o minigzip.o test/minigzip.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a
d:/3ds/devstuff/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008020
make[1]: Leaving directory `/d/3DS/Sources/ZLIB/zlib-1.2.8'
this issue did not happen when compiling at my house, it worked flawlesly, and BTE, no i dont want to us eprecompiled stuff, since i want to learn how to do it from scratch, and i wanna know why at my home it did compile and here it dosnt, :/
i know there are precompiled libraries and stuff to just copy paste, but please understand, BTW im using the script from here: https://github.com/devkitPro/3ds_portlibs
and running Make Download, and Make zlib and neither do work :/ i got that error QQ.
Note: as a note, it appears that libz.a its generated on the source directory, but its not moved where the devkitarm directory is, and neither the libconfig file its generated.
Im trying to compile libz.a, and i managed to do it at my house, this time, im working on a new computer, and set up the DEV Environment as usual, here, this is my PATH config:
PATH=D:\3DS\ImageMagick;D:\3DS\DevStuff\msys\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Skype\Phone\;C:\Python27;D:\3DS\DevStuff\de
vkitARM\bin;D:\3DS\Git\cmd;D:\3DS\CMake\bin;D:\3DS\DevStuff\devkitARM\arm-none-eabi\bin;D:\3DS\MinGW;D:\3DS\MinGW\bin;D:\3DS\CMake\bin
;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Skype\Phone\;C:\Python27;D:\3DS\DevStuff\de
vkitARM\bin;D:\3DS\Git\cmd;D:\3DS\CMake\bin;D:\3DS\DevStuff\devkitARM\arm-none-eabi\bin;D:\3DS\MinGW;D:\3DS\MinGW\bin;D:\3DS\CMake\bin
However, when y tri to compile libz.a in order to compile CTRBootManager [Wich i already compiled at my home], i get this error:
make[1]: Entering directory `/d/3DS/Sources/ZLIB/zlib-1.2.8'
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I. -c -o example.o test/example.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o adler32.o adler32.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o crc32.o crc32.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o deflate.o deflate.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o infback.o infback.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o inffast.o inffast.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o inflate.o inflate.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o inftrees.o inftrees.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o trees.o trees.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o zutil.o zutil.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o compress.o compress.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o uncompr.o uncompr.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o gzclose.o gzclose.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o gzlib.o gzlib.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o gzread.o gzread.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o gzwrite.o gzwrite.c
arm-none-eabi-ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -o example example.o -L. libz.a
d:/3ds/devstuff/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008020
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I. -c -o minigzip.o test/minigzip.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a
d:/3ds/devstuff/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008020
make[1]: Leaving directory `/d/3DS/Sources/ZLIB/zlib-1.2.8'
D:\3DS\Sources\ZLIB>
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I. -c -o example.o test/example.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o adler32.o adler32.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o crc32.o crc32.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o deflate.o deflate.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o infback.o infback.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o inffast.o inffast.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o inflate.o inflate.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o inftrees.o inftrees.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o trees.o trees.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o zutil.o zutil.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o compress.o compress.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o uncompr.o uncompr.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o gzclose.o gzclose.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o gzlib.o gzlib.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o gzread.o gzread.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I/D/3DS/DevStuff/portlibs/armv6k/include -c -o gzwrite.o gzwrite.c
arm-none-eabi-ar rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -o example example.o -L. libz.a
d:/3ds/devstuff/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008020
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I. -c -o minigzip.o test/minigzip.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a
d:/3ds/devstuff/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008020
make[1]: Leaving directory `/d/3DS/Sources/ZLIB/zlib-1.2.8'
D:\3DS\Sources\ZLIB>
TLDR; this is the issue:
d:/3ds/devstuff/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008020
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -I. -c -o minigzip.o test/minigzip.c
arm-none-eabi-gcc -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -O3 -mword-relocations -ffunction-sections -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.a
d:/3ds/devstuff/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008020
make[1]: Leaving directory `/d/3DS/Sources/ZLIB/zlib-1.2.8'
this issue did not happen when compiling at my house, it worked flawlesly, and BTE, no i dont want to us eprecompiled stuff, since i want to learn how to do it from scratch, and i wanna know why at my home it did compile and here it dosnt, :/
i know there are precompiled libraries and stuff to just copy paste, but please understand, BTW im using the script from here: https://github.com/devkitPro/3ds_portlibs
and running Make Download, and Make zlib and neither do work :/ i got that error QQ.
Note: as a note, it appears that libz.a its generated on the source directory, but its not moved where the devkitarm directory is, and neither the libconfig file its generated.
Last edited by ScarletDreamz,