Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Mips cross toolchain
@ 2002-08-20 15:58 Lyle Bainbridge
  2002-08-20 15:54 ` Pete Popov
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Lyle Bainbridge @ 2002-08-20 15:58 UTC (permalink / raw)
  To: linux-mips

Hi,

I'm a linux kernel newbie, and this is my first linux-mips posting.
I have built a big endian, elf, cross toolchain for mips32 (I'm using
an Alchemy Au1500 SOC) based on the GCC 3.0.4, Binutils 2.11.2 and
Newlib 1.9.0.  My intention is to now use it to compile the 2.4.19 kernel.

I am still figuring out how to cross compile the kernel, but I was
wondering if I had used the correct versions of GCC and Binutils to
succesfully build a stable kernel.  Also, are there any patches I would
need? So far I've used the stock distributions from gnu.org.

Any advice would be most appreciated.

Thanks,
Lyle Bainbridge
Minneapolis, MN

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Mips Cross Toolchain
@ 2002-09-18 20:08 Lyle Bainbridge
  2002-09-18 20:08 ` Lyle Bainbridge
  0 siblings, 1 reply; 14+ messages in thread
From: Lyle Bainbridge @ 2002-09-18 20:08 UTC (permalink / raw)
  To: linux-mips

Hi,

Firstly, my apologies for resending this message that I
sent last friday.  My mail server died, so if you read
this and replied I wouldn't have received any resonsed.
So I am trying again...

I have successfully build a mips-linux cross toolchain
under RH Linux, but have really intended to be able to
do it under Cygwin.  I have binutils 2.13, gcc 3.2,
glibc 2.2.5.  Under Cywin, binutils and the first pass
of gcc succeed (c compiler only).  Then glibc gets
a long way through but exists with the text at the end
of this message.

My glibc configure options look like this:

CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib HOST_CC=gcc
BUILD_CC=gcc \
../${LIBC}/configure --host=${TARGET} --prefix=/usr --with-elf --enable-shar
ed --enable-add-ons=linuxthreads --with-headers=${PREFIX}/include -v

Is it even possible to build glibc under Cygwin?
Any help would be appreciated.

Thanks,
Lyle Baingridge


