We are building cross compiler for sparc-sun-solaris2.9 target.

1) host "uname -a" is "Linux localhost.localdomain 2.6.11-1.14_FC3 #1 Thu Apr 7
19:25:50 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux"

2) binutils is configured with "../binutils-2.16.1/configure --target=$TARGET
--prefix=$PREFIX --disable-nls"

where TARGET is "sparc-sun-solaris2.9",
PREFIX="/opt/crossgcc-4.1.1/sparc-sun-solaris2.9"

3) gcc is configured with "/home/anton/tmp/gcc/gcc-4.1.1/configure
--target=$TARGET --prefix=$PREFIX --without-headers --with-gnu-as --with-gnu-ld
--disable-libgcj --enable-languages=c,c++"

We are getting error during compilation of first stage compiler. Here is the
end  of ouput of compilation process:

LIBGCOV='_gcov _gcov_merge_add _gcov_merge_single _gcov_merge_delta _gcov_fork
_gcov_execl _gcov_execlp _gcov_execle _gcov_execv _gcov_execvp _gcov_execve
_gcov_interval_profiler _gcov_pow2_profiler _gcov_one_value_profiler' \
LIB2ADD='' \
LIB2ADD_ST='' \
LIB2ADDEH='/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-dw2.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-dw2-fde.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-sjlj.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/gthr-gnat.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-c.c' \
LIB2ADDEHSTATIC='/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-dw2.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-dw2-fde.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-sjlj.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/gthr-gnat.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-c.c' \
LIB2ADDEHSHARED='/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-dw2.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-dw2-fde.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-sjlj.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/gthr-gnat.c
/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-c.c' \
LIB2ADDEHDEP='/home/anton/tmp/gcc/gcc-4.1.1/gcc/unwind-generic.h unwind-pe.h
unwind.inc unwind-dw2-fde.h unwind-dw2.h' \
LIBUNWIND='' \
LIBUNWINDDEP='' \
SHLIBUNWIND_LINK='' \
SHLIBUNWIND_INSTALL='' \
FPBIT='' \
FPBIT_FUNCS='_pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf _fpcmp_parts_sf
_compare_sf _eq_sf _ne_sf _gt_sf _ge_sf _lt_sf _le_sf _unord_sf _si_to_sf
_sf_to_si _negate_sf _make_sf _sf_to_df _sf_to_tf _thenan_sf _sf_to_usi
_usi_to_sf' \
LIB2_DIVMOD_FUNCS='_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4'
\
DPBIT='' \
DPBIT_FUNCS='_pack_df _unpack_df _addsub_df _mul_df _div_df _fpcmp_parts_df
_compare_df _eq_df _ne_df _gt_df _ge_df _lt_df _le_df _unord_df _si_to_df
_df_to_si _negate_df _make_df _df_to_sf _df_to_tf _thenan_df _df_to_usi
_usi_to_df' \
TPBIT='' \
TPBIT_FUNCS='_pack_tf _unpack_tf _addsub_tf _mul_tf _div_tf _fpcmp_parts_tf
_compare_tf _eq_tf _ne_tf _gt_tf _ge_tf _lt_tf _le_tf _unord_tf _si_to_tf
_tf_to_si _negate_tf _make_tf _tf_to_df _tf_to_sf _thenan_tf _tf_to_usi
_usi_to_tf' \
MULTILIBS=`/home/anton/tmp/gcc/objdir/./gcc/xgcc
-B/home/anton/tmp/gcc/objdir/./gcc/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/bin/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/lib/ -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/include -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/sys-include
--print-multi-lib` \
EXTRA_MULTILIB_PARTS='crtbegin.o crtend.o gmon.o crt1.o crti.o crtn.o gcrt1.o
crtfastmath.o' \
SHLIB_LINK='/home/anton/tmp/gcc/objdir/./gcc/xgcc
-B/home/anton/tmp/gcc/objdir/./gcc/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/bin/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/lib/ -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/include -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/sys-include -O2 
-O2 -g -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -shared -nodefaultlibs -Wl,[EMAIL PROTECTED]@.so.1
-Wl,[EMAIL PROTECTED]@ -o
@multilib_dir@/@[EMAIL PROTECTED] @multilib_flags@ @shlib_objs@ -lc &&
rm -f @multilib_dir@/@[EMAIL PROTECTED] && if [ -f
@multilib_dir@/@[EMAIL PROTECTED] ]; then mv -f
@multilib_dir@/@[EMAIL PROTECTED]
@multilib_dir@/@[EMAIL PROTECTED]; else true; fi && mv
@multilib_dir@/@[EMAIL PROTECTED] @multilib_dir@/@[EMAIL PROTECTED]
&& ln -s @[EMAIL PROTECTED] @multilib_dir@/@[EMAIL PROTECTED]' \
SHLIB_INSTALL='$(mkinstalldirs) $(DESTDIR)$(slibdir)@shlib_slibdir_qual@;
/usr/bin/install -c -m 644 @multilib_dir@/@[EMAIL PROTECTED]
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@[EMAIL PROTECTED]; rm -f
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@[EMAIL PROTECTED]; ln -s
@[EMAIL PROTECTED]
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@[EMAIL PROTECTED]' \
SHLIB_EXT='.so' \
SHLIB_MULTILIB='' \
SHLIB_MKMAP='/home/anton/tmp/gcc/gcc-4.1.1/gcc/mkmap-symver.awk' \
SHLIB_MKMAP_OPTS='' \
SHLIB_MAPFILES='/home/anton/tmp/gcc/gcc-4.1.1/gcc/libgcc-std.ver' \
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='. sparcv9' \
ASM_HIDDEN_OP='' \
GCC_FOR_TARGET='/home/anton/tmp/gcc/objdir/./gcc/xgcc
-B/home/anton/tmp/gcc/objdir/./gcc/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/bin/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/lib/ -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/include -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/sys-include'
\mkinstalldirs='/bin/sh /home/anton/tmp/gcc/gcc-4.1.1/gcc/../mkinstalldirs' \
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
/bin/sh /home/anton/tmp/gcc/gcc-4.1.1/gcc/mkconfig.sh tconfig.h
/home/anton/tmp/gcc/objdir/./gcc/xgcc -B/home/anton/tmp/gcc/objdir/./gcc/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/bin/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/lib/ -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/include -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/sys-include  -c
-o crt1.o -x assembler-with-cpp
/home/anton/tmp/gcc/gcc-4.1.1/gcc/config/sparc/sol2-c1.asm
/home/anton/tmp/gcc/objdir/./gcc/xgcc -B/home/anton/tmp/gcc/objdir/./gcc/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/bin/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/lib/ -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/include -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/sys-include  -c
-o crti.o -x assembler-with-cpp
/home/anton/tmp/gcc/gcc-4.1.1/gcc/config/sparc/sol2-ci.asm
/home/anton/tmp/gcc/objdir/./gcc/xgcc -B/home/anton/tmp/gcc/objdir/./gcc/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/bin/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/lib/ -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/include -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/sys-include  -c
-o crtn.o -x assembler-with-cpp
/home/anton/tmp/gcc/gcc-4.1.1/gcc/config/sparc/sol2-cn.asm
/home/anton/tmp/gcc/objdir/./gcc/xgcc -B/home/anton/tmp/gcc/objdir/./gcc/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/bin/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/lib/ -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/include -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/sys-include  -c
-DGCRT1 -o gcrt1.o -x assembler-with-cpp
/home/anton/tmp/gcc/gcc-4.1.1/gcc/config/sparc/sol2-c1.asm
/home/anton/tmp/gcc/objdir/./gcc/xgcc -B/home/anton/tmp/gcc/objdir/./gcc/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/bin/
-B/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/lib/ -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/include -isystem
/opt/crossgcc-4.1.1/sparc-sun-solaris2.9/sparc-sun-solaris2.9/sys-include -O2
-g -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I.
-I/home/anton/tmp/gcc/gcc-4.1.1/gcc -I/home/anton/tmp/gcc/gcc-4.1.1/gcc/.
-I/home/anton/tmp/gcc/gcc-4.1.1/gcc/../include
-I/home/anton/tmp/gcc/gcc-4.1.1/gcc/../libcpp/include   \
        -c /home/anton/tmp/gcc/gcc-4.1.1/gcc/config/sparc/gmon-sol2.c -o gmon.o
/home/anton/tmp/gcc/gcc-4.1.1/gcc/config/sparc/gmon-sol2.c: In function
‘_mcleanup’:
/home/anton/tmp/gcc/gcc-4.1.1/gcc/config/sparc/gmon-sol2.c:182: error:
‘PATH_MAX’ undeclared (first use in this function)
/home/anton/tmp/gcc/gcc-4.1.1/gcc/config/sparc/gmon-sol2.c:182: error: (Each
undeclared identifier is reported only once
/home/anton/tmp/gcc/gcc-4.1.1/gcc/config/sparc/gmon-sol2.c:182: error: for each
function it appears in.)
/home/anton/tmp/gcc/gcc-4.1.1/gcc/config/sparc/gmon-sol2.c:182: warning: unused
variable ‘buf’
make[1]: *** [gmon.o] Error 1
make[1]: Leaving directory `/home/anton/tmp/gcc/objdir/gcc'
make: *** [all-gcc] Error 2


-- 
           Summary: error: ‘PATH_MAX’ undeclared (first use in this
                    function) when building cross compiler
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: info at yourkit dot com
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: sparc-sun-solaris2.9


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28097

Reply via email to