Hello everyone,
I have router XDX RN502J and I wanted to remove/add some packages with "ImageBuilder-15.05.1" unfortunately there is no profile for this router, even it is available as precompiled image at https://archive.openwrt.org/chaos_calmer/15.05.1/ramips/rt305x/
Interesting is that there are some files which contain string "xdxrn502j". So I decided to try to compile new image builder from SDK in hope there is option for this router model but I have been stuck almost at the beginning of recompile process. I am using VirtualBox with installed "Linux DebianVM 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64 GNU/Linux" and all prerequisites as described in "Build system setup". Command make menuconfig
ends with error:
zconf.tab.o: relocation R_X86_64_32S against symbol `symbol_yes'
and I have no idea how to fix it by myself.
Could someone advise, please?
All terminal logs are here: https://drive.google.com/drive/folders/1JEj_IpHRfive6CeC7Ag1eGSKwbPizfcA?usp=sharing
rasto@DebianVM:~/Downloads/OpenWrt-SDK-15.05.1-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64$ make menuconfig
make -s -C scripts/config all CC=cc: build failed. Please re-run make with -j1 V=s to see what's going on
make: *** [/home/rasto/Downloads/OpenWrt-SDK-15.05.1-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/include/toplevel.mk:89: scripts/config/mconf] Error 1
rasto@DebianVM:~/Downloads/OpenWrt-SDK-15.05.1-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64$ make -j`nproc` V=scv menuconfig
make[1]: Entering directory '/home/rasto/Downloads/OpenWrt-SDK-15.05.1-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/scripts/config'
/usr/bin/ld: zconf.tab.o: relocation R_X86_64_32S against symbol `symbol_yes' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:32: mconf] Error 1
make[1]: Leaving directory '/home/rasto/Downloads/OpenWrt-SDK-15.05.1-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/scripts/config'
make: *** [/home/rasto/Downloads/OpenWrt-SDK-15.05.1-ramips-rt305x_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/include/toplevel.mk:89: scripts/config/mconf] Error 2