LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 10-01-2006, 03:42 AM   #1
elyk1212
Member
 
Registered: Jan 2005
Location: Chandler, AZ USA
Distribution: Mandrake/Mandriva 10.2
Posts: 186

Rep: Reputation: 30
Problem Compiling GCC as cross comp (mkdir issue)


Hi,

I am building a cross compiler for making gamecube binaries, and I am unable to compile gcc. I am also unable to compile gcc for the default architecture of my development desktop (X86). Here are the logs



Config.log
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:581: checking host system type
configure:602: checking target system type
configure:620: checking build system type
configure:675: checking for a BSD compatible install
configure:2859: checking for i686-pc-linux-gnu-ar
configure:2892: checking for ar
configure:2931: checking for i686-pc-linux-gnu-as
configure:2964: checking for as
configure:3003: checking for i686-pc-linux-gnu-dlltool
configure:3036: checking for dlltool
configure:3075: checking for i686-pc-linux-gnu-ld
configure:3108: checking for ld
configure:3147: checking for i686-pc-linux-gnu-nm
configure:3180: checking for nm
configure:3219: checking for i686-pc-linux-gnu-ranlib
configure:3252: checking for ranlib
configure:3291: checking for i686-pc-linux-gnu-windres
configure:3324: checking for windres
configure:3363: checking for i686-pc-linux-gnu-objcopy
configure:3396: checking for objcopy
configure:3435: checking for i686-pc-linux-gnu-objdump
configure:3468: checking for objdump
configure:3517: checking for powerpc-gamecube-linux-gnu-ar
configure:3589: checking for powerpc-gamecube-linux-gnu-as
configure:3661: checking for powerpc-gamecube-linux-gnu-dlltool
configure:3733: checking for powerpc-gamecube-linux-gnu-ld
configure:3805: checking for powerpc-gamecube-linux-gnu-nm
configure:3877: checking for powerpc-gamecube-linux-gnu-ranlib
configure:3949: checking for powerpc-gamecube-linux-gnu-windres
configure:4049: checking whether to enable maintainer-specific portions of Makefiles
 for powerpc-gamecube-linux-gnu-windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
creating ./config.status
creating Makefile
 
Old 10-01-2006, 03:43 AM   #2
elyk1212
Member
 
Registered: Jan 2005
Location: Chandler, AZ USA
Distribution: Mandrake/Mandriva 10.2
Posts: 186

Original Poster
Rep: Reputation: 30
make.log
Code:
Configuring in intl
loading cache ./config.cache
checking for GNU ld... (cached) ld
checking if the linker (ld) is GNU ld... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unsigned long long... (cached) yes
checking for shared library run path origin... (cached) done
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether NLS is requested... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking host system type... i686-pc-linux-gnu
checking for ranlib... (cached) ranlib
checking for strerror in -lcposix... (cached) no
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking whether we are using the GNU C Library 2.1 or newer... (cached) yes
checking whether integer division by zero raises SIGFPE... (cached) yes
checking for inttypes.h... (cached) yes
checking whether the inttypes.h PRIxNN macros are broken... (cached) no
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking for argz.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... (cached) yes
checking for fgets_unlocked... (cached) yes
checking for getc_unlocked... (cached) yes
checking for getcwd... (cached) yes
checking for getegid... (cached) yes
checking for geteuid... (cached) yes
checking for getgid... (cached) yes
checking for getuid... (cached) yes
checking for mempcpy... (cached) yes
checking for munmap... (cached) yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... (cached) yes
checking for stpcpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for strtoul... (cached) yes
checking for tsearch... (cached) yes
checking for __argz_count... (cached) yes
checking for __argz_stringify... (cached) yes
checking for __argz_next... (cached) yes
checking for __fsetlocking... (cached) yes
checking for iconv... (cached) yes
checking for iconv declaration... (cached) 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... (cached) yes
checking for LC_MESSAGES... (cached) yes
checking for bison... (cached) bison
checking version of bison... 2.0, ok
checking whether NLS is requested... no
checking whether to use NLS... no
creating ./config.status
creating Makefile
creating config.intl
creating config.h
config.h is unchanged
Configuring in gcc
configure: loading cache ./config.cache
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking target system type... (cached) powerpc-gamecube-linux-gnu
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking whether to place generated files in the source directory... no
checking whether a default linker was specified... no
checking whether a default assembler was specified... no
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking whether gcc and cc understand -c and -o together... (cached) yes
checking whether gcc accepts -Wno-long-long... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for inline... (cached) inline
checking for long long int... (cached) yes
checking for __int64... (cached) no
checking for built-in _Bool... (cached) yes
checking size of void *... (cached) 4
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking for i686-pc-linux-gnu-gnatbind... no
checking for gnatbind... (cached) no
checking whether compiler driver understands Ada... (cached) no
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for valgrind.h... (cached) no
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for cmp's capabilities... (cached) gnucompare
checking for mktemp... (cached) yes
checking for makeinfo... (cached) makeinfo
checking for modern makeinfo... (cached) yes
checking for recent Pod::Man... yes
checking for flex... (cached) flex
checking for bison... (cached) bison
checking for GNU C library... (cached) yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for working stdbool.h... (cached) yes
checking whether string.h and strings.h may both be included... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for limits.h... (cached) yes
checking for stddef.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for time.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/times.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for direct.h... (cached) yes
checking for malloc.h... (cached) yes
checking for langinfo.h... (cached) yes
checking for ldfcn.h... (cached) no
checking for locale.h... (cached) yes
checking for wchar.h... (cached) yes
checking for thread.h... (cached) no
checking for pthread.h... (cached) yes
checking for CHAR_BIT... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for collect2 libraries... (cached) none required
checking for library containing exc_resume... (cached) no
checking for library containing ldexp... (cached) none required
checking for inttypes.h... (cached) yes
checking for times... (cached) yes
checking for clock... (cached) yes
checking for dup2... (cached) yes
checking for kill... (cached) yes
checking for getrlimit... (cached) yes
checking for setrlimit... (cached) yes
checking for atoll... (cached) yes
checking for atoq... (cached) no
checking for sysconf... (cached) yes
checking for strsignal... (cached) yes
checking for putc_unlocked... (cached) yes
checking for fputc_unlocked... (cached) yes
checking for fputs_unlocked... (cached) yes
 
