public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* missing include file during cross compilation
@ 2004-07-12 16:38 phlinux
  2004-07-12 16:58 ` Eljay Love-Jensen
  2004-07-18  9:42 ` Cross compiler tutorial (or one-tree.sh help) Ph Legay
  0 siblings, 2 replies; 3+ messages in thread
From: phlinux @ 2004-07-12 16:38 UTC (permalink / raw)
  To: gcc-help

Hello,

I am trying to compile on Mac OS X a cross compiler gcc for i586. 

1) get binutils-2.14 + ./configure i586-pc-gnu + make + make intall . Every
thing seems to be OK /usr/local/i586-gnu-pc/ is created with bin and lib folders.

2) get gcc-core-3.4.0-20040501-1-src.tar. 
then configure : 
./configure --target=i586-pc-gnu 
--with-as=/usr/local/i586-pc-gnu/bin/as 
--with-ld=/usr/local/i586-pc-gnu/bin/ld 
--with-gnu-as --with-gnu-ld 
--enable-languages=c 
--disable-shared --disable-multilib --disable-nls --enable-threads=single

Then I try to make, but Ifall in 2 bugs : 
- gcc/gcc.c line 4907 the structure st-tmp is declared twice ! 
- I corrected this bug, an go futher in order have a problem with minssing
include files. 

3) I try again with : gcc-3.3.3-200402017-1
Then I configure it with 
./configure --target=i586-pc-gnu 
--with-as=/usr/local/i586-pc-gnu/bin/as 
--with-ld=/usr/local/i586-pc-gnu/bin/ld 
--with-gnu-as --with-gnu-ld 
--enable-languages=c 
--disable-shared --disable-multilib --disable-nls --enable-threads=single

Then I make all and I get the folowing problem : 

/Volumes/Free_1/TestOS/gcc-3.3.3-200402017-1/gcc/xgcc
-B/Volumes/Free_1/TestOS/gcc-3.3.3-200402017-1/gcc/
-B/usr/local/i586-pc-gnu/bin/ -B/usr/local/i586-pc-gnu/lib/ -isystem
/usr/local/i586-pc-gnu/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include 
-fPIC -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./.
-I./config -I./../include  -DL_muldi3 -c ./libgcc2.c -o libgcc/./_muldi3.o
In file included from tconfig.h:23,
                 from libgcc2.c:36:
config/i386/linux.h:239:20: signal.h: No such file or directory
config/i386/linux.h:240:26: sys/ucontext.h: No such file or directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[1]: *** [libgcc.a] Error 2
make: *** [all-gcc] Error 2

So, this is the same kind of bug as in the step 2. The gcc/libgcc2.c says that
it needs some include build for the target (not for the macOS X). 
My questions are : 
1) Where are the missing include file ? Does it means that I have a bad path ? 
2) Are the missing include files builds or coming from some package ? 
3) How are the missing include files built ? Problem during the binutils
compilation ? Specific step of the binutils ? Problem during ggc compile ?
Specific step of the gcc ? 

In fact the compile command containts

-isystem /usr/local/i586-pc-gnu/include 

For me, this mean, that I need a include directory in the
/usr/local/i586-pc-gnu/. That is consistant with the need of include files for
the i586 processor (that is my taregt processor). But I have no ! How to build
them ? How to get them ? 


PS : my gcc-3.3.3-200402017-1/include : 
COPYING         dyn-string.h    getopt.h        objalloc.h      sort.h         
xregex.h
ChangeLog       fibheap.h       hashtab.h       obstack.h       splay-tree.h   
xregex2.h
ansidecl.h      floatformat.h   libiberty.h     partition.h     symcat.h
demangle.h      fnmatch.h       md5.h           safe-ctype.h    ternary.h

Thanks, for any pointers, tutorials. 

PHL

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: missing include file during cross compilation
  2004-07-12 16:38 missing include file during cross compilation phlinux
@ 2004-07-12 16:58 ` Eljay Love-Jensen
  2004-07-18  9:42 ` Cross compiler tutorial (or one-tree.sh help) Ph Legay
  1 sibling, 0 replies; 3+ messages in thread
From: Eljay Love-Jensen @ 2004-07-12 16:58 UTC (permalink / raw)
  To: phlinux, gcc-help

Hi PHL,

 >Where are the missing include file ? Does it means that I have a bad path ?

Where did you get your i586 include files from?

Where did you put them?

--Eljay

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Cross compiler  tutorial (or one-tree.sh help)
  2004-07-12 16:38 missing include file during cross compilation phlinux
  2004-07-12 16:58 ` Eljay Love-Jensen
@ 2004-07-18  9:42 ` Ph Legay
  1 sibling, 0 replies; 3+ messages in thread
From: Ph Legay @ 2004-07-18  9:42 UTC (permalink / raw)
  To: phlinux; +Cc: gcc-help

Hello,

I am trying to build on a Mac OS X, a gcc 3.3 for i586.

Is there any tutorial to how to do that ?

In fact, I found information into the gcc33.tar.gz that points to
one-tree.sh script. But this script does not work, because :
- binutils 2.14 is not supported,
- gcc3.3 is not supported (but only 2.9 is OK).

Can I use it for gcc 3.3 ?

If I use it, I obtain the binutils, but it seems that I have no
gcc compilation and newlib compilation. It seems like the make file was
only the binutils make file !

Thanks,
PHL


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-18  9:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-12 16:38 missing include file during cross compilation phlinux
2004-07-12 16:58 ` Eljay Love-Jensen
2004-07-18  9:42 ` Cross compiler tutorial (or one-tree.sh help) Ph Legay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).