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]

State of djgpp support?


Hello,

I've just tried building cross building djgpp on gcc
3.3 branch and mainline. In neither case, does this
work out of the box, and both fail building libstdc++.
Is libstdc++ currently excpected to build for this
platform at all?

Dara

P.S. Here are the actually errors:

With mainline, build fails in libstdc++:
checking for debug build flags...
configure: error: No support for this host/target
combination.
make: *** [configure-target-libstdc++-v3] Error 1


With gcc 3.3 branch, build fails on getpwd.c for
target -libiberty.

/home/dara/branch/objdir/gcc/xgcc
-B/home/dara/branch/objdir/gcc/
-B/usr/local/i386-pc-msdosdjgpp//i386-pc-msdosdjgpp/bin/
-B/usr/local/i386-pc-msdosdjgpp//i386-pc-msdosdjgpp/lib/
-isystem
/usr/local/i386-pc-msdosdjgpp//i386-pc-msdosdjgpp/include
-c -DHAVE_CONFIG_H -O2 -g -O2 -I.
-I../../../gcc/libiberty/../include  -W -Wall
-Wtraditional -pedantic
../../../gcc/libiberty/make-relative-prefix.c -o
make-relative-prefix.o
../../../gcc/libiberty/getpwd.c: In function `getpwd':
../../../gcc/libiberty/getpwd.c:90: error: `PATH_MAX'
undeclared (first use in this function)

The problem is that MAXPATHLEN is defined in
sys/param.h to be PATH_MAX, but PATH_MAX is defined in
limits.h, which is not included.

Anyhow, once this is worked around build dies in
libstdc++:

/home/dara/branch/objdir/gcc/xgcc -shared-libgcc
-B/home/dara/branch/objdir/gcc/ -nostdinc++
-L/home/dara/branch/objdir/i386-pc-msdosdjgpp/libstdc++-v3/src
-L/home/dara/branch/objdir/i386-pc-msdosdjgpp/libstdc++-v3/src/.libs
-B/usr/local/i386-pc-msdosdjgpp//i386-pc-msdosdjgpp/bin/
-B/usr/local/i386-pc-msdosdjgpp//i386-pc-msdosdjgpp/lib/
-isystem
/usr/local/i386-pc-msdosdjgpp//i386-pc-msdosdjgpp/include
-nostdinc++
-I/home/dara/branch/objdir/i386-pc-msdosdjgpp/libstdc++-v3/include/i386-pc-msdosdjgpp
-I/home/dara/branch/objdir/i386-pc-msdosdjgpp/libstdc++-v3/include
-I../../../../gcc/libstdc++-v3/libsupc++
-I../../../../gcc/libstdc++-v3/libmath -g -O2
-fno-implicit-templates -Wall -Wno-format -W
-Wwrite-strings -fdiagnostics-show-location=once -c
../../../../gcc/libstdc++-v3/src/bitset.cc -o bitset.o
In file included from
/home/dara/branch/objdir/i386-pc-msdosdjgpp/libstdc++-v3/include/bits/locale_facets.h:166,
                 from
/home/dara/branch/objdir/i386-pc-msdosdjgpp/libstdc++-v3/include/bits/basic_ios.h:44,
                 from
/home/dara/branch/objdir/i386-pc-msdosdjgpp/libstdc++-v3/include/ios:51,
                 from
/home/dara/branch/objdir/i386-pc-msdosdjgpp/libstdc++-v3/include/ostream:45,
                 from
/home/dara/branch/objdir/i386-pc-msdosdjgpp/libstdc++-v3/include/bitset:58,
                 from
../../../../gcc/libstdc++-v3/src/bitset.cc:43:
/home/dara/branch/objdir/i386-pc-msdosdjgpp/libstdc++-v3/include/i386-pc-msdosdjgpp/bits/ctype_base.h:46:
error: `
   _U' was not declared in this scope


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


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