Old 10-01-2006, 03:46 AM   #3
elyk1212
Member
 
Registered: Jan 2005
Location: Chandler, AZ USA
Distribution: Mandrake/Mandriva 10.2
Posts: 186

Original Poster
Rep: Reputation: 30
make.log continued...
Code:
checking for fwrite_unlocked... (cached) yes
checking for fprintf_unlocked... (cached) no
checking for getrusage... (cached) yes
checking for nl_langinfo... (cached) yes
checking for scandir... (cached) yes
checking for alphasort... (cached) yes
checking for gettimeofday... (cached) yes
checking for mbstowcs... (cached) yes
checking for wcswidth... (cached) yes
checking for mmap... (cached) yes
checking for mincore... (cached) yes
checking for setlocale... (cached) yes
checking whether mbstowcs works... (cached) yes
checking for ssize_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking type of array argument to getgroups... (cached) gid_t
checking whether the printf functions support %p... (cached) yes
checking whether read-only mmap of a plain file works... (cached) yes
checking whether mmap from /dev/zero works... (cached) yes
checking for MAP_ANON(YMOUS)... (cached) yes
checking whether mmap with MAP_ANON(YMOUS) works... (cached) yes
checking for pid_t... (cached) yes
checking for unistd.h... (cached) yes
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for iconv.h... (cached) yes
checking for iconv... (cached) yes
checking for iconv declaration... (cached) 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for LC_MESSAGES... (cached) yes
checking whether getenv is declared... (cached) yes
checking whether atol is declared... (cached) yes
checking whether sbrk is declared... (cached) yes
checking whether abort is declared... (cached) yes
checking whether atof is declared... (cached) yes
checking whether getcwd is declared... (cached) yes
checking whether getwd is declared... (cached) yes
checking whether strsignal is declared... (cached) yes
checking whether putc_unlocked is declared... (cached) yes
checking whether fputs_unlocked is declared... (cached) yes
checking whether fwrite_unlocked is declared... (cached) yes
checking whether fprintf_unlocked is declared... (cached) no
checking whether strstr is declared... (cached) yes
checking whether errno is declared... (cached) yes
checking whether snprintf is declared... (cached) yes
checking whether vasprintf is declared... (cached) yes
checking whether malloc is declared... (cached) yes
checking whether realloc is declared... (cached) yes
checking whether calloc is declared... (cached) yes
checking whether free is declared... (cached) yes
checking whether basename is declared... (cached) yes
checking whether getopt is declared... (cached) no
checking whether clock is declared... (cached) yes
checking whether getrlimit is declared... (cached) yes
checking whether setrlimit is declared... (cached) yes
checking whether getrusage is declared... (cached) yes
checking whether ldgetname is declared... (cached) no
checking whether times is declared... (cached) yes
checking for struct tms... (cached) yes
checking for clock_t... (cached) yes
checking for uchar... 
checking for .preinit_array/.init_array/.fini_array support... (cached) yes
checking if mkdir takes one argument... (cached) yes
Using `./config/rs6000/rs6000.c' for machine-specific logic.
Using `./config/rs6000/rs6000.md' as machine description file.
Using the following target machine macro files:
	./config/rs6000/rs6000.h
	./config/dbxelf.h
	./config/elfos.h
	./config/svr4.h
	./config/freebsd-spec.h
	./config/rs6000/sysv4.h
	./config/rs6000/linux.h
