[U-Boot] With u-boot vertion u-boot-d8bdfc8 compile error

Dear sir or madam : when i want to generate u-boot file for zynq device , i found it can not be compiled ;
the error code are as below : root@lolo-pc:~/zynq_study/u-boot_file/u-boot-d8bdfc8# make zynq_zc702_defconfig HOSTCC scripts/basic/fixdep as: unrecognized option '--32' scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed make[1]: *** [scripts/basic/fixdep] Error 1 Makefile:398: recipe for target 'scripts_basic' failed make: *** [scripts_basic] Error 2
Could you please help me to find out the problem ~ ths! lolo_lee

Hi,
2016-11-02 10:07 GMT+01:00 李东升 000lidongsheng@163.com:
Dear sir or madam : when i want to generate u-boot file for zynq device , i found it can not be compiled ;
the error code are as below : root@lolo-pc:~/zynq_study/u-boot_file/u-boot-d8bdfc8# make zynq_zc702_defconfig HOSTCC scripts/basic/fixdep as: unrecognized option '--32' scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed make[1]: *** [scripts/basic/fixdep] Error 1 Makefile:398: recipe for target 'scripts_basic' failed make: *** [scripts_basic] Error 2
Could you please help me to find out the problem ~
You have to add arm32 toolchain to your patch. If you have vivado you should get it.
Then just export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
and build.
Thanks, Michal

Dear sir : before make , I have do something as below : 1. export CROSS_COMPILE=arm-xilinx-linux-gnueabi- export PATH=/opt/zynq_gcc/arm-xilinx-linux-gnueabi/bin:$PATH 2. export ARCH=arm export CROSS_COMPILE=arm-xilinx-Linux-gnueabi-
3. make zynq_zc702_defconfig
At 2016-11-03 18:44:42, "Michal Simek" monstr@monstr.eu wrote:
Hi,
2016-11-02 10:07 GMT+01:00 李东升 000lidongsheng@163.com: Dear sir or madam : when i want to generate u-boot file for zynq device , i found it can not be compiled ;
the error code are as below : root@lolo-pc:~/zynq_study/u-boot_file/u-boot-d8bdfc8# make zynq_zc702_defconfig HOSTCC scripts/basic/fixdep as: unrecognized option '--32' scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed make[1]: *** [scripts/basic/fixdep] Error 1 Makefile:398: recipe for target 'scripts_basic' failed make: *** [scripts_basic] Error 2
Could you please help me to find out the problem ~
You have to add arm32 toolchain to your patch. If you have vivado you should get it.
Then just
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
and build.
Thanks,
Michal

Dear sir : I followed the wiki's steps , the problem have not be resolved ; root@lolo-Lenovo-3000:/home/lolo/lolo/zynq_study/u-boo_file/u-boot-d8bdfc8# make zynq_zc702_defconfig HOSTCC scripts/basic/fixdep as: unrecognized option '--32' scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed make[1]: *** [scripts/basic/fixdep] Error 1 Makefile:398: recipe for target 'scripts_basic' failed make: *** [scripts_basic] Error 2
At 2016-11-03 18:44:42, "Michal Simek" monstr@monstr.eu wrote:
Hi,
2016-11-02 10:07 GMT+01:00 李东升 000lidongsheng@163.com: Dear sir or madam : when i want to generate u-boot file for zynq device , i found it can not be compiled ;
the error code are as below : root@lolo-pc:~/zynq_study/u-boot_file/u-boot-d8bdfc8# make zynq_zc702_defconfig HOSTCC scripts/basic/fixdep as: unrecognized option '--32' scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed make[1]: *** [scripts/basic/fixdep] Error 1 Makefile:398: recipe for target 'scripts_basic' failed make: *** [scripts_basic] Error 2
Could you please help me to find out the problem ~
You have to add arm32 toolchain to your patch. If you have vivado you should get it.
Then just
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
and build.
Thanks,
Michal

Dear sir: The problem may be as below : use PC linux gcc -v and arm-xilinx-linux-gnueabi-gcc -v , the result are the same ; Do you know how could I to change PC system gcc linkback to x86 compile toolchain ;
At 2016-11-03 18:44:42, "Michal Simek" monstr@monstr.eu wrote:
Hi,
2016-11-02 10:07 GMT+01:00 李东升 000lidongsheng@163.com: Dear sir or madam : when i want to generate u-boot file for zynq device , i found it can not be compiled ;
the error code are as below : root@lolo-pc:~/zynq_study/u-boot_file/u-boot-d8bdfc8# make zynq_zc702_defconfig HOSTCC scripts/basic/fixdep as: unrecognized option '--32' scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed make[1]: *** [scripts/basic/fixdep] Error 1 Makefile:398: recipe for target 'scripts_basic' failed make: *** [scripts_basic] Error 2
Could you please help me to find out the problem ~
You have to add arm32 toolchain to your patch. If you have vivado you should get it.
Then just
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
and build.
Thanks,
Michal
participants (2)
-
Michal Simek
-
李东升