|
【Linux】
编译Buildroot时报错
发表于 2019-1-16 10:18:23
浏览:9621
|
回复:6
打印
只看该作者
[复制链接]
楼主
我这边下载源码分别编译 Uboot,Kernel,Buildroot
编译Uboot时ok
Kernal时也ok
在我编译Buildroot时报错,网络上也找不到相关的解决方案,希望可以帮我定为问题并吧问题解决
使用环境是:
dev@LinuxServer:~/Documents/rk3308-linux-sdk$ uname -a
Linux LinuxServer 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
编译步骤是
$ rm buildroot/output -rf
$ source buildroot/build/envsetup.sh
You're building on Linux
Lunch menu...pick a combo:
1. firefly_rk3308_release
2. firefly_rk3308_recovery
3. firefly_rk3308_pcba
Which would you like? [1] 1
在我执行编译:
make
后执行好久后在下面的日志打出后退出编译
>>> bluez5_utils 5.50 Fixing libtool files
>>> bluez5_utils 5.50 Installing to target
PATH="/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/host/bin:/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/host/sbin:/home/dev/bin:/home/dev/.local/bin:/bin:/usr/local/Java/jdk1.8.0_181/bin:/usr/local/Java/jdk1.8.0_181/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" RecoveryNoUi=true /usr/bin/make -j24 DESTDIR=/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target install -C /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/build/bluez5_utils-5.50/
/usr/bin/make --no-print-directory install-am
/bin/mkdir -p '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/lib'
/bin/bash ./libtool --mode=install /usr/bin/install -c lib/libbluetooth.la '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/lib'
/bin/mkdir -p '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/libexec/bluetooth'
/bin/mkdir -p '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/include/bluetooth'
/bin/mkdir -p '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/etc/dbus-1/system.d'
/bin/mkdir -p '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/lib/pkgconfig'
/bin/mkdir -p '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/share/man/man1'
/bin/mkdir -p '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/share/man/man8'
/bin/mkdir -p '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/lib/udev/rules.d'
/bin/mkdir -p '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/lib/udev'
/usr/bin/install -c -m 644 lib/bluez.pc '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/lib/pkgconfig'
/usr/bin/install -c -m 644 lib/bluetooth.h lib/hci.h lib/hci_lib.h lib/sco.h lib/l2cap.h lib/sdp.h lib/sdp_lib.h lib/rfcomm.h lib/bnep.h lib/cmtp.h lib/hidp.h '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/include/bluetooth'
/usr/bin/install -c -m 644 tools/97-hid2hci.rules '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/lib/udev/rules.d'
/bin/bash ./libtool --mode=install /usr/bin/install -c src/bluetoothd '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/libexec/bluetooth'
/usr/bin/install -c -m 644 src/bluetooth.conf '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/etc/dbus-1/system.d'
/bin/bash ./libtool --mode=install /usr/bin/install -c tools/hid2hci '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/lib/udev'
/usr/bin/install -c -m 644 src/bluetoothd.8 '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/share/man/man8'
/usr/bin/install -c -m 644 tools/rctest.1 tools/l2ping.1 tools/bccmd.1 tools/btattach.1 tools/hciattach.1 tools/hciconfig.1 tools/hcitool.1 tools/hcidump.1 tools/rfcomm.1 tools/sdptool.1 tools/ciptool.1 tools/hid2hci.1 '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/share/man/man1'
libtool: install: /usr/bin/install -c lib/.libs/libbluetooth.so.3.18.16 /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/lib/libbluetooth.so.3.18.16
libtool: install: (cd /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/lib && { ln -s -f libbluetooth.so.3.18.16 libbluetooth.so.3 || { rm -f libbluetooth.so.3 && ln -s libbluetooth.so.3.18.16 libbluetooth.so.3; }; })
libtool: install: (cd /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/lib && { ln -s -f libbluetooth.so.3.18.16 libbluetooth.so || { rm -f libbluetooth.so && ln -s libbluetooth.so.3.18.16 libbluetooth.so; }; })
libtool: install: /usr/bin/install -c lib/.libs/libbluetooth.lai /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/lib/libbluetooth.la
libtool: install: warning: remember to run `libtool --finish /usr/lib'
/bin/mkdir -p '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin'
libtool: install: /usr/bin/install -c src/bluetoothd /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/libexec/bluetooth/bluetoothd
libtool: install: /usr/bin/install -c tools/hid2hci /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/lib/udev/hid2hci
/bin/bash ./libtool --mode=install /usr/bin/install -c monitor/btmon tools/rctest tools/l2test tools/l2ping tools/bccmd tools/bluemoon tools/hex2hcd tools/mpris-proxy tools/btattach tools/hciattach tools/hciconfig tools/hcitool tools/hcidump tools/rfcomm tools/sdptool tools/ciptool '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin'
libtool: install: /usr/bin/install -c monitor/btmon /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/btmon
libtool: install: /usr/bin/install -c tools/rctest /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/rctest
libtool: install: /usr/bin/install -c tools/l2test /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/l2test
libtool: install: /usr/bin/install -c tools/l2ping /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/l2ping
libtool: install: /usr/bin/install -c tools/bccmd /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/bccmd
libtool: install: /usr/bin/install -c tools/bluemoon /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/bluemoon
libtool: install: /usr/bin/install -c tools/hex2hcd /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/hex2hcd
libtool: install: /usr/bin/install -c tools/mpris-proxy /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/mpris-proxy
libtool: install: /usr/bin/install -c tools/btattach /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/btattach
libtool: install: /usr/bin/install -c tools/hciattach /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/hciattach
libtool: install: /usr/bin/install -c tools/hciconfig /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/hciconfig
libtool: install: /usr/bin/install -c tools/hcitool /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/hcitool
libtool: install: /usr/bin/install -c tools/hcidump /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/hcidump
libtool: install: /usr/bin/install -c tools/rfcomm /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/rfcomm
libtool: install: /usr/bin/install -c tools/sdptool /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/sdptool
libtool: install: /usr/bin/install -c tools/ciptool /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/ciptool
install -C /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/build/bluez5_utils-5.50/tools/gatt-service /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin
install -C /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/build/bluez5_utils-5.50/tools/hciconfig /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin
install -C /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/build/bluez5_utils-5.50/tools/hcitool /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin
install -C package/bluez5_utils/bluez5_utils_wifi_config.sh /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/target/usr/bin/
/bin/bash: 第 1 行: test: /home/dev/Documents/rk3308-linux-sdk/buildroot/dl/openssl-1.0.2d-parallel-build.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d: 需要二元表达式
/bin/bash: 第 1 行: test: /home/dev/Documents/rk3308-linux-sdk/buildroot/dl/openssl-1.0.2a-parallel-obj-headers.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d: 需要二元表达式
/bin/bash: 第 1 行: test: /home/dev/Documents/rk3308-linux-sdk/buildroot/dl/openssl-1.0.2a-parallel-install-dirs.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d: 需要二元表达式
/bin/bash: 第 1 行: test: /home/dev/Documents/rk3308-linux-sdk/buildroot/dl/openssl-1.0.2a-parallel-symlinking.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d: 需要二元表达式
openssl-1.0.2n.tar.gz: OK (sha256: 370babb75f278c39e0c50e8c4e7493bc0f18db6867478341a832a982fd15a8fe)
>>> host-libopenssl 1.0.2n Extracting
gzip -d -c /home/dev/Documents/rk3308-linux-sdk/buildroot/dl/openssl-1.0.2n.tar.gz | tar --strip-components=1 -C /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/build/host-libopenssl-1.0.2n -xf -
>>> host-libopenssl 1.0.2n Patching
PATH=/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/host/bin:$PATH support/scripts/apply-patches.sh /home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/build/host-libopenssl-1.0.2n /home/dev/Documents/rk3308-linux-sdk/buildroot/dl openssl-1.0.2d-parallel-build.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d
Applying openssl-1.0.2d-parallel-build.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d using patch:
patching file crypto/Makefile
patching file engines/Makefile
patching file Makefile.org
Hunk #1 succeeded at 282 with fuzz 1 (offset 8 lines).
Hunk #2 succeeded at 556 (offset 1 line).
patching file Makefile.shared
patching file test/Makefile
Hunk #1 succeeded at 145 (offset 12 lines).
Hunk #2 succeeded at 441 with fuzz 2 (offset 39 lines).
Hunk #3 succeeded at 586 (offset 57 lines).
Applying openssl-1.0.2d-parallel-build.patchid=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d using patch:
patching file crypto/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file crypto/Makefile.rej
patching file engines/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file engines/Makefile.rej
patching file Makefile.org
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file Makefile.org.rej
patching file Makefile.shared
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file Makefile.shared.rej
patching file test/Makefile
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file test/Makefile.rej
package/pkg-generic.mk:211: recipe for target '/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/build/host-libopenssl-1.0.2n/.stamp_patched' failed
make[1]: *** [/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/build/host-libopenssl-1.0.2n/.stamp_patched] Error 1
/home/dev/Documents/rk3308-linux-sdk/buildroot/output/firefly_rk3308_release/Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2 |
|