mips-linux-gcc -nostdlib -nostartfiles -o
usr/src/o_libc/iconv/iconv_prog  -Wl,
-dynamic-linker=/lib/ld.so.1    /usr/src/o_libc/csu/crt1.o
/usr/src/o_libc/csu/c
rti.o `mips-linux-gcc --print-file-name=crtbegin.o`
/usr/src/o_libc/iconv/iconv_
prog.o /usr/src/o_libc/iconv/iconv_charmap.o /usr/src/o_libc/iconv/charmap.o
/us
r/src/o_libc/iconv/charmap-dir.o /usr/src/o_libc/iconv/linereader.o
/usr/src/o_l
ibc/iconv/dummy-repertoire.o /usr/src/o_libc/iconv/simple-hash.o
/usr/src/o_libc
/iconv/xstrdup.o
usr/src/o_libc/iconv/xmalloc.o  -Wl,-rpath-link=/usr/src/o_lib
c:/usr/src/o_libc/math:/usr/src/o_libc/elf:/usr/src/o_libc/dlfcn:/usr/src/o_
libc
/nss:/usr/src/o_libc/nis:/usr/src/o_libc/rt:/usr/src/o_libc/resolv:/usr/src/
o_li
bc/crypt:/usr/src/o_libc/linuxthreads /usr/src/o_libc/libc.so.6
/usr/src/o_libc/
libc_nonshared.a -lgcc `mips-linux-gcc --print-file-name=crtend.o`
/usr/src/o_li
bc/csu/crtn.o
/usr/src/o_libc/iconv/iconv_prog.o: In function `main':
/usr/src/glibc-2.2.5/iconv/iconv_prog.c:265: undefined reference to `open'
/usr/src/glibc-2.2.5/iconv/iconv_prog.c:279: undefined reference to
`__fxstat'
/usr/src/glibc-2.2.5/iconv/iconv_prog.c:285: undefined reference to `close'
/usr/src/glibc-2.2.5/iconv/iconv_prog.c:326: undefined reference to `close'
/usr/src/glibc-2.2.5/iconv/iconv_prog.c:317: undefined reference to `close'
/usr/src/glibc-2.2.5/iconv/iconv_prog.c:142: undefined reference to `exit'
/usr/src/o_libc/iconv/iconv_prog.o: In function `process_fd':
/usr/src/glibc-2.2.5/iconv/iconv_prog.c:511: undefined reference to `read'
/usr/src/glibc-2.2.5/iconv/iconv_prog.c:542: undefined reference to `read'
/usr/src/o_libc/iconv/iconv_prog.o: In function `print_known_names':
/usr/src/glibc-2.2.5/iconv/iconv_prog.c:726: undefined reference to `isatty'
/usr/src/o_libc/iconv/iconv_charmap.o: In function `charmap_conversion':
/usr/src/glibc-2.2.5/iconv/iconv_charmap.c:155: undefined reference to
`open'
/usr/src/glibc-2.2.5/iconv/iconv_charmap.c:169: undefined reference to
`__fxstat
'
/usr/src/glibc-2.2.5/iconv/iconv_charmap.c:175: undefined reference to
`close'
/usr/src/glibc-2.2.5/iconv/iconv_charmap.c:215: undefined reference to
`close'
/usr/src/glibc-2.2.5/iconv/iconv_charmap.c:206: undefined reference to
`close'
/usr/src/o_libc/iconv/iconv_charmap.o: In function `process_fd':
/usr/src/glibc-2.2.5/iconv/iconv_charmap.c:498: undefined reference to
`read'
/usr/src/glibc-2.2.5/iconv/iconv_charmap.c:529: undefined reference to
`read'
/usr/src/o_libc/iconv/charmap.o: In function `charmap_read':
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap.c:106: undefined
reference
 to `getenv'
/usr/src/o_libc/iconv/charmap.o: In function `parse_charmap':
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap.c:467: undefined
reference
 to `exit'
/usr/src/o_libc/iconv/charmap.o: In function `charmap_new_char':
/usr/src/glibc-2.2.5/iconv/../stdlib/stdlib.h:308: undefined reference to
`__str
toul_internal'
/usr/src/glibc-2.2.5/iconv/../stdlib/stdlib.h:308: undefined reference to
`__str
toul_internal'
/usr/src/glibc-2.2.5/iconv/../stdlib/stdlib.h:308: undefined reference to
`__str
toul_internal'
/usr/src/glibc-2.2.5/iconv/../stdlib/stdlib.h:308: undefined reference to
`__str
toul_internal'
/usr/src/o_libc/iconv/charmap-dir.o: In function `charmap_readdir':
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap-dir.c:130: undefined
refer
ence to `__xstat'
/usr/src/o_libc/iconv/charmap-dir.o: In function `fopen_uncompressed':
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap-dir.c:171: undefined
refer
ence to `open'
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap-dir.c:177: undefined
refer
ence to `__fxstat'
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap-dir.c:207: undefined
refer
ence to `close'
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap-dir.c:210: undefined
refer
ence to `pipe'
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap-dir.c:204: undefined
refer
ence to `close'
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap-dir.c:205: undefined
refer
ence to `close'
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap-dir.c:198: undefined
refer
ence to `close'
/usr/src/glibc-2.2.5/iconv/../locale/programs/charmap-dir.c:199: undefined
refer
ence to `close'
/usr/src/o_libc/iconv/linereader.o: In function `get_symname':
/usr/src/glibc-2.2.5/iconv/../stdlib/stdlib.h:308: undefined reference to
`__str
toul_internal'
/usr/src/o_libc/iconv/linereader.o: In function `get_string':
/usr/src/glibc-2.2.5/iconv/../stdlib/stdlib.h:308: undefined reference to
`__str
toul_internal'
/usr/src/o_libc/libc.so.6: undefined reference to `__dup'
/usr/src/o_libc/libc.so.6: undefined reference to `__strtod_internal'
/usr/src/o_libc/libc.so.6: undefined reference to `utime'
/usr/src/o_libc/libc.so.6: undefined reference to `lrand48_r'
/usr/src/o_libc/libc.so.6: undefined reference to `__strtoull_internal'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_cmp'
/usr/src/o_libc/libc.so.6: undefined reference to `__libc_fcntl'
/usr/src/o_libc/libc.so.6: undefined reference to `__write'
/usr/src/o_libc/libc.so.6: undefined reference to `__getcwd'
/usr/src/o_libc/libc.so.6: undefined reference to `__strtol_internal'
/usr/src/o_libc/libc.so.6: undefined reference to `bsearch'
/usr/src/o_libc/libc.so.6: undefined reference to `__dup2'
/usr/src/o_libc/libc.so.6: undefined reference to `qsort'
/usr/src/o_libc/libc.so.6: undefined reference to `__strtoll_internal'
/usr/src/o_libc/libc.so.6: undefined reference to `__read'
/usr/src/o_libc/libc.so.6: undefined reference to `__unlink'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_lshift'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_mul'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_submul_1'
/usr/src/o_libc/libc.so.6: undefined reference to `__open'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_construct_float'
/usr/src/o_libc/elf/ld.so.1: undefined reference to `__libc_read'
/usr/src/o_libc/libc.so.6: undefined reference to `__xstat64'
/usr/src/o_libc/libc.so.6: undefined reference to `abort'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_divrem'
/usr/src/o_libc/libc.so.6: undefined reference to `__lxstat'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_construct_double'
/usr/src/o_libc/libc.so.6: undefined reference to `__chmod'
/usr/src/o_libc/libc.so.6: undefined reference to `__strtold_internal'
/usr/src/o_libc/libc.so.6: undefined reference to `__strtod_l'
/usr/src/o_libc/libc.so.6: undefined reference to `__isatty'
/usr/src/o_libc/libc.so.6: undefined reference to `__statfs'
/usr/src/o_libc/libc.so.6: undefined reference to `_fpioconst_pow10'
/usr/src/o_libc/libc.so.6: undefined reference to `__chdir'
/usr/src/o_libc/libc.so.6: undefined reference to `__readlink'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_extract_double'
/usr/src/o_libc/libc.so.6: undefined reference to `__secure_getenv'
/usr/src/o_libc/libc.so.6: undefined reference to `__mkdir'
/usr/src/o_libc/libc.so.6: undefined reference to `__cxa_atexit'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_add_n'
/usr/src/o_libc/libc.so.6: undefined reference to `__poll'
/usr/src/o_libc/libc.so.6: undefined reference to `__statvfs64'
/usr/src/o_libc/libc.so.6: undefined reference to `__pipe'
/usr/src/o_libc/libc.so.6: undefined reference to `__libc_open'
/usr/src/o_libc/libc.so.6: undefined reference to `__chown'
/usr/src/o_libc/libc.so.6: undefined reference to `__random_r'
/usr/src/o_libc/libc.so.6: undefined reference to `__initstate_r'
/usr/src/o_libc/libc.so.6: undefined reference to `__xmknod'
/usr/src/o_libc/libc.so.6: undefined reference to `__lseek'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_rshift'
/usr/src/o_libc/libc.so.6: undefined reference to `__srand48_r'
/usr/src/o_libc/libc.so.6: undefined reference to `__tens'
/usr/src/o_libc/libc.so.6: undefined reference to `__lxstat64'
/usr/src/o_libc/libc.so.6: undefined reference to `__ttyname_r'
/usr/src/o_libc/libc.so.6: undefined reference to `__rmdir'
/usr/src/o_libc/libc.so.6: undefined reference to `__fstatfs'
/usr/src/o_libc/libc.so.6: undefined reference to `__close'
/usr/src/o_libc/libc.so.6: undefined reference to `__fxstat64'
/usr/src/o_libc/libc.so.6: undefined reference to `__mpn_mul_1'
/usr/src/o_libc/libc.so.6: undefined reference to `__strtof_internal'
/usr/src/o_libc/elf/ld.so.1: undefined reference to `__libc_write'
/usr/src/o_libc/libc.so.6: undefined reference to `__fcntl'
/usr/src/o_libc/libc.so.6: undefined reference to `__setenv'
/usr/src/o_libc/libc.so.6: undefined reference to `__access'
/usr/src/o_libc/libc.so.6: undefined reference to `__unsetenv'
/usr/src/o_libc/libc.so.6: undefined reference to `__open64'
/usr/src/o_libc/libc.so.6: undefined reference to `__fstatvfs64'
collect2: ld returned 1 exit status
make[2]: *** [/usr/src/o_libc/iconv/iconv_prog] Error 1
make[2]: Leaving directory `/usr/src/glibc-2.2.5/iconv'
make[1]: *** [iconv/subdir_install] Error 2
make[1]: Leaving directory `/usr/src/glibc-2.2.5'
make: *** [install] Error 2

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

end of thread, other threads:[~2002-09-18 20:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-20 15:58 Mips cross toolchain Lyle Bainbridge
2002-08-20 15:54 ` Pete Popov
2002-08-20 15:58 ` Lyle Bainbridge
2002-08-20 16:02 ` Ralf Baechle
2002-08-20 16:05 ` Daniel Jacobowitz
2002-08-20 16:29 ` Joe George
2002-08-20 16:57   ` Pete Popov
2002-08-20 17:22     ` Joe George
2002-08-20 17:41       ` Pete Popov
2002-08-20 18:47   ` Lyle Bainbridge
2002-08-20 18:47     ` Lyle Bainbridge
2002-08-20 19:04     ` Pete Popov
  -- strict thread matches above, loose matches on Subject: below --
2002-09-18 20:08 Mips Cross Toolchain Lyle Bainbridge
2002-09-18 20:08 ` Lyle Bainbridge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox