Re: Problems building --target=powerpc-eabi

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

 



On Sat, May 1, 2010 at 12:17 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> Tom Hawkins <tomahawkins@xxxxxxxxx> writes:
>
>> I have '.' in my PATH by default.  Is this a problem?
>
> You should never put '.' in PATH ahead of /bin and /usr/bin.  That
> will tend to break things in general.  It's not very wrong to put '.'
> in PATH when not running as root, but it should always be the last
> entry in PATH.
>
> Ian
>

Thanks for the advice.  This worked great.

I now have been able to compile GCC (c, ada) and Newlib.  Now I'm
coming back around to recompile GCC with the Newlib headers.  The
problem I am now faced with is Newlib does not support dirent.h --
dirent.h contains an #error pragma to force an error if compiled.  But
gcc/ada/adadecode.c include dirent.h by way of adaint.h.   It does not
appear that the include is optional in either adadecode.c or adaint.h.
 Do I need to provide a definition for dirent.h?

-Tom

make[4]: Entering directory
`/home/e0082888/build-powerpc-eabi/build-gcc/gcc/ada/rts'
/home/e0082888/build-powerpc-eabi/build-gcc/./gcc/xgcc
-B/home/e0082888/build-powerpc-eabi/build-gcc/./gcc/
-B/home/e0082888/build-powerpc-eabi/local/powerpc-eabi/b
    -I. -I.. -I../..
-I/home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada
-I/home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/../include
-I/home/e0082888/build-power
In file included from
/home/e0082888/build-powerpc-eabi/local/powerpc-eabi/include/dirent.h:6:0,
                 from adaint.h:39,
                 from adadecode.c:45:
/home/e0082888/build-powerpc-eabi/local/powerpc-eabi/include/sys/dirent.h:10:2:
error: #error "<dirent.h> not supported"
In file included from adadecode.c:45:0:
adaint.h:137:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
adaint.h:138:57: error: expected ‘)’ before ‘*’ token
adaint.h:139:57: error: expected ‘)’ before ‘*’ token
make[4]: *** [adadecode.o] Error 1


[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