Using host-default.o for host machine hooks.
checking whether NLS is requested... no
checking what assembler to use... /home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/bin/as
checking what linker to use... /home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/bin/ld
checking what nm to use... powerpc-gamecube-linux-gnu-nm
checking what objdump to use... powerpc-gamecube-linux-gnu-objdump
checking assembler for .balign and .p2align... (cached) yes
checking assembler for .p2align with maximum skip... (cached) yes
checking assembler for working .subsection -1... (cached) yes
checking assembler for .weak... (cached) yes
checking assembler for .hidden... (cached) yes
checking linker for .hidden support... (cached) yes
checking assembler for .sleb128 and .uleb128... (cached) yes
checking assembler for eh_frame optimization... (cached) yes
checking assembler for section merging support... (cached) yes
checking assembler for thread-local storage support... (cached) yes
checking assembler for mfcr field support... (cached) no
checking assembler for dwarf2 debug_line support... (cached) yes
checking assembler for buggy dwarf2 .file directive... (cached) no
checking assembler for --gdwarf2 option... (cached) yes
checking assembler for --gstabs option... (cached) yes
checking linker read-only and read-write section mixing... read-write
checking linker PT_GNU_EH_FRAME support... yes
checking linker position independent executable support... yes
checking linker --as-needed support... (cached) yes
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating fixinc/Makefile
config.status: creating gccbug
config.status: creating mklibgcc
config.status: creating mkheaders
config.status: creating auto-host.h
config.status: auto-host.h is unchanged
config.status: executing default commands
Configuring in libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... (cached) makeinfo
checking for perl... (cached) perl
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... (cached) ar
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc and cc understand -c and -o together... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking whether byte ordering is bigendian... (cached) no
checking for a BSD-compatible install... (cached) /usr/bin/install -c
xhost-mkfrag is unchanged
checking for sys/file.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for malloc.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for alloca.h... (cached) yes
checking for sys/pstat.h... (cached) no
checking for sys/sysmp.h... (cached) no
checking for sys/sysinfo.h... (cached) yes
checking for machine/hal_sysinfo.h... (cached) no
checking for sys/table.h... (cached) no
checking for sys/sysctl.h... (cached) yes
checking for sys/systemcfg.h... (cached) no
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether errno must be declared... (cached) no
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for uintptr_t... (cached) yes
checking for pid_t... (cached) yes
checking for library containing strerror... (cached) none required
checking for asprintf... (cached) yes
checking for atexit... (cached) yes
checking for basename... (cached) yes
checking for bcmp... (cached) yes
checking for bcopy... (cached) yes
checking for bsearch... (cached) yes
checking for bzero... (cached) yes
checking for calloc... (cached) yes
checking for clock... (cached) yes
checking for ffs... (cached) yes
checking for getcwd... (cached) yes
checking for getpagesize... (cached) yes
checking for index... (cached) yes
checking for insque... (cached) yes
checking for memchr... (cached) yes
checking for memcmp... (cached) yes
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for mempcpy... (cached) yes
checking for memset... (cached) yes
checking for mkstemps... (cached) no
checking for putenv... (cached) yes
checking for random... (cached) yes
checking for rename... (cached) yes
checking for rindex... (cached) yes
checking for setenv... (cached) yes
checking for snprintf... (cached) yes
checking for sigsetmask... (cached) yes
checking for stpcpy... (cached) yes
checking for stpncpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strchr... (cached) yes
checking for strdup... (cached) yes
checking for strncasecmp... (cached) yes
checking for strrchr... (cached) yes
checking for strstr... (cached) yes
checking for strtod... (cached) yes
checking for strtol... (cached) yes
checking for strtoul... (cached) yes
checking for tmpnam... (cached) yes
checking for vasprintf... (cached) yes
checking for vfprintf... (cached) yes
checking for vprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for vsprintf... (cached) yes
checking for waitpid... (cached) yes
checking whether alloca needs Cray hooks... (cached) no
checking stack direction for C alloca... (cached) -1
checking for unistd.h... (cached) yes
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for _doprnt... (cached) no
checking for sys_errlist... (cached) yes
checking for sys_nerr... (cached) yes
checking for sys_siglist... (cached) yes
checking for external symbol _system_configuration... no
checking for getrusage... (cached) yes
checking for on_exit... (cached) yes
checking for psignal... (cached) yes
checking for strerror... (cached) yes
checking for strsignal... (cached) yes
checking for sysconf... (cached) yes
checking for times... (cached) yes
checking for sbrk... (cached) yes
checking for gettimeofday... (cached) yes
checking for realpath... (cached) yes
checking for canonicalize_file_name... (cached) yes
checking for pstat_getstatic... (cached) no
checking for pstat_getdynamic... (cached) no
checking for sysmp... (cached) no
checking for getsysinfo... (cached) no
checking for table... (cached) no
checking for sysctl... (cached) yes
checking whether canonicalize_file_name must be declared... (cached) yes
checking for working strncmp... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
make[1]: Entering directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/libiberty'
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf vfork waitpid bcmp bcopy bzero; do \
  for g in mkstemps.o ; do \
    case "$g" in \
      *$f*) echo $g >> needed-list ;; \
    esac; \
  done; \
done
echo regex.o cplus-dem.o cp-demangle.o cp-demint.o md5.o alloca.o argv.o choose-temp.o concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o physmem.o pex-unix.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o > required-list
make[2]: Entering directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/libiberty/testsuite'
make[1]: Leaving directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/libiberty'
make[1]: Entering directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/intl'
make[1]: Entering directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc'
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ./mkconfig.sh config.h
TARGET_CPU_DEFAULT="\"750\"" \
HEADERS="config/rs6000/rs6000.h config/dbxelf.h config/elfos.h config/svr4.h config/freebsd-spec.h config/rs6000/sysv4.h config/rs6000/linux.h defaults.h" DEFINES="" \
/bin/sh ./mkconfig.sh tm.h
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ./mkconfig.sh bconfig.h
echo "/* This file is machine generated.  Do not edit.  */" > tmp-gtyp.h
echo "static const char *const srcdir = "  >> tmp-gtyp.h
echo "\".\"" >> tmp-gtyp.h
echo ";" >> tmp-gtyp.h
echo "static const char *const lang_files[] = {" >> tmp-gtyp.h
ll="./cp/mangle.c  ./cp/name-lookup.h  ./cp/name-lookup.c  ./cp/cp-tree.h  ./cp/decl.h  ./cp/lex.h  ./cp/call.c  ./cp/decl.c  ./cp/decl2.c  ./cp/pt.c  ./cp/repo.c  ./cp/semantics.c  ./cp/tree.c  ./cp/parser.c  ./cp/method.c  ./c-common.c  ./c-common.h  ./c-pragma.c  ./c-lang.c  ./c-parse.in  ./c-tree.h  ./c-decl.c  ./c-common.c  ./c-common.h  ./c-pragma.c  ./c-objc-common.c "; \
for f in $ll; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
echo "static const char *const langs_for_lang_files[] = {" >> tmp-gtyp.h
ff="cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  cp  c  c  c  c  c  c  c  c "; \
for f in $ff; do \
echo "\"$f\", " ; done  >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
echo "static const char *const all_files[] = {" >> tmp-gtyp.h
gf="./input.h ./coretypes.h ./cpplib.h auto-host.h ./../include/ansidecl.h ./config/rs6000/rs6000.h ./config/dbxelf.h ./config/elfos.h ./config/svr4.h ./config/freebsd-spec.h ./config/rs6000/sysv4.h ./config/rs6000/linux.h ./defaults.h ./../include/hashtab.h ./../include/splay-tree.h ./bitmap.h ./coverage.c ./function.h  ./rtl.h ./optabs.h ./tree.h ./libfuncs.h ./hashtable.h ./real.h ./varray.h ./insn-addr.h ./cselib.h ./basic-block.h  ./cgraph.h ./c-common.h ./c-tree.h ./alias.c ./bitmap.c ./cselib.c ./cgraph.c ./dbxout.c ./dwarf2out.c ./dwarf2asm.c ./emit-rtl.c ./except.c ./explow.c ./expr.c ./fold-const.c ./function.c ./gcse.c ./integrate.c ./lists.c ./optabs.c ./profile.c ./ra-build.c ./regclass.c ./reg-stack.c ./cfglayout.c ./langhooks.c ./sdbout.c ./stmt.c ./stor-layout.c ./stringpool.c ./tree.c ./varasm.c ./config/rs6000/rs6000.c ./cp/mangle.c ./cp/name-lookup.h ./cp/name-lookup.c ./cp/cp-tree.h ./cp/decl.h ./cp/lex.h ./cp/call.c ./cp/decl.c ./cp/decl2.c ./cp/pt.c ./cp/repo.c ./cp/semantics.c ./cp/tree.c ./cp/parser.c ./cp/method.c ./c-common.c ./c-common.h ./c-pragma.c ./c-lang.c ./c-parse.in ./c-tree.h ./c-decl.c ./c-common.c ./c-common.h ./c-pragma.c ./c-objc-common.c"; \
for f in $gf; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo " NULL};" >> tmp-gtyp.h
echo "static const char *const lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
gf="cp"; \for l in $gf; do \
echo "\"$l\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
/bin/sh ./move-if-change tmp-gtyp.h gtyp-gen.h 
gtyp-gen.h is unchanged
TARGET_CPU_DEFAULT="" \
HEADERS="config/rs6000/rs6000-protos.h tm-preds.h" DEFINES="" \
/bin/sh ./mkconfig.sh tm_p.h
ltf="./cp/cp-tree.def"; for f in $ltf; do \

