Skip to contentSkip to conversation

Update for RedHat 7.1

DISCUSSION H . J . Lu 4 participants 13 messages Sep 8, 2001 – Sep 14, 2001 MIPS

lore
Share & tools
lore

H . J . Lu

author
#0 lore raw

I updated a few packages, fixed a linker bug and rebuilt everything.

H.J.
----
My mini-port of RedHat 7.1 is at

ftp://oss.sgi.com/pub/linux/mips/redhat/7.1/

you should be able to put a small RedHat 7.1 on the mips/mipsel box and compile the rest of RedHat 7.1 yourselves.

Here are something you should know:

1. The cross compiler hosted on RedHat 7.1/ia32 is provided as a toolchain rpm. The binary rpms for the mips and mipsel cross compilers are included. You will need glibc 2.2.3-11 or above to use those rpms. The glibc x86 binary rpms under RPMS/i386 should be ok.
2. You have to find a way to put those rpms on your machine. I use network boot and NFS root to do it.
3. install.tar.bz2 has some scripts to prepare NFS root and install RedHat 7.1 on a hard drive.
4. baseline.tar.bz2 contains the cross build tree.

Thanks.

H.J.

#1 lore raw

I have installed your new set of RedHat7.1 RPMs, and tried to build Perl natively.
But it fails with the following message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include
-O2

Cannot allocate 2676168 bytes after allocating 3899765696 bytes
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

I have build perl natively with your pervious set of RedHat7.1 RPMs, without any problems.

/Carsten

Quoted 23 lines · H . J . Lu

I updated a few packages, fixed a linker bug and rebuilt everything.

H.J.
----
My mini-port of RedHat 7.1 is at

ftp://oss.sgi.com/pub/linux/mips/redhat/7.1/

you should be able to put a small RedHat 7.1 on the mips/mipsel box and compile the rest of RedHat 7.1 yourselves.

Here are something you should know:

1. The cross compiler hosted on RedHat 7.1/ia32 is provided as a toolchain rpm. The binary rpms for the mips and mipsel cross compilers are included. You will need glibc 2.2.3-11 or above to use those rpms. The glibc x86 binary rpms under RPMS/i386 should be ok.
2. You have to find a way to put those rpms on your machine. I use network boot and NFS root to do it.
3. install.tar.bz2 has some scripts to prepare NFS root and install RedHat 7.1 on a hard drive.
4. baseline.tar.bz2 contains the cross build tree.

Quoted 3 lines

Thanks.

H.J.

--

_    _ ____  ___   Carsten Langgaard   Mailto:[email protected]
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com
#2 lore raw
Quoted 9 lines · Carsten Langgaard

I have installed your new set of RedHat7.1 RPMs, and tried to build Perl natively.
But it fails with the following message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing

(quoted diff) +0 -2
-I/usr/local/include
-O2
Quoted 7 lines

Cannot allocate 2676168 bytes after allocating 3899765696 bytes
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

I tried to build perl again an now I get this message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -O2
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

Quoted 33 lines

I have build perl natively with your pervious set of RedHat7.1 RPMs, without any problems.

/Carsten

Quoted 25 lines · H . J . Lu

I updated a few packages, fixed a linker bug and rebuilt everything.

H.J.
----
My mini-port of RedHat 7.1 is at

ftp://oss.sgi.com/pub/linux/mips/redhat/7.1/

you should be able to put a small RedHat 7.1 on the mips/mipsel box and compile the rest of RedHat 7.1 yourselves.

Here are something you should know:

1. The cross compiler hosted on RedHat 7.1/ia32 is provided as a toolchain rpm. The binary rpms for the mips and mipsel cross compilers are included. You will need glibc 2.2.3-11 or above to use those rpms. The glibc x86 binary rpms under RPMS/i386 should be ok.
2. You have to find a way to put those rpms on your machine. I use network boot and NFS root to do it.
3. install.tar.bz2 has some scripts to prepare NFS root and install RedHat 7.1 on a hard drive.
4. baseline.tar.bz2 contains the cross build tree.

Thanks.

Quoted 8 lines
Quoted 1 line

H.J.

--

_    _ ____  ___   Carsten Langgaard  Mailto:[email protected]
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556

Denmark http://www.mips.com

--

_    _ ____  ___   Carsten Langgaard   Mailto:[email protected]
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com
author
#3 lore raw
Quoted 30 lines · Carsten Langgaard
Quoted 9 lines · Carsten Langgaard

I have installed your new set of RedHat7.1 RPMs, and tried to build Perl natively.
But it fails with the following message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing

(quoted diff) +0 -2
-I/usr/local/include
-O2
Quoted 7 lines

Cannot allocate 2676168 bytes after allocating 3899765696 bytes
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

I tried to build perl again an now I get this message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -O2
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

Quoted 3 lines

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

It may be a kernel/hardware bug. I have no problem building perl natively.

H.J.

