powerpc 交叉编译错误
在UBUNTU上安装了ELDK,编译UBOOT时出现错误信息,那位大神点拨一二,感激不敬!!!powerpc-linux-ld.bfd:cannotfind-lgccex...
在UBUNTU上安装了ELDK ,编译UBOOT 时出现错误信息,那位大神点拨一二,感激不敬!!!
powerpc-linux-ld.bfd: cannot find -lgcc
examples/standalone/Makefile:67: recipe for target 'examples/standalone/hello_world' failed
make[2]: *** [examples/standalone/hello_world] Error 1
scripts/Makefile.build:420: recipe for target 'examples/standalone' failed
make[1]: *** [examples/standalone] Error 2
Makefile:1093: recipe for target 'examples' failed
make: *** [examples] Error 2
环境变量;
declare -x AR="powerpc-linux-ar"
declare -x ARCH="powerpc"
declare -x AS="powerpc-linux-as "
declare -x CC="powerpc-linux-gcc -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=##SDKTARGETSYSROOT##"
declare -x CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
declare -x COLORTERM="gnome-terminal"
declare -x CONFIGURE_FLAGS="--target=powerpc-linux --host=powerpc-linux --build=i686-linux --with-libtool-sysroot=##SDKTARGETSYSROOT##"
declare -x CONFIG_SITE="/opt/eldk/powerpc-e500v2/site-config-ppce500v2-linux"
declare -x CPP="powerpc-linux-gcc -E -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=##SDKTARGETSYSROOT##"
declare -x CPPFLAGS=""
declare -x CROSS_COMPILE="powerpc-linux-"
declare -x CXX="powerpc-linux-g++ -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=##SDKTARGETSYSROOT##"
declare -x CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
declare -x DISPLAY=":0"
declare -x GDB="powerpc-linux-gdb"
declare -x LD="powerpc-linux-ld --sysroot=##SDKTARGETSYSROOT##"
declare -x LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
declare -x MAIL="/var/mail/root"
declare -x NM="powerpc-linux-nm"
declare -x OBJCOPY="powerpc-linux-objcopy"
declare -x OBJDUMP="powerpc-linux-objdump"
declare -x OECORE_ACLOCAL_OPTS="-I /opt/eldk/powerpc-e500v2/sysroots/i686-eldk-linux/usr/share/aclocal"
declare -x OECORE_DISTRO_VERSION="5.6"
declare -x OECORE_NATIVE_SYSROOT="/opt/eldk/powerpc-e500v2/sysroots/i686-eldk-linux"
declare -x OECORE_SDK_VERSION="5.6"
declare -x PATH="/opt/eldk/powerpc-e500v2/sysroots/i686-eldk-linux/usr/bin:/opt/eldk/powerpc-e500v2/sysroots/i686-eldk-linux/usr/bin/powerpc-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
declare -x PKG_CONFIG_SYSROOT_DIR="##SDKTARGETSYSROOT##"
declare -x PWD="/opt/eldk/powerpc-e500v2"
declare -x PYTHONHOME="/opt/eldk/powerpc-e500v2/sysroots/i686-eldk-linux/usr"
declare -x RANLIB="powerpc-linux-ranlib"
declare -x STRIP="powerpc-linux-strip"
declare -x TARGET_PREFIX="powerpc-linux-" 展开
powerpc-linux-ld.bfd: cannot find -lgcc
examples/standalone/Makefile:67: recipe for target 'examples/standalone/hello_world' failed
make[2]: *** [examples/standalone/hello_world] Error 1
scripts/Makefile.build:420: recipe for target 'examples/standalone' failed
make[1]: *** [examples/standalone] Error 2
Makefile:1093: recipe for target 'examples' failed
make: *** [examples] Error 2
环境变量;
declare -x AR="powerpc-linux-ar"
declare -x ARCH="powerpc"
declare -x AS="powerpc-linux-as "
declare -x CC="powerpc-linux-gcc -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=##SDKTARGETSYSROOT##"
declare -x CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
declare -x COLORTERM="gnome-terminal"
declare -x CONFIGURE_FLAGS="--target=powerpc-linux --host=powerpc-linux --build=i686-linux --with-libtool-sysroot=##SDKTARGETSYSROOT##"
declare -x CONFIG_SITE="/opt/eldk/powerpc-e500v2/site-config-ppce500v2-linux"
declare -x CPP="powerpc-linux-gcc -E -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=##SDKTARGETSYSROOT##"
declare -x CPPFLAGS=""
declare -x CROSS_COMPILE="powerpc-linux-"
declare -x CXX="powerpc-linux-g++ -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=##SDKTARGETSYSROOT##"
declare -x CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
declare -x DISPLAY=":0"
declare -x GDB="powerpc-linux-gdb"
declare -x LD="powerpc-linux-ld --sysroot=##SDKTARGETSYSROOT##"
declare -x LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
declare -x MAIL="/var/mail/root"
declare -x NM="powerpc-linux-nm"
declare -x OBJCOPY="powerpc-linux-objcopy"
declare -x OBJDUMP="powerpc-linux-objdump"
declare -x OECORE_ACLOCAL_OPTS="-I /opt/eldk/powerpc-e500v2/sysroots/i686-eldk-linux/usr/share/aclocal"
declare -x OECORE_DISTRO_VERSION="5.6"
declare -x OECORE_NATIVE_SYSROOT="/opt/eldk/powerpc-e500v2/sysroots/i686-eldk-linux"
declare -x OECORE_SDK_VERSION="5.6"
declare -x PATH="/opt/eldk/powerpc-e500v2/sysroots/i686-eldk-linux/usr/bin:/opt/eldk/powerpc-e500v2/sysroots/i686-eldk-linux/usr/bin/powerpc-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
declare -x PKG_CONFIG_SYSROOT_DIR="##SDKTARGETSYSROOT##"
declare -x PWD="/opt/eldk/powerpc-e500v2"
declare -x PYTHONHOME="/opt/eldk/powerpc-e500v2/sysroots/i686-eldk-linux/usr"
declare -x RANLIB="powerpc-linux-ranlib"
declare -x STRIP="powerpc-linux-strip"
declare -x TARGET_PREFIX="powerpc-linux-" 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励20(财富值+成长值)
2个回答
展开全部
libgcc.a 没有找到:
检查你的libgcc.a环境变量的设置
$CC --print-libgcc-file-name
若路径为libgcc.a 证明是当前目录下的库文件或者是PATH环境变量下的libgcc.a。
找到你的工具链库的地址
find -name "libgcc.a"
/opt/fsl-qoriq/1.9/sysroots/ppce5500-fsl-linux/usr/lib/powerpc-fsl-linux/4.9.2/libgcc.a3
将此地址加到PATH里去:
export PATH=/opt/fsl-qoriq/1.9/sysroots/ppce5500-fsl-linux/usr/lib/powerpc-fsl-linux/4.9.2/libgcc.a:$PATH
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这个内核用什么编译,是由KERNELDIR ?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询