Last edited by elyk1212; 10-01-2006 at 03:47 AM.
 
Old 10-01-2006, 03:46 AM   #4
elyk1212
Member
 
Registered: Jan 2005
Location: Chandler, AZ USA
Distribution: Mandrake/Mandriva 10.2
Posts: 186

Original Poster
Rep: Reputation: 30
make log continued...
Code:
    echo "#include \"$f\""; \
done | sed 's|./||' > tmp-gencheck.h
/bin/sh ./move-if-change tmp-gencheck.h gencheck.h
gencheck.h is unchanged
echo timestamp > s-gencheck
AWK=gawk /bin/sh ./opts.sh \
               '/bin/sh ./move-if-change' \
               options.c options.h ./c.opt ./common.opt
options.h is unchanged
options.c is unchanged
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H    -I. -I. -I. -I./. -I./../include  \
  -DGCC_INCLUDE_DIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/powerpc-gamecube-linux-gnu/3.4.3/include\" -DGPLUSPLUS_INCLUDE_DIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/powerpc-gamecube-linux-gnu/3.4.3/../../../..`echo /home/kyle2/Development/Games/Gamecube/usr/src/gcc | sed -e 's|^/home/kyle2/Development/Games/Gamecube/usr/src/gcc||' -e 's|/[^/]*|/..|g'`/include/c++/3.4.3\" -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/powerpc-gamecube-linux-gnu/3.4.3/../../../..`echo /home/kyle2/Development/Games/Gamecube/usr/src/gcc | sed -e 's|^/home/kyle2/Development/Games/Gamecube/usr/src/gcc||' -e 's|/[^/]*|/..|g'`/include/c++/3.4.3/powerpc-gamecube-linux-gnu\" -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/powerpc-gamecube-linux-gnu/3.4.3/../../../..`echo /home/kyle2/Development/Games/Gamecube/usr/src/gcc | sed -e 's|^/home/kyle2/Development/Games/Gamecube/usr/src/gcc||' -e 's|/[^/]*|/..|g'`/include/c++/3.4.3/backward\" -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" -DCROSS_INCLUDE_DIR=\"/home/kyle2/Documents/Development/Games/Gamecube/usr/include\" -DTOOL_INCLUDE_DIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/powerpc-gamecube-linux-gnu/3.4.3/../../../../powerpc-gamecube-linux-gnu/include\" -DTARGET_SYSTEM_ROOT=\"/home/kyle2/Documents/Development/Games/Gamecube\" \
  -c ./cppdefault.c -o cppdefault.o
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H    -I. -I. -I. -I./. -I./../include  \
-DPREFIX=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc\" \
  -c ./prefix.c -o prefix.o
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H    -I. -I. -I. -I./. -I./../include  \
  -DLOCALEDIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/share/locale\" \
  -c ./intl.c -o intl.o
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H    -I. -I. -I. -I./. -I./../include  \
  -DTARGET_NAME=\"powerpc-gamecube-linux-gnu\" \
  -c ./toplev.c -o toplev.o