#4 lore raw
Quoted 33 lines · H . J . Lu
Quoted 31 lines · Carsten Langgaard
Quoted 9 lines · Carsten Langgaard

I have installed your new set of RedHat7.1 RPMs, and tried to build Perl natively.
But it fails with the following message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing

(quoted diff) +0 -2
-I/usr/local/include
-O2
Quoted 8 lines

Cannot allocate 2676168 bytes after allocating 3899765696 bytes
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

I tried to build perl again an now I get this message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -O2
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

Quoted 7 lines
Quoted 4 lines

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

It may be a kernel/hardware bug. I have no problem building perl natively.

Carsten, what board/cpu are you using?

Pete

#5 lore raw
Quoted 39 lines · Pete Popov
Quoted 38 lines · H . J . Lu
Quoted 35 lines · Carsten Langgaard
Quoted 9 lines · Carsten Langgaard

I have installed your new set of RedHat7.1 RPMs, and tried to build Perl natively.
But it fails with the following message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing

(quoted diff) +0 -2
-I/usr/local/include
-O2
Quoted 8 lines

Cannot allocate 2676168 bytes after allocating 3899765696 bytes
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

I tried to build perl again an now I get this message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -O2
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

Quoted 4 lines
Quoted 2 lines

It may be a kernel/hardware bug. I have no problem building perl natively.

Carsten, what board/cpu are you using?

On a Atlas board with a QED RM5261 CPU (little-endian). The kernel is based on 2.4.3.

Quoted 2 lines

Pete

#6 lore raw
Quoted 46 lines · Carsten Langgaard
Quoted 43 lines · Pete Popov
Quoted 41 lines · H . J . Lu
Quoted 38 lines · Carsten Langgaard
Quoted 9 lines · Carsten Langgaard

I have installed your new set of RedHat7.1 RPMs, and tried to build Perl natively.
But it fails with the following message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing

(quoted diff) +0 -2
-I/usr/local/include
-O2
Quoted 9 lines

Cannot allocate 2676168 bytes after allocating 3899765696 bytes
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

I tried to build perl again an now I get this message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -O2
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

It may be a kernel/hardware bug. I have no problem building perl natively.

Carsten, what board/cpu are you using?

On a Atlas board with a QED RM5261 CPU (little-endian). The kernel is based on 2.4.3.

I would try the exact same userland and kernel version on a different board, preferably with a different cpu. Rebuild perl natively 10 times. If it works on the other board, there is a very good chance that this is a board or CPU problem. Native compiles seem to be very good for stressing the hardware.

Pete

#7 lore raw
Quoted 8 lines · Pete Popov
Quoted 2 lines

On a Atlas board with a QED RM5261 CPU (little-endian). The kernel is based on 2.4.3.

I would try the exact same userland and kernel version on a different board, preferably with a different cpu. Rebuild perl natively 10 times. If it works on the other board, there is a very good chance that this is a board or CPU problem. Native compiles seem to be very good for stressing the hardware.

And software. You have little chance to find all the little details that need to be tweaked with crossbuilds.

Ralf

#8 lore raw
In reply to Pete Popov
Quoted 53 lines · Pete Popov
Quoted 52 lines · Carsten Langgaard
Quoted 48 lines · Pete Popov
Quoted 36 lines · H . J . Lu
Quoted 33 lines · Carsten Langgaard
Quoted 9 lines · Carsten Langgaard

I have installed your new set of RedHat7.1 RPMs, and tried to build Perl natively.
But it fails with the following message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing

(quoted diff) +0 -2
-I/usr/local/include
-O2
Quoted 9 lines

Cannot allocate 2676168 bytes after allocating 3899765696 bytes
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.43439 (%build)

I tried to build perl again an now I get this message:

