2016-04-18 9 views
0

gcc 5をまだ持っていないHEADブランチからの古いDas u-bootのため、gcc 4.8または4.9を5.2ではなくデフォルトのコンパイラとして使用する予定です。Yocto Jethro:Yoctoデフォルトコンパイラを選択するには? gccを使用するとglibcが失敗しましたgcc 4.9

GCC必須仮想/ libc glibc-2.22。 glibc-2.22は5.2で正常にコンパイルされました。残念ながら、それはエラーでdo_compileに失敗しました:GCC 4.8と4.9

arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/yocto/hio-jethro/build-hio/tmp/sysroots/hio-imx6dl-board-tcbootstrap -nostdlib -nostartfiles -r -o /yocto/hio-jethro/build-hio/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/glibc/2.22-r0/build-arm-poky-linux-gnueabi/elf/librtld.map.o '-Wl,-(' /yocto/hio-jethro/build-hio/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/glibc/2.22-r0/build-arm-poky-linux-gnueabi/elf/dl-allobjs.os /yocto/hio-jethro/build-hio/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/glibc/2.22-r0/build-arm-poky-linux-gnueabi/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/yocto/hio-jethro/build-hio/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/glibc/2.22-r0/build-arm-poky-linux-gnueabi/elf/librtld.mapT 
/yocto/hio-jethro/build-hio/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi.gcc-cross-initial-arm/../../libexec/arm-poky-linux-gnueabi.gcc-cross-initial-arm/gcc/arm-poky-linux-gnueabi/5.2.0/ld: cannot find -lgcc 
collect2: error: ld returned 1 exit status 
make[2]: *** [/yocto/hio-jethro/build-hio/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/glibc/2.22-r0/build-arm-poky-linux-gnueabi/elf/librtld.map] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
make[2]: Leaving directory `/yocto/hio-jethro/build-hio/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/glibc/2.22-r0/git/elf' 
make[1]: *** [elf/subdir_lib] Error 2 
make[1]: Leaving directory `/yocto/hio-jethro/build-hio/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/glibc/2.22-r0/git' 
make: *** [all] Error 2 
ERROR: oe_runmake failed 

ld: cannot find -lgcc私は右のエラーで探していますか?どのように-lgccを追加しますか?

編集: 私はFidoブランチでチェックして、すべて正常に動作しています。 gccとglibcをFidoに置き換える必要があるかもしれません。

答えて

1

GCC 4の使用方法を教えてください。パスはまだ5.2.0を参照しています。これは、正しく変更していないことを示しています。 GCCのバージョンを変更する正しい方法は、GCCVERSION、すなわちGCCVERSION="4.%"を設定することです。

また、jethroのu-bootはgcc5をサポートしていますが、どうして古いリリースを使用していますか?

+0

私は 'PREFERRED_VERSION_gcc?= "" 4.9% "とそのすべてをlocal.confに関連させて追加しました。私が使用しているのは2歳以上で、gcc5をサポートしていないため、古いU-Bootを使用しています。まだ更新が必要ですが、まだ時間がありません。私はなぜそれがまだ5.2をいくつかの部分で呼び出すのか分からない。 –

+0

答えにGCCVERSION = "4.9%"を追加できますか?助けてくれてありがとう。 –

関連する問題