Hello, Pekon. It looks like it widespread case on building open source software with default GCC options on x86-64 hosts. I faced quite similar problem building a test examples with CLANG/LLVM 3.3 under cygwin64. The solution is to provide: -mcmodel=medium option to GCC calls. The detail explanation could be found in: http://amiatypist.blogspot.ru/2010/05/relocation-truncated-to-fit-rx866432s.html BR Andrey
From: Pekon Gupta Sent: Monday, February 17, 2014 8:09 AM To: [email protected] ; openrisc ; [email protected] Subject: [OpenRISC] binutils build error Hello all, While building latest HEAD of binutils from 'jonas's toolchain' repo. I was hit by a specific error.. This may/may not be applicable to all, but I'm building it on AMD_x86_64 host machine, so issue can be specific. Has anyone faced similar issue ? /usr/bin/ld: /home/projects/openrisc_source/toolchain/binutils/libiberty/libiberty.a(xmalloc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /home/projects/openrisc_source/toolchain/binutils/libiberty/libiberty.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[7]: *** [libcgencpu.la] Error 1 (Or if there are pre-compiled binaries, then please point me to the same). with regards, pekon -------------------------------------------------------------------------------- _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
_______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
