This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH ARC 1/8] BFD: new ARC port
- From: Nick Clifton <nickc at redhat dot com>
- To: Claudiu Zissulescu <claziss at gmail dot com>, binutils at sourceware dot org, cmiranda at synopsys dot com, claziss at synopsys dot com, fbedard at synopsys dot com
- Date: Wed, 16 Sep 2015 09:17:09 +0100
- Subject: Re: [PATCH ARC 1/8] BFD: new ARC port
- Authentication-results: sourceware.org; auth=none
- References: <1441282788-24700-1-git-send-email-claziss at gmail dot com> <20150903161609 dot GG4786 at vapier> <55E97D79 dot 40107 at gmail dot com> <55E9AC9B dot 8020906 at redhat dot com> <55F03C17 dot 7000904 at gmail dot com> <55F2A6AC dot 1060905 at redhat dot com> <55F87B9B dot 7020406 at gmail dot com>
Hi Claudiu,
bfd/elf32-arc.c:1359:97: error: cast from pointer to integer of
different size [-Werror=pointer-to-int-cast]
Please can you tell me more about the test system. For my 32bit testing, I am using xubuntu 15.04 distoro, with gcc4.8/gcc5.
Ah - you caught me. I was not compiling on a 32-bit system at all. I
was compiling on a 64-bit x86_64 host running Fedora 22, but running the
compiler with -m32 specified. Ie I configured the build with:
CC="gcc -m32" CXX="g++ -m32" ABI="32" setarch i686 \
$(SOURCE_DIR)/configure \
--quiet \
--enable-plugins \
--cache-file=/dev/null \
--prefix=`pwd`/install \
--disable-shared \
--disable-symvers \
--enable-targets=all
The version of gcc that I use is:
gcc 5.1.1 20150618 (Red Hat 5.1.1-4)
Does this help ?
Cheers
Nick