rm -rf libbackend.a
ar rc libbackend.a alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o dbxout.o debug.o df.o diagnostic.o dojump.o doloop.o dominance.o dwarf2asm.o dwarf2out.o emit-rtl.o except.o explow.o expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o genrtl.o ggc-common.o global.o graph.o gtype-desc.o haifa-sched.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-modes.o insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o integrate.o intl.o jump.o  langhooks.o lcm.o lists.o local-alloc.o loop.o optabs.o options.o opts.o params.o postreload.o predict.o print-rtl.o print-tree.o value-prof.o profile.o ra.o ra-build.o ra-colorize.o ra-debug.o ra-rewrite.o real.o recog.o reg-stack.o regclass.o regmove.o regrename.o reload.o reload1.o reorg.o resource.o rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o sibcall.o simplify-rtx.o sreal.o stmt.o stor-layout.o stringpool.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o unroll.o varasm.o varray.o version.o vmsdbgout.o xcoffout.o alloc-pool.o et-forest.o cfghooks.o bt-load.o pretty-print.o ggc-page.o web.o rs6000.o  host-default.o hashtable.o tree-inline.o tree-optimize.o cgraph.o cgraphunit.o
ranlib libbackend.a
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H  -o cc1 \
	c-parse.o c-lang.o c-pretty-print.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o libcpp.a rs6000-c.o main.o libbackend.a ../libiberty/libiberty.a  
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H  gcov.o intl.o version.o ../libiberty/libiberty.a   -o gcov
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H  -o cc1plus \
      cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-lang.o cp/name-lookup.o cp/cxx-pretty-print.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o rs6000-c.o c-pretty-print.o c-opts.o c-pch.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o main.o libbackend.a libcpp.a ../libiberty/libiberty.a  
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H  -o Tcollect2 \
	collect2.o tlink.o intl.o version.o ../libiberty/libiberty.a   
mv -f Tcollect2 collect2
if test yes = yes \
   || test -n ""; then \
  /bin/sh ./genmultilib \
    "msoft-float" \
    "nof" \
    "msoft-float=mcpu?401 msoft-float=mcpu?403 msoft-float=mcpu?405 msoft-float=mcpu?ec603e msoft-float=mcpu?801 msoft-float=mcpu?821 msoft-float=mcpu?823 msoft-float=mcpu?860" \
    "" \
    "fPIC mstrict-align" \
    "" \
    "" \
    "yes" \
    > tmp-mlib.h; \
else \
  /bin/sh ./genmultilib '' '' '' '' '' '' '' no \
    > tmp-mlib.h; \
fi
/bin/sh ./move-if-change tmp-mlib.h multilib.h
multilib.h is unchanged
echo timestamp > s-mlib
lsf="./cp/lang-specs.h"; for f in $lsf; do \
    echo "#include \"$f\""; \
done | sed 's|./||' > tmp-specs.h
/bin/sh ./move-if-change tmp-specs.h specs.h
specs.h is unchanged
echo timestamp > s-specs
(SHLIB_LINK='/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/xgcc -B/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/ -B/home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/bin/ -B/home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/lib/ -isystem /home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/include -isystem /home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/sys-include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wno-error -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs -Wl,--soname=@shlib_so_name@.so.1 -Wl,--version-script=@shlib_map_file@ -o @shlib_dir@@shlib_so_name@.so.1.tmp @multilib_flags@ @shlib_objs@ -lc && rm -f @shlib_base_name@.so && if [ -f @shlib_dir@@shlib_so_name@.so.1 ]; then mv -f @shlib_dir@@shlib_so_name@.so.1 @shlib_dir@@shlib_so_name@.so.1.`basename `; else true; fi && mv @shlib_dir@@shlib_so_name@.so.1.tmp @shlib_dir@@shlib_so_name@.so.1 && ln -s @shlib_dir@@shlib_so_name@.so.1 @shlib_base_name@.so' \
SHLIB_MULTILIB=''; \
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error  -DHAVE_CONFIG_H    -I. -I. -I. -I./. -I./../include  \
  -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"3.4.3\" -DDEFAULT_TARGET_MACHINE=\"powerpc-gamecube-linux-gnu\" -DSTANDARD_BINDIR_PREFIX=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" -DTARGET_SYSTEM_ROOT=\"/home/kyle2/Documents/Development/Games/Gamecube\"  `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
  -c ./gcc.c -o gcc.o)
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H  -o xgcc gcc.o gccspec.o intl.o \
  prefix.o version.o  ../libiberty/libiberty.a  
