Re: Help working out where GCC decides the size of 0xFFFFFFFF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On Sun, Apr 19, 2015 at 4:01 AM, Oleg Endo <oleg.endo@xxxxxxxxxxx> wrote:
> Hi,
>
> How did you configure/build the toolchain that runs natively on SH?

So excluding the bintutils and newlib builds, I built the toolchain as
follows (on OSX Yosemite):

(1) Build GCC 5 (rev 222001) on OSX
../src/gcc-trunk/configure --prefix=/usr/local

(2) Build cross compiler
../src/gcc-trunk/configure -target=sh-elf --prefix=/usr/local/sh-elf/
--with-gnu-as --with-gnu-ld --with-newlib --without-headers
--enable-languages=c,c++ --disable-nls --disable-libssp
--disable-libada --disable-libquadmath --disable-libgomp

(3) Build native compiler
export PATH=/usr/local/sh-elf/bin:$PATH
../src/gcc-trunk/configure --host=sh-elf --target=sh-elf
--prefix=/usr/local/sh-elf/ --with-gnu-as --with-gnu-ld --with-newlib
--without-headers --enable-languages=c --disable-nls --disable-libssp
--disable-libada --disable-libquadmath --disable-libgomp CFLAGS="-g
-m2e -pie" CXXFLAGS="-m2e -pie -fpermissive -g" --disable-libstdcxx

There is a small step where the build seems to build some stuff using
the build machine's compiler and uses my passed in CXXFLAGS, so I
edited the Makefile post configure to resolve that:

build-x86_64-apple-darwin14.3.0/libcpp/Makefile

Cheers

Alex




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux