On Oct 31, 2017, at 4:08 AM, Veena & Deepak Ramaswamy veenadeepak@gmail.com wrote:
Thank you for your input, Maxim. Tried your suggestions - same problem again. Anything else I can try?
You have 2 ways forward:
- Try recent toolchains, e.g., http://releases.linaro.org/components/toolchain/binaries/6.4-2017.08/ or http://releases.linaro.org/components/toolchain/binaries/7.1-2017.08/ .
[if that doesn't work]
- File a bug in our bugzilla and attach a reduced testcase (tarball with object files and a single command line) to reproduce the failure: https://bugs.linaro.org/enter_bug.cgi?product=Linux%20Binary%20toolchain&...
Regards,
-- Maxim Kuvyrkov www.linaro.org
On Mon, Oct 30, 2017 at 4:55 AM, Maxim Kuvyrkov maxim.kuvyrkov@linaro.org wrote:
On Oct 27, 2017, at 6:10 AM, Veena & Deepak Ramaswamy veenadeepak@gmail.com wrote:
All,
Using the tool chain that comes with the FVP package that I downloaded last month (Oct 2017), I'm trying to compile the Splash2 benchmark to execute on the latest FVP platform and seeing a compilation issue that goes like this (please see below)
To reproduce:
1. download the benchmark from here and follow _all_ the instructions in the homepage: http://www.capsl.udel.edu/splash/Download.html 2. edit the makefile.config under /splash2/codes to use linaro toolchain and choose POSIX_BARRIER for the MACROS section (I've pasted my makefile.config here as well - you will have to modify the toolchain paths to suit your setup) 3. cd to splash2/codes/apps/ocean/contiguous_partitions 4. make (and you will see the problem)
Please help. Thanks.
/local/mnt/workspace/linaro/tools/gcc/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc jacobcalc.o jacobcalc2.o laplacalc.o linkup.o main.o multi.o slave1.o slave2.o subblock.o -v -O3 -pthread -D_POSIX_C_SOURCE=200112 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wdisabled-optimization -Wpadded -Winline -Wpointer-arith -Wsign-compare -Wendif-labels -lgcc -lc -lm -static -o OCEAN -lm -lc -lgcc -static
Your explicit linking flags might be causing the problem. Try removing "-lgcc -lc" from your command line.
You can notice in the output that compiler driver adds "--start-group -lgcc -lc ... --end-group" options, which is how -lgcc and -lc should be used when linking.
-- Maxim Kuvyrkov www.linaro.org
-- "To race is to live. But those who died while racing knew, perhaps, how to live more than all others." ~ Juan Fangio, Formula-1 5 time champ