您尚未登录。

楼主 #1 2021-02-02 22:17:34

Sam
会员
注册时间: 2019-12-06
已发帖子: 55
积分: 60

关于A40i linux SDK编译问题

最近在编译A40i linuxSDK,按照官方的教程在源码根目录下直接 ./build.sh,总是报错,实在无解了,求助大家。电脑系统是Ubtuntu18。

mv -f .deps/testglib.Tpo .deps/testglib.Po
/bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc  -O2 -I/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/include -I/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/include -Wall  -D_REENTRANT  -L/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/lib -L/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/lib -Wl,-rpath,/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/lib -o testglib testglib.o libglib.la 
libtool: link: /usr/bin/gcc -O2 -I/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/include -I/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/include -Wall -D_REENTRANT -Wl,-rpath -Wl,/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/lib -o testglib testglib.o  -L/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/lib -L/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/lib ./.libs/libglib.a
./.libs/libglib.a(garray.o): In function `g_bit_nth_lsf':
garray.c:(.text+0x140): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(garray.o): In function `g_bit_nth_msf':
garray.c:(.text+0x170): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(garray.o): In function `g_bit_storage':
garray.c:(.text+0x1b0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(ghash.o): In function `g_bit_nth_lsf':
ghash.c:(.text+0x240): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(ghash.o): In function `g_bit_nth_msf':
ghash.c:(.text+0x270): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(ghash.o): In function `g_bit_storage':
ghash.c:(.text+0x2b0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(glist.o): In function `g_bit_nth_lsf':
glist.c:(.text+0x1a0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(glist.o): In function `g_bit_nth_msf':
glist.c:(.text+0x1d0): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(glist.o): In function `g_bit_storage':
glist.c:(.text+0x210): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gmem.o): In function `g_bit_nth_lsf':
gmem.c:(.text+0x50): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gmem.o): In function `g_bit_nth_msf':
gmem.c:(.text+0x80): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gmem.o): In function `g_bit_storage':
gmem.c:(.text+0xc0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gmessages.o): In function `g_bit_nth_lsf':
gmessages.c:(.text+0x680): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gmessages.o): In function `g_bit_nth_msf':
gmessages.c:(.text+0x6b0): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gmessages.o): In function `g_bit_storage':
gmessages.c:(.text+0x6f0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gmutex.o): In function `g_bit_nth_lsf':
gmutex.c:(.text+0x80): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gmutex.o): In function `g_bit_nth_msf':
gmutex.c:(.text+0xb0): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gmutex.o): In function `g_bit_storage':
gmutex.c:(.text+0xf0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gnode.o): In function `g_bit_nth_lsf':
gnode.c:(.text+0x830): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gnode.o): In function `g_bit_nth_msf':
gnode.c:(.text+0x860): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gnode.o): In function `g_bit_storage':
gnode.c:(.text+0x8a0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gprimes.o): In function `g_bit_nth_lsf':
gprimes.c:(.text+0x0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gprimes.o): In function `g_bit_nth_msf':
gprimes.c:(.text+0x30): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gprimes.o): In function `g_bit_storage':
gprimes.c:(.text+0x70): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(grel.o): In function `g_bit_nth_lsf':
grel.c:(.text+0x280): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(grel.o): In function `g_bit_nth_msf':
grel.c:(.text+0x2b0): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(grel.o): In function `g_bit_storage':
grel.c:(.text+0x2f0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gslist.o): In function `g_bit_nth_lsf':
gslist.c:(.text+0xf0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gslist.o): In function `g_bit_nth_msf':
gslist.c:(.text+0x120): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gslist.o): In function `g_bit_storage':
gslist.c:(.text+0x160): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gstrfuncs.o): In function `g_bit_nth_lsf':
gstrfuncs.c:(.text+0x0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gstrfuncs.o): In function `g_bit_nth_msf':
gstrfuncs.c:(.text+0x30): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gstrfuncs.o): In function `g_bit_storage':
gstrfuncs.c:(.text+0x70): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gstring.o): In function `g_bit_nth_lsf':
gstring.c:(.text+0xb0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gstring.o): In function `g_bit_nth_msf':
gstring.c:(.text+0xe0): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gstring.o): In function `g_bit_storage':
gstring.c:(.text+0x120): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gtimer.o): In function `g_bit_nth_lsf':
gtimer.c:(.text+0x0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gtimer.o): In function `g_bit_nth_msf':
gtimer.c:(.text+0x30): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gtimer.o): In function `g_bit_storage':
gtimer.c:(.text+0x70): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gtree.o): In function `g_bit_nth_lsf':
gtree.c:(.text+0x940): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gtree.o): In function `g_bit_nth_msf':
gtree.c:(.text+0x970): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gtree.o): In function `g_bit_storage':
gtree.c:(.text+0x9b0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_nth_lsf':
gutils.c:(.text+0x0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_nth_msf':
gutils.c:(.text+0x30): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_storage':
gutils.c:(.text+0x70): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
collect2: error: ld returned 1 exit status
Makefile:455: recipe for target 'testglib' failed
make[5]: *** [testglib] Error 1
make[5]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/glib-1.2.10'
Makefile:530: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/glib-1.2.10'
Makefile:363: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/glib-1.2.10'
Makefile:537: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25'
Makefile:310: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25'
package/Makefile.package.in:289: recipe for target '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/.stamp_built' failed
make: *** [/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/.stamp_built] Error 2
make: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/buildroot'
ERROR: build buildroot Failed

离线

楼主 #2 2021-02-02 22:19:43

Sam
会员
注册时间: 2019-12-06
已发帖子: 55
积分: 60

Re: 关于A40i linux SDK编译问题

Sam 说:

最近在编译A40i linuxSDK,按照官方的教程在源码根目录下直接 ./build.sh,总是报错,实在无解了,求助大家。电脑系统是Ubtuntu18。

mv -f .deps/testglib.Tpo .deps/testglib.Po
/bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc  -O2 -I/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/include -I/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/include -Wall  -D_REENTRANT  -L/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/lib -L/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/lib -Wl,-rpath,/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/lib -o testglib testglib.o libglib.la 
libtool: link: /usr/bin/gcc -O2 -I/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/include -I/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/include -Wall -D_REENTRANT -Wl,-rpath -Wl,/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/lib -o testglib testglib.o  -L/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/lib -L/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/host/usr/lib ./.libs/libglib.a
./.libs/libglib.a(garray.o): In function `g_bit_nth_lsf':
garray.c:(.text+0x140): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(garray.o): In function `g_bit_nth_msf':
garray.c:(.text+0x170): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(garray.o): In function `g_bit_storage':
garray.c:(.text+0x1b0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(ghash.o): In function `g_bit_nth_lsf':
ghash.c:(.text+0x240): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(ghash.o): In function `g_bit_nth_msf':
ghash.c:(.text+0x270): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(ghash.o): In function `g_bit_storage':
ghash.c:(.text+0x2b0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(glist.o): In function `g_bit_nth_lsf':
glist.c:(.text+0x1a0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(glist.o): In function `g_bit_nth_msf':
glist.c:(.text+0x1d0): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(glist.o): In function `g_bit_storage':
glist.c:(.text+0x210): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gmem.o): In function `g_bit_nth_lsf':
gmem.c:(.text+0x50): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gmem.o): In function `g_bit_nth_msf':
gmem.c:(.text+0x80): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gmem.o): In function `g_bit_storage':
gmem.c:(.text+0xc0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gmessages.o): In function `g_bit_nth_lsf':
gmessages.c:(.text+0x680): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gmessages.o): In function `g_bit_nth_msf':
gmessages.c:(.text+0x6b0): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gmessages.o): In function `g_bit_storage':
gmessages.c:(.text+0x6f0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gmutex.o): In function `g_bit_nth_lsf':
gmutex.c:(.text+0x80): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gmutex.o): In function `g_bit_nth_msf':
gmutex.c:(.text+0xb0): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gmutex.o): In function `g_bit_storage':
gmutex.c:(.text+0xf0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gnode.o): In function `g_bit_nth_lsf':
gnode.c:(.text+0x830): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gnode.o): In function `g_bit_nth_msf':
gnode.c:(.text+0x860): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gnode.o): In function `g_bit_storage':
gnode.c:(.text+0x8a0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gprimes.o): In function `g_bit_nth_lsf':
gprimes.c:(.text+0x0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gprimes.o): In function `g_bit_nth_msf':
gprimes.c:(.text+0x30): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gprimes.o): In function `g_bit_storage':
gprimes.c:(.text+0x70): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(grel.o): In function `g_bit_nth_lsf':
grel.c:(.text+0x280): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(grel.o): In function `g_bit_nth_msf':
grel.c:(.text+0x2b0): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(grel.o): In function `g_bit_storage':
grel.c:(.text+0x2f0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gslist.o): In function `g_bit_nth_lsf':
gslist.c:(.text+0xf0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gslist.o): In function `g_bit_nth_msf':
gslist.c:(.text+0x120): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gslist.o): In function `g_bit_storage':
gslist.c:(.text+0x160): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gstrfuncs.o): In function `g_bit_nth_lsf':
gstrfuncs.c:(.text+0x0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gstrfuncs.o): In function `g_bit_nth_msf':
gstrfuncs.c:(.text+0x30): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gstrfuncs.o): In function `g_bit_storage':
gstrfuncs.c:(.text+0x70): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gstring.o): In function `g_bit_nth_lsf':
gstring.c:(.text+0xb0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gstring.o): In function `g_bit_nth_msf':
gstring.c:(.text+0xe0): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gstring.o): In function `g_bit_storage':
gstring.c:(.text+0x120): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gtimer.o): In function `g_bit_nth_lsf':
gtimer.c:(.text+0x0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gtimer.o): In function `g_bit_nth_msf':
gtimer.c:(.text+0x30): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gtimer.o): In function `g_bit_storage':
gtimer.c:(.text+0x70): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gtree.o): In function `g_bit_nth_lsf':
gtree.c:(.text+0x940): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gtree.o): In function `g_bit_nth_msf':
gtree.c:(.text+0x970): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gtree.o): In function `g_bit_storage':
gtree.c:(.text+0x9b0): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_nth_lsf':
gutils.c:(.text+0x0): multiple definition of `g_bit_nth_lsf'
testglib.o:testglib.c:(.text+0x130): first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_nth_msf':
gutils.c:(.text+0x30): multiple definition of `g_bit_nth_msf'
testglib.o:testglib.c:(.text+0x160): first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_storage':
gutils.c:(.text+0x70): multiple definition of `g_bit_storage'
testglib.o:testglib.c:(.text+0x1a0): first defined here
collect2: error: ld returned 1 exit status
Makefile:455: recipe for target 'testglib' failed
make[5]: *** [testglib] Error 1
make[5]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/glib-1.2.10'
Makefile:530: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/glib-1.2.10'
Makefile:363: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/glib-1.2.10'
Makefile:537: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25'
Makefile:310: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25'
package/Makefile.package.in:289: recipe for target '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/.stamp_built' failed
make: *** [/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/.stamp_built] Error 2
make: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/buildroot'
ERROR: build buildroot Failed

方便阅读,单独摘出来错误部分:

testglib.o:testglib.c:(.text+0x1a0): first defined here
collect2: error: ld returned 1 exit status
Makefile:455: recipe for target 'testglib' failed
make[5]: *** [testglib] Error 1
make[5]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/glib-1.2.10'
Makefile:530: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/glib-1.2.10'
Makefile:363: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/glib-1.2.10'
Makefile:537: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25'
Makefile:310: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25'
package/Makefile.package.in:289: recipe for target '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/.stamp_built' failed
make: *** [/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/out/sun8iw11p1/linux/common/buildroot/build/host-pkg-config-0.25/.stamp_built] Error 2
make: Leaving directory '/home/sam/09_A40I_Linux_SDK_20190711/AWW40I_DVK_LINUX/buildroot'
ERROR: build buildroot Failed

最近编辑记录 Sam (2021-02-02 22:20:45)

离线

#3 2021-02-02 22:24:01

落日余晖
会员
注册时间: 2019-11-23
已发帖子: 34
积分: 26.5

Re: 关于A40i linux SDK编译问题

http://bbs.16rd.com/thread-478144-1-1.html

成功解决这个问题。  是内核配置文件没有配置好,只要用上对应全志的配置文件,然后重新编译,make   ARCH=arm    sunxi_defconfig     和在 make  ARCH=arm  menuconfig 上面配置好对应的架构和编译器, 然后再去编译 make -j8 源码 。就可以了。这个问题是很独特的和自己的内核配置文件相关性很大.

离线

#4 2021-02-20 22:22:42

cloudxxcloud
会员
注册时间: 2021-02-20
已发帖子: 39
积分: 31.5

Re: 关于A40i linux SDK编译问题

配置很正常的

离线

#5 2022-06-14 14:22:57

wilson225
会员
注册时间: 2022-06-14
已发帖子: 1
积分: 1

Re: 关于A40i linux SDK编译问题

遇到同样的问题,3楼的办法是否能详细一点,试过内核这样设置,还是不行。。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn