RTL00MP3 icon indicating copy to clipboard operation
RTL00MP3 copied to clipboard

Compilation fails

Open drasko opened this issue 7 years ago • 5 comments

drasko@Lenin:~/rtl8710/RTL00MP3$ make
make[1]: Entering directory '/home/drasko/rtl8710/RTL00MP3'
===========================================================
Compile (build)
===========================================================
Link (build)
/home/drasko/toolchain/mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: cannot open linker script file rlx8195A-symbol-v04-img2.ld: No such file or directory
collect2: error: ld returned 1 exit status
RTL00_SDKV35a/sdkbuild.mk:48: recipe for target 'application' failed
make[1]: *** [application] Error 1
make[1]: Leaving directory '/home/drasko/rtl8710/RTL00MP3'
Makefile:8: recipe for target 'ram_all' failed
make: *** [ram_all] Error 2

drasko avatar May 14 '17 10:05 drasko

Applying the patch here: https://github.com/pvvx/RTL00MP3/pull/2/files helped, but now I have an other error:

make[1]: Entering directory '/home/drasko/rtl8710/RTL00MP3'
===========================================================
Compile (build)
===========================================================
Link (build)
/home/drasko/toolchain/mbed/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: Error rom-bios-boot code & data!
collect2: error: ld returned 1 exit status
RTL00_SDKV35a/sdkbuild.mk:48: recipe for target 'application' failed
make[1]: *** [application] Error 1
make[1]: Leaving directory '/home/drasko/rtl8710/RTL00MP3'
Makefile:8: recipe for target 'ram_all' failed
make: *** [ram_all] Error 2

drasko avatar May 14 '17 10:05 drasko

Your toolchain is too old. GCC 4.8 produces binaries that are too big to fit into the flash image. Try using the current GCC 5.0 release from launchpad.

tidklaas avatar May 14 '17 13:05 tidklaas

There is another problem now:

Link (build)
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -g -Os -nostartfiles -nostdlib -Wl,--gc-sections -Wl,--cref -Wl,--entry=Reset_Handler -Wl,--no-enum-size-warning -Wl,--no-wchar-size-warning -Wl,-nostdlib -Wl,-Map=build/obj/build.map  -o build/obj/build.axf @build/obj/obj_list.lst -LRTL00_SDKV35a/component/soc/realtek/8195a/misc/bsp/lib/common/GCC -l_platform_new -l_wlan -l_p2p -l_wps -l_websocket -l_sdcard -l_xmodem -l_mdns -Trlx8195A-symbol-v04-img2.ld
/usr/lib/gcc/arm-none-eabi/5.4.1/../../../arm-none-eabi/bin/ld: section .romheap VMA [0000000010002400,0000000010002fff] overlaps section .ram_image1.text VMA [0000000010000bc8,0000000010002be3]
collect2: error: ld returned 1 exit status
RTL00_SDKV35a/sdkbuild.mk:48: recipe for target 'application' failed
make[1]: *** [application] Error 1
make[1]: Leaving directory '/home/drasko/rtl8710/RTL00MP3'
Makefile:8: recipe for target 'ram_all' failed
make: *** [ram_all] Error 2

drasko avatar May 14 '17 14:05 drasko

Hmmm... it was due to the Debian's arm-none-eabi-gcc. I took one from Launchpad, now compilation works, but I still have the problem of IAR pick tool referenced here: https://github.com/pvvx/RTL00MP3/issues/5

drasko avatar May 14 '17 14:05 drasko

The binaries have been checked in with the wrong file modes. You need to update the permissions to make them executable. chmod ug+x ...

tidklaas avatar May 14 '17 14:05 tidklaas