This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FW: Building GCC crosscompiler for powerpc platform !!


Manish Shah a Ãcrit :

JF

This was definitely helpful.. But the [--with-sysroot=dir] config option
makes the build utility look for a usr/include directory within "newlib"
sources. I am surprised at not finding the "newlib/usr/include"
Never-the-less, the code compiles when I specify the dir variable as
NULL. Apparently it takes the "/usr/include" for the header files. I am
not sure if this is the right thing to do unless I test it out.


As far as I remember newlib is a small glibc so using /usr/include might work but it is wrong !

--with-sysroot MUST point to the targeted system root dir !
you can try to replace --with-sysroot with the deprecated option --with-header to point to the newlib include.

JF
PS : Please write to the list so that others can help too
PS2 : please forget my poor English ;-)


Presently however, I am stuck with the following problem.

/cygdrive/c/DOCUME~1/manish/LOCALS~1/Temp/ccmMHdgv.s:4436: Error:
Unrecognized opcode: `lvx'
/cygdrive/c/DOCUME~1/manish/LOCALS~1/Temp/ccmMHdgv.s:4438: Error:
Unrecognized opcode: `lvx'
/cygdrive/c/DOCUME~1/manish/LOCALS~1/Temp/ccmMHdgv.s:4511: Error:
Unrecognized opcode: `stvx'
/cygdrive/c/DOCUME~1/manish/LOCALS~1/Temp/ccmMHdgv.s:4514: Error:
Unrecognized opcode: `stvx'

I am already using the latest version of binutils and I need altivec
support in my code.

Regards,
Manish.


-----Original Message----- From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On Behalf Of jf Sent: Tuesday, December 21, 2004 3:03 PM To: gcc@gnu.org Subject: Re: FW: Building GCC crosscompiler for powerpc platform !!

[...]



/usr/local/src/gnu/BUILD/gcc/gcc/xgcc


-B/usr/local/src/gnu/BUILD/gcc/gcc/
-B/usr/local/powerpc/powerpc-eabi/bin/
-B/usr/local/powerpc/powerpc-eabi/lib/ -isystem
/usr/local/powerpc/powerpc-eabi/include -isystem
/usr/local/powerpc/powerpc-eabi/sys-include -c -DHAVE_CONFIG_H -O2 -g
-O2 -I. -I/usr/local/src/gnu/gcc-3.4.0/libiberty/../include -W -Wall
-Wtraditional -pedantic -fPIC
/usr/local/src/gnu/gcc-3.4.0/libiberty/regex.c -o pic/regex.o; \


else true; fi
/usr/local/src/gnu/gcc-3.4.0/libiberty/regex.c:132: warning:


conflicting types for built-in function 'malloc'


/usr/local/src/gnu/gcc-3.4.0/libiberty/regex.c:160:25: strings.h: No such file or directory


In file included from


/usr/local/src/gnu/gcc-3.4.0/libiberty/../include/xregex.h


:26,
from


/usr/local/src/gnu/gcc-3.4.0/libiberty/regex.c:195:


y `/usr/local/src/gnu/BUILD/gcc/powerpc-eabi/libiberty'




[...]
Hello,
It seems to me that the first error you get is

/usr/local/src/gnu/gcc-3.4.0/libiberty/regex.c:160:25: strings.h: No
such file or directory
Isn't this file provided by newlib ?
Did you try to add the |--with-sysroot=dir configure option
(http://gcc.gnu.org/install/configure.html) ? I'm not sure but it may
help.
Please let me know if it is usefull,

regards,

JF
|







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]