sh cflags libperl.a toke.o toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -O2
gcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make: *** [toke.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

Quoted 8 lines
Quoted 5 lines

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.53242 (%build)

It may be a kernel/hardware bug. I have no problem building perl natively.

Carsten, what board/cpu are you using?

Quoted 8 lines
Quoted 2 lines

On a Atlas board with a QED RM5261 CPU (little-endian). The kernel is based on 2.4.3.

I would try the exact same userland and kernel version on a different board, preferably with a different cpu. Rebuild perl natively 10 times. If it works on the other board, there is a very good chance that this is a board or CPU problem. Native compiles seem to be very good for stressing the hardware.

Ok, I found the problem, it turn out that I only had 128K swap space, it should have been 128M.
So after increasing my swap space, I was able to compile perl.

Thanks a lot.
/Carsten

Quoted 2 lines

Pete

--

_    _ ____  ___   Carsten Langgaard   Mailto:[email protected]
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com
#9 lore raw
In reply to H . J . Lu

I now tried to installing the bigendian RedHat7.1 RPMs and I noticed the following.

/etc/localtime is lacking in glibc-2.2.4-11.2.mips.rpm (but it's contain in the little endian version).
All the timezone information is lacking under /usr/share/zoneinfo in glibc-common-2.2.4-11.2 (but it's in the little endian version).

I can't changes the root password, I get the following:

# passwd root
Changing password for user root
New UNIX password:
/usr/lib/cracklib_dict: magic mismatch
PWOpen: Success

/Carsten

Quoted 23 lines · H . J . Lu

I updated a few packages, fixed a linker bug and rebuilt everything.

H.J.
----
My mini-port of RedHat 7.1 is at

ftp://oss.sgi.com/pub/linux/mips/redhat/7.1/

you should be able to put a small RedHat 7.1 on the mips/mipsel box and compile the rest of RedHat 7.1 yourselves.

Here are something you should know:

1. The cross compiler hosted on RedHat 7.1/ia32 is provided as a toolchain rpm. The binary rpms for the mips and mipsel cross compilers are included. You will need glibc 2.2.3-11 or above to use those rpms. The glibc x86 binary rpms under RPMS/i386 should be ok.
2. You have to find a way to put those rpms on your machine. I use network boot and NFS root to do it.
3. install.tar.bz2 has some scripts to prepare NFS root and install RedHat 7.1 on a hard drive.
4. baseline.tar.bz2 contains the cross build tree.

Quoted 3 lines

Thanks.

H.J.

--

_    _ ____  ___   Carsten Langgaard   Mailto:[email protected]
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com
author
#10 lore raw
Quoted 7 lines · Carsten Langgaard

I now tried to installing the bigendian RedHat7.1 RPMs and I noticed the following.

/etc/localtime is lacking in glibc-2.2.4-11.2.mips.rpm (but it's contain in the little endian version).
All the timezone information is lacking under /usr/share/zoneinfo in glibc-common-2.2.4-11.2 (but it's in the little endian version).

Everything is cross compiled. Since x86 is little endian, I don't cross compile big endian data files, like locale and timezone. You can rebuild glibc natively to get all those data files.

Quoted 8 lines

I can't changes the root password, I get the following:

# passwd root
Changing password for user root
New UNIX password:
/usr/lib/cracklib_dict: magic mismatch
PWOpen: Success

It may be the endian issue. Please recompile cracklib natively and let me know if it fixes the problem for you.

H.J.

#11 lore raw
Quoted 22 lines · H . J . Lu
Quoted 7 lines · Carsten Langgaard

I now tried to installing the bigendian RedHat7.1 RPMs and I noticed the following.

/etc/localtime is lacking in glibc-2.2.4-11.2.mips.rpm (but it's contain in the little endian version).
All the timezone information is lacking under /usr/share/zoneinfo in glibc-common-2.2.4-11.2 (but it's in the little endian version).

Everything is cross compiled. Since x86 is little endian, I don't cross compile big endian data files, like locale and timezone. You can rebuild glibc natively to get all those data files.

Quoted 8 lines

I can't changes the root password, I get the following:

# passwd root
Changing password for user root
New UNIX password:
/usr/lib/cracklib_dict: magic mismatch
PWOpen: Success
Quoted 2 lines

It may be the endian issue. Please recompile cracklib natively and let me know if it fixes the problem for you.

I recompiled cracklib natively and yes it works, thanks a lot. Do you want the RPM binaries for your distribution ?

Quoted 2 lines

H.J.

--

_    _ ____  ___   Carsten Langgaard   Mailto:[email protected]
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com
author
#12 lore raw
Quoted 7 lines · Carsten Langgaard
Quoted 3 lines

It may be the endian issue. Please recompile cracklib natively and let me know if it fixes the problem for you.

I recompiled cracklib natively and yes it works, thanks a lot. Do you want the RPM binaries for your distribution ?

I updated README. I will just tell big endian people to recompile those rpms natively.

Thanks.

H.J.
----
My mini-port of RedHat 7.1 is at

ftp://oss.sgi.com/pub/linux/mips/redhat/7.1/

you should be able to put a small RedHat 7.1 on the mips/mipsel box and compile the rest of RedHat 7.1 yourselves.

Here are something you should know:

1. The cross compiler hosted on RedHat 7.1/ia32 is provided as a toolchain rpm. The binary rpms for the mips and mipsel cross compilers are included. You will need glibc 2.2.3-11 or above to use those rpms. The glibc x86 binary rpms under RPMS/i386 should be ok.
2. You have to find a way to put those rpms on your machine. I use network boot and NFS root to do it.
3. install.tar.bz2 has some scripts to prepare NFS root and install RedHat 7.1 on a hard drive.
4. baseline.tar.bz2 contains the cross build tree.
5. Since everything is cross compiled from x86, which is little endian, many data files for mips, which is big endian, are either missing or wrong. To get those data files for mips, you have to rebuild/install the folowing rpms:

cracklib
glibc

natively on Linux/mips.

Thanks.

H.J.