cp xgcc gcc-cross
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H  -o cpp gcc.o cppspec.o intl.o \
  prefix.o version.o  ../libiberty/libiberty.a  
/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/xgcc -B/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/ -B/home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/bin/ -B/home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/lib/ -isystem /home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/include -isystem /home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/sys-include -dumpspecs > tmp-specs
mv tmp-specs specs
if [ -f specs.ready ] ; then \
	true; \else \
	echo timestamp > specs.ready; \
fi
(MAKE="make"; srcdir=`cd ./fixinc && ${PWDCMD-pwd}` ; \
CC="gcc"; CFLAGS="  -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error  -DHAVE_CONFIG_H -DGENERATOR_FILE"; LDFLAGS=""; \
WARN_CFLAGS="-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error"; LIBERTY=`${PWDCMD-pwd}`/"../libiberty/libiberty.a"; \
export MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS LIBERTY; \
cd ./fixinc && \
/bin/sh ${srcdir}/mkfixinc.sh i686-pc-linux-gnu powerpc-gamecube-linux-gnu)
constructing ../fixinc.sh for powerpc-gamecube-linux-gnu to run on i686-pc-linux-gnu
make TARGETS=oneprocess SHELL="/bin/sh" CC="gcc" CFLAGS=" -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE" LDFLAGS="" LIBERTY="/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/../libiberty/libiberty.a" install-bin
make[2]: Entering directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/fixinc'
/bin/sh ./genfixes machname.h
gcc -c -DIN_GCC -DHAVE_CONFIG_H -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error -I. -I.. -I. -I./.. -I./../config -I./../../include fixincl.c
make[2]: Leaving directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/fixinc'
make[1]: Leaving directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc'

I am using "gcc (GCC) 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)" for a compiler and I am using 'gcc-3.4.3' for the cross compiler source and binutils-2.15 compiled for gamecube powerpc (I guess this would be MIPS). I have also used versions 3.4.6 and 4.0.1, all with the same results. It appears to be an issue with how it is using mkdir, or in the config process.

Funny thing is, I had the same EXACT issue when compiling gcc for a simulator I used in class called CS161. I eventually had to gcc use gcc-3.3.6 binary, and it compiled ok. If I use this, probably will be the same results. So what is up with gcc4.0.1 on mandriva? Does it not use mkdir correctly?


I also cannot use mkdir in 4.0.1 as it is intended by libc convention:
Code:
int mkdir (const char *FILENAME, mode_t MODE)
Example from one of my projects (ok, so it is using the c++ side)

Code:
g++ -c -Wall -Wno-deprecated filenamechanger.cpp
filenamechanger.cpp: In function 'int main(int, char**)':
filenamechanger.cpp:50: error: expected `)' before numeric constant
/usr/include/sys/stat.h:285: error: too few arguments to function 'int mkdir(const char*, __mode_t)'
filenamechanger.cpp:50: error: at this point in file
make: *** [filenamechanger.o] Error 1
Anyone else have this issue or know of any solution?


PS: 4.0.1 on Mandriva is ghetto... yep....

Last edited by elyk1212; 10-01-2006 at 03:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with gcc powerpc cross compile !! rohya_joshi Linux - Software 2 02-07-2006 12:44 AM
GCC cross compiling to alpha sparc? jon_k Linux - Software 2 12-07-2004 02:23 PM
gcc compiling problem chiahsin Linux - Software 2 12-02-2004 06:33 PM
GCC compiling problem webwolf70 Linux From Scratch 3 09-25-2004 08:51 PM
Problem compiling gcc gkiagia Programming 4 05-31-2004 03:18 AM


All times are GMT -5. The time now is 09:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration