Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make menuconfig 出错 #3

Open
miyouzi opened this issue Sep 9, 2018 · 2 comments
Open

make menuconfig 出错 #3

miyouzi opened this issue Sep 9, 2018 · 2 comments

Comments

@miyouzi
Copy link

miyouzi commented Sep 9, 2018

使用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

@wangyu-
Copy link
Collaborator

wangyu- commented Sep 9, 2018

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

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

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

@miyouzi
Copy link
Author

miyouzi commented Sep 10, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants