public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* xgcc unable to build libgcc under mingw
@ 2006-06-21  9:06 Alexander Shabanov
  2006-06-21 20:41 ` Tim Prince
  2006-06-21 20:44 ` Niklaus
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Shabanov @ 2006-06-21  9:06 UTC (permalink / raw)
  To: gcc-help

Hello!

As I said in my previous question - I tried to compile gcc under
mingw. If we want to compile gcc under mingw, we must specify path to
`ld', like '../configure --with-ld=/mingw/bin/ld'. Compilers built
fine - we obtain $(MINGW_OBJDIR)/gcc/cc1plus, cc1, xgcc, etc. After
building makefile tried to build libgcc using xgcc, but unable to do
it:

--------------------- BEGIN
make[3]: Entering directory `/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/gcc'

/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/./gcc/xgcc
-B/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/./gcc/
-B/usr/local/i686-pc-mingw32/bin/ -B/usr/local/i686-pc-mingw32/lib/
-isystem /usr/local/i686-pc-mingw32/include -isystem
/usr/local/i686-pc-mingw32/sys-include -O2
-I../../gcc/../winsup/w32api/include -O2 -g -O2   -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include   -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc
-I../../gcc/. -I../../gcc/../include -I./../intl
-I../../gcc/../libcpp/include  -DL_negdi2 -c ../../gcc/libgcc2.c -o
libgcc/./_negdi2.o
In file included from ../../gcc/libgcc2.c:33:
../../gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
../../gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory
../../gcc/tsystem.h:96:19: error: errno.h: No such file or directory
../../gcc/tsystem.h:103:20: error: string.h: No such file or directory
../../gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory
../../gcc/tsystem.h:105:20: error: unistd.h: No such file or directory
In file included from ./include/limits.h:122,
--------------------- END
As I understood, it happens, because makefile script unable to find
correct path to sysincludes headers.

Please, explain, how can I fix it?

-- 
Best regards,
    Alexander Shabanov

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

* Re: xgcc unable to build libgcc under mingw
  2006-06-21  9:06 xgcc unable to build libgcc under mingw Alexander Shabanov
@ 2006-06-21 20:41 ` Tim Prince
  2006-06-21 20:44 ` Niklaus
  1 sibling, 0 replies; 4+ messages in thread
From: Tim Prince @ 2006-06-21 20:41 UTC (permalink / raw)
  To: Alexander Shabanov; +Cc: gcc-help

Alexander Shabanov wrote:
> Hello!
> 
> As I said in my previous question - I tried to compile gcc under
> mingw. If we want to compile gcc under mingw, we must specify path to
> `ld', like '../configure --with-ld=/mingw/bin/ld'. Compilers built
> fine - we obtain $(MINGW_OBJDIR)/gcc/cc1plus, cc1, xgcc, etc. After
> building makefile tried to build libgcc using xgcc, but unable to do
> it:
> 
> --------------------- BEGIN
> make[3]: Entering directory 
> `/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/gcc'
> 
> /d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/./gcc/xgcc
> -B/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/./gcc/
> -B/usr/local/i686-pc-mingw32/bin/ -B/usr/local/i686-pc-mingw32/lib/
> -isystem /usr/local/i686-pc-mingw32/include -isystem
> /usr/local/i686-pc-mingw32/sys-include -O2
> -I../../gcc/../winsup/w32api/include -O2 -g -O2   -DIN_GCC    -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition  -isystem ./include   -g -DHAVE_GTHR_DEFAULT
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc
> -I../../gcc/. -I../../gcc/../include -I./../intl
> -I../../gcc/../libcpp/include  -DL_negdi2 -c ../../gcc/libgcc2.c -o
> libgcc/./_negdi2.o
> In file included from ../../gcc/libgcc2.c:33:
> ../../gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
> ../../gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory
> ../../gcc/tsystem.h:96:19: error: errno.h: No such file or directory
> ../../gcc/tsystem.h:103:20: error: string.h: No such file or directory
> ../../gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory
> ../../gcc/tsystem.h:105:20: error: unistd.h: No such file or directory
> In file included from ./include/limits.h:122,
> --------------------- END
> As I understood, it happens, because makefile script unable to find
> correct path to sysincludes headers.
> 
> Please, explain, how can I fix it?
> 
Sometimes, it has been necessary to copy all the include files to the
appropriate position in the --prefix directory you specified during
configure, prior to building gcc.  I can't see whether you did that.

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

* Re: xgcc unable to build libgcc under mingw
  2006-06-21  9:06 xgcc unable to build libgcc under mingw Alexander Shabanov
  2006-06-21 20:41 ` Tim Prince
@ 2006-06-21 20:44 ` Niklaus
  2006-06-22 10:31   ` Alexander Shabanov
  1 sibling, 1 reply; 4+ messages in thread
From: Niklaus @ 2006-06-21 20:44 UTC (permalink / raw)
  To: Alexander Shabanov; +Cc: gcc-help

well you have to copy the header files and library files into $prefix/$target
where target is the target given to your configure and prefix is the
prefix to configure.
usually it is like prefix is like =/home/pro and
target=i586-unknown-mingw32 . Do something alike for your target. the
header files and library are of the target. Maybe you want to look my
post at cross gcc . I gave a build procedure for build cross gcc
solaris and mingw32 from linux.

On 6/21/06, Alexander Shabanov <avshabanov@gmail.com> wrote:
> Hello!
>
> As I said in my previous question - I tried to compile gcc under
> mingw. If we want to compile gcc under mingw, we must specify path to
> `ld', like '../configure --with-ld=/mingw/bin/ld'. Compilers built
> fine - we obtain $(MINGW_OBJDIR)/gcc/cc1plus, cc1, xgcc, etc. After
> building makefile tried to build libgcc using xgcc, but unable to do
> it:
>
> --------------------- BEGIN
> make[3]: Entering directory `/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/gcc'
>
> /d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/./gcc/xgcc
> -B/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/./gcc/
> -B/usr/local/i686-pc-mingw32/bin/ -B/usr/local/i686-pc-mingw32/lib/
> -isystem /usr/local/i686-pc-mingw32/include -isystem
> /usr/local/i686-pc-mingw32/sys-include -O2
> -I../../gcc/../winsup/w32api/include -O2 -g -O2   -DIN_GCC    -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition  -isystem ./include   -g -DHAVE_GTHR_DEFAULT
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc
> -I../../gcc/. -I../../gcc/../include -I./../intl
> -I../../gcc/../libcpp/include  -DL_negdi2 -c ../../gcc/libgcc2.c -o
> libgcc/./_negdi2.o
> In file included from ../../gcc/libgcc2.c:33:
> ../../gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
> ../../gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory
> ../../gcc/tsystem.h:96:19: error: errno.h: No such file or directory
> ../../gcc/tsystem.h:103:20: error: string.h: No such file or directory
> ../../gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory
> ../../gcc/tsystem.h:105:20: error: unistd.h: No such file or directory
> In file included from ./include/limits.h:122,
> --------------------- END
> As I understood, it happens, because makefile script unable to find
> correct path to sysincludes headers.
>
> Please, explain, how can I fix it?
>
> --
> Best regards,
>     Alexander Shabanov
>

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

* Re: xgcc unable to build libgcc under mingw
  2006-06-21 20:44 ` Niklaus
@ 2006-06-22 10:31   ` Alexander Shabanov
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Shabanov @ 2006-06-22 10:31 UTC (permalink / raw)
  To: gcc-help

Thank you very much, your advice works.

As a conclusion - in case somebody again will want compile gcc under MinGW:
1) create in your msys `local' directory folder `i686-pc-mingw32'
2) copy all(I copied all :)) content of msys' root directory to this
folder (of course, except `local' directory)
3) configure & make.

After `make install' you will have several gcc on your computer.
Compiled gcc compiler driver will have name `i686-pc-mingw32-gcc.exe'.

2006/6/21, Niklaus <niklaus@gmail.com>:
> well you have to copy the header files and library files into $prefix/$target
> where target is the target given to your configure and prefix is the
> prefix to configure.
> usually it is like prefix is like =/home/pro and
> target=i586-unknown-mingw32 . Do something alike for your target. the
> header files and library are of the target. Maybe you want to look my
> post at cross gcc . I gave a build procedure for build cross gcc
> solaris and mingw32 from linux.
>
> On 6/21/06, Alexander Shabanov <avshabanov@gmail.com> wrote:
> > Hello!
> >
> > As I said in my previous question - I tried to compile gcc under
> > mingw. If we want to compile gcc under mingw, we must specify path to
> > `ld', like '../configure --with-ld=/mingw/bin/ld'. Compilers built
> > fine - we obtain $(MINGW_OBJDIR)/gcc/cc1plus, cc1, xgcc, etc. After
> > building makefile tried to build libgcc using xgcc, but unable to do
> > it:
> >
> > --------------------- BEGIN
> > make[3]: Entering directory `/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/gcc'
> >
> > /d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/./gcc/xgcc
> > -B/d/GnuProjects/gcc/gcc-4.1.1/obj_mgw_nostdcpp/./gcc/
> > -B/usr/local/i686-pc-mingw32/bin/ -B/usr/local/i686-pc-mingw32/lib/
> > -isystem /usr/local/i686-pc-mingw32/include -isystem
> > /usr/local/i686-pc-mingw32/sys-include -O2
> > -I../../gcc/../winsup/w32api/include -O2 -g -O2   -DIN_GCC    -W -Wall
> > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> > -Wold-style-definition  -isystem ./include   -g -DHAVE_GTHR_DEFAULT
> > -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc
> > -I../../gcc/. -I../../gcc/../include -I./../intl
> > -I../../gcc/../libcpp/include  -DL_negdi2 -c ../../gcc/libgcc2.c -o
> > libgcc/./_negdi2.o
> > In file included from ../../gcc/libgcc2.c:33:
> > ../../gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
> > ../../gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory
> > ../../gcc/tsystem.h:96:19: error: errno.h: No such file or directory
> > ../../gcc/tsystem.h:103:20: error: string.h: No such file or directory
> > ../../gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory
> > ../../gcc/tsystem.h:105:20: error: unistd.h: No such file or directory
> > In file included from ./include/limits.h:122,
> > --------------------- END
> > As I understood, it happens, because makefile script unable to find
> > correct path to sysincludes headers.
> >
> > Please, explain, how can I fix it?
> >
> > --
> > Best regards,
> >     Alexander Shabanov
> >
>


-- 
Best regards,
    Alexander Shabanov

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

end of thread, other threads:[~2006-06-22 10:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-21  9:06 xgcc unable to build libgcc under mingw Alexander Shabanov
2006-06-21 20:41 ` Tim Prince
2006-06-21 20:44 ` Niklaus
2006-06-22 10:31   ` Alexander Shabanov

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).