luci-app-udp2raw icon indicating copy to clipboard operation
luci-app-udp2raw copied to clipboard

make menuconfig 出错

Open miyouzi opened this issue 5 years ago • 2 comments

使用SDK OpenWrt-SDK-15.05.1-ramips-mt7621_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2 按照 教程 操作。 报错:

miyouzi@ubuntu:~/wangyu/openwrt-sdk$ 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
/home/miyouzi/wangyu/openwrt-sdk/include/toplevel.mk:89: recipe for target 'scripts/config/mconf' failed
make: *** [scripts/config/mconf] Error 1
miyouzi@ubuntu:~/wangyu/openwrt-sdk$ make menuconfig -j1 V=s
make[1]: Entering directory '/home/miyouzi/wangyu/openwrt-sdk/scripts/config'
/usr/bin/x86_64-linux-gnu-ld: zconf.tab.o: relocation R_X86_64_32S against symbol `symbol_yes' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:32: recipe for target 'mconf' failed
make[1]: *** [mconf] Error 1
make[1]: Leaving directory '/home/miyouzi/wangyu/openwrt-sdk/scripts/config'
/home/miyouzi/wangyu/openwrt-sdk/include/toplevel.mk:89: recipe for target 'scripts/config/mconf' failed
make: *** [scripts/config/mconf] Error 2

但是跳过这一步,直接 make ,可以直接编译出 ipk ,并可以使用,请问这是什么问题。 环境:Ubuntu 18 LTS 64bit

miyouzi avatar Sep 09 '18 11:09 miyouzi

那个教程里的方法我只在lede 17.01上测试过,可能openwrt 15.05不太一样。

我平常用这个方法来build,可以绕过openwrt/lede的buildroot脚本,更简单通用:

https://github.com/wangyu-/tinyPortMapper/wiki/How-to-build

wangyu- avatar Sep 09 '18 14:09 wangyu-

@wangyu- 谢谢。才知道原项目makefile已自带交叉编译功能。先已成功编译出tinyfecVPN、tinyPortMapper,移植到路由可运行。

miyouzi avatar Sep 10 '18 08:09 miyouzi