Qube2: Progress and a setback

Don Smith midio at att.net
Fri Mar 8 14:31:56 PST 2002


"ian" <abuse at minimal.cx> wrote in message
news:slrna8ibns.ddi.abuse at borg.minimal.cx...
> Hi all,
>
> I've just found LFS today, and have an extra item for the build info
for
> bash on a Qube 2 (MIPS, Kernel 2.0.34) - it needs an extra item in the
> ./configure line: --disable-net-redirections as it seems to get a bit
> confused with the lack of IPv6 support.
>
> Unfortunately, the gcc build is giving me problems, and google doesn't
> seem to show any similar issues for general gcc builds.  It looks like
> it doesn't like the currently installed C runtime library (gcc 2.7.2
is
> the installed version), but I would welcome some pointers: I have
followed
> the manual exactly (cut-n-paste into the shell), so the patch is
applied,
> but the boot strap build ends with:
>
>
e1/xgcc -Bstage1/ -B/usr/mipsel-unknown-linux-gnu/bin/  -DIN_GCC     -O2
 -g -O2  -DHAVE_CONFIG_H -static -o gencheck \
>  gencheck.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case
"" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac `  ` case "" in
?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac `
> gencheck.o: In function `usage':
>
/home/lfs/lfs-packages-3.2/gcc-build/gcc/../../gcc-2.95.3/gcc/gencheck.c
:34: undefined reference to `_IO_stderr_'
>
/home/lfs/lfs-packages-3.2/gcc-build/gcc/../../gcc-2.95.3/gcc/gencheck.c
:34: undefined reference to `fprintf'
> gencheck.o: In function `main':
>
/home/lfs/lfs-packages-3.2/gcc-build/gcc/../../gcc-2.95.3/gcc/gencheck.c
:50: undefined reference to `exit'
>
/home/lfs/lfs-packages-3.2/gcc-build/gcc/../../gcc-2.95.3/gcc/gencheck.c
:53: undefined reference to `printf'
>
/home/lfs/lfs-packages-3.2/gcc-build/gcc/../../gcc-2.95.3/gcc/gencheck.c
:56: undefined reference to `printf'
> gencheck.o: In function
`/home/lfs/lfs-packages-3.2/gcc-build/gcc/../../gcc-2.95.3/gcc/gencheck.
c':
>
/home/lfs/lfs-packages-3.2/gcc-build/gcc/../../gcc-2.95.3/gcc/gencheck.c
:58: undefined reference to `printf'
> /usr/lib/crt1.o(.text+0x28): undefined reference to `atexit'
> /usr/lib/crt1.o(.text+0x7c): undefined reference to
`__libc_init_first'
> /usr/lib/crt1.o(.text+0xd8): undefined reference to `atexit'
> /usr/lib/crt1.o(.text+0x138): undefined reference to `exit'
> stage1/libgcc.a(__main.o): In function
`/home/lfs/lfs-packages-3.2/gcc-build/gcc/../../gcc-2.95.3/gcc/libgcc2.c
':
>
/home/lfs/lfs-packages-3.2/gcc-build/gcc/../../gcc-2.95.3/gcc/libgcc2.c(
.text+0x154): undefined reference to `atexit'
> collect2: ld returned 1 exit status
> make[2]: *** [gencheck] Error 1
> make[2]: Leaving directory `/home/lfs/lfs-packages-3.2/gcc-build/gcc'
> make[1]: *** [bootstrap] Error 2
> make[1]: Leaving directory `/home/lfs/lfs-packages-3.2/gcc-build/gcc'
> make: *** [bootstrap] Error 2
>
> Any advice would be most welcome - I did see an archive email from an
> Alpha user with a similar-ish issue, so I'm going to examine the Mips
> portion of gcc to see if there's something there that might apply.
>
> TTFN,
> --
> ian.

Well, I don't know anything about MIPS nor about how gcc is compiled but
it looks like this blew up in the linker when it couldn't find some
basic system functions. Maybe you need to upgrade your glibc first, then
try to build the compiler. Just a guess.

It looks like it successfully built the stage1 compiler (that's what it
is using to compile this module with), which would also contain these
references so you know this stuff works with gcc 2.7.2. Does anybody
know if there is an incompatibility in the symbol references between
2.7.2 and 2.95.3?

--
Don



-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list