Re: Problem building cross-compiler for AIX 6.1

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

 



On 31 May 2012 20:28, John M Collins wrote:
> Please CC me as I'm not subscribed thanks
>
> I am trying to build a cross-compiler with gcc-4.7.0 from Ubuntu Linux
> to AIX6.1
>
> I have build the binutils (2.22) OK
>
> I have copied the include files and /usr/lib contents from AIX6.1 to
> /home/crossenv/powerpc-ibm-aix6.1/include and .../lib
>
> I am running:
>
> ../gcc-4.7.0/configure --target=powerpc-ibm-aix6.1
> --prefix=/home/crossenv --disable-nls --enable-languages=c,c++

I'm no cross-compiler expert but shouldn't there be a --with-sysroot in there?

> make all-gcc
> make install-gcc
> make all-target-libgcc
>
> However it gets as far as the following on the last step
>
> /bin/bash ../../../../gcc-4.7.0/libgcc/../mkinstalldirs
> ../../.././gcc/pthread
> /usr/bin/install -c -m 644 libgcc_eh.a ../../.././gcc/pthread/
> chmod 644 ../../.././gcc/pthread/libgcc_eh.a
> /home/crossenv/powerpc-ibm-aix6.1/bin/ranlib
> ../../.././gcc/pthread/libgcc_eh.a
> /bin/bash ../../../../gcc-4.7.0/libgcc/../mkinstalldirs
> ../../.././gcc/pthread; /usr/bin/install -c -m 644 pthread/libgcc_s.a
> ../../.././gcc/pthread/
> /usr/bin/install: cannot stat `pthread/libgcc_s.a': No such file or
> directory
>
> I don't need threads straightaway, can I bypass this just to get off the
> ground?

You could try configuring GCC with --disable-threads


[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