Page 1 of 1

Makefile.x86 in ubuntu 1604 Vivado 2017.2

Posted: Sun Mar 04, 2018 4:09 pm
by la5cq
Bad version of gcc?
I have created a Ubuntu 1604 using VirtualBox on a Windows10 machine, and installed Vivado HLx 2017.2 webpack.

When running Makefile.x86, an error terminated the run:
-------------- snip -------------
#
# configuration written to .config
#
make[1]: Leaving directory '/home/perf/RedPitaya/tmp/u-boot-xlnx-redpitaya-v2016.4'
make -C tmp/u-boot-xlnx-redpitaya-v2016.4 arch=ARM CFLAGS="-O2 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard"
make[1]: Entering directory '/home/perf/RedPitaya/tmp/u-boot-xlnx-redpitaya-v2016.4'
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
UPD include/config.h
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
GEN spl/include/autoconf.mk
CHK include/config/uboot.release
UPD include/config/uboot.release
CHK include/generated/version_autogenerated.h
UPD include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
CC lib/asm-offsets.s
lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch
------------ snip ---------------

A possible cause is that the called gcc does not support the armv5 switch. How do I change this?

Re: Makefile.x86 in ubuntu 1604 Vivado 2017.2

Posted: Mon Mar 05, 2018 8:58 am
by amike88
perhaps you have forgotten to source the settings.sh script.

This script will prepare the environment:

################################################################################
# setup cross compiler toolchain
################################################################################

export CROSS_COMPILE=arm-linux-gnueabihf-

It will also setup Xilinxes Vivado, if it is already installed.

Otherwise follow this instructions for software requirements.

Re: Makefile.x86 in ubuntu 1604 Vivado 2017.2

Posted: Mon Mar 05, 2018 12:28 pm
by la5cq
Thanks, yes - that was my problem - i restarted and forgot to run settings.sh.
Now, the Makefile.x86 ran to completion.