Skip to contentSkip to conversation

cannot copy files larger than 40 MB from CD

DISCUSSION Nerijus Baliunas 7 participants 12 messages Jul 31, 2001 – Aug 3, 2001 Kbuild

lore
Share & tools
lore
#0 lore raw

Hello,

Just began to use 2.4.7 instead of 2.2.19. If I copy file larger than 40 MB, only these 40 MB are copied (40960000 bytes exactly), and then cp segfaults (the same happens with mc). The same problem is with mkisofs - only 40 MB of image is created. I get "File size limit exceeded".

Regards,
Nerijus

#1 lore raw

On Wed, 1 Aug 2001 01:27:19 +0200 Guest section DW <[email protected]> wrote:

GsD> On Wed, Aug 01, 2001 at 12:37:45AM +0200, Nerijus Baliunas wrote:
GsD>
GsD> > Just began to use 2.4.7 instead of 2.2.19. If I copy file larger than 40 MB, GsD> > only these 40 MB are copied (40960000 bytes exactly), and then cp GsD> > segfaults (the same happens with mc). The same problem is with mkisofs - GsD> > only 40 MB of image is created. I get "File size limit exceeded". GsD>
GsD> On what kind of filesystem?
GsD>
GsD> (On ext2 I just made a 500MB file under 2.4.7.)

Tried vfat, ext2 and reiserfs.

BTW, kernel is compiled with gcc-2.96-85, glibc-2.2.2-10 (RH 7.1) if that matters.

Regards,
Nerijus

#2 lore raw
Quoted 3 lines

Tried vfat, ext2 and reiserfs.

BTW, kernel is compiled with gcc-2.96-85, glibc-2.2.2-10 (RH 7.1) if

                               ^^^^^^^^^^^
Quoted 1 line

that matters.

Have you tried compiling your kernel using kgcc?

gcc-2.96.* is known to compile code incorrectly AFAIK, and shouldn't be used for compiling kernels. (kgcc is egcs-1.1.2, I think.)

Chris

#3 lore raw

On Tue, 31 Jul 2001 16:58:06 -0700 (PDT) Chris Vandomelen <[email protected]> wrote:

CV> > Tried vfat, ext2 and reiserfs.
CV> >
CV> > BTW, kernel is compiled with gcc-2.96-85, glibc-2.2.2-10 (RH 7.1) if
CV> ^^^^^^^^^^^
CV> > that matters.
CV>
CV> Have you tried compiling your kernel using kgcc?

No.

CV> gcc-2.96.* is known to compile code incorrectly AFAIK, and shouldn't be CV> used for compiling kernels. (kgcc is egcs-1.1.2, I think.)

As I remember Alan said recent 2.4 kernels should be compiled with gcc 2.95 or 2.96 (preferably?).

Regards,
Nerijus

#4 lore raw
Quoted 10 lines · On Tue, 31 Jul 2001 16:58:06 -0700 (PDT) Chris Vandomelen…

CV> > Tried vfat, ext2 and reiserfs.
CV> >
CV> > BTW, kernel is compiled with gcc-2.96-85, glibc-2.2.2-10 (RH 7.1) if
CV> ^^^^^^^^^^^
CV> > that matters.
CV>
CV> Have you tried compiling your kernel using kgcc?

Quoted 7 lines

No.

CV> gcc-2.96.* is known to compile code incorrectly AFAIK, and shouldn't be CV> used for compiling kernels. (kgcc is egcs-1.1.2, I think.)

As I remember Alan said recent 2.4 kernels should be compiled with gcc 2.95 or 2.96 (preferably?).

Everything that I've seen recommends egcs-1.1.2. The kernel documentation (linux/Documentation/Changes) recommends that version of egcs, as do some list messages around 12/00.

Chris

#5 lore raw

CV> > CV> gcc-2.96.* is known to compile code incorrectly AFAIK, and shouldn't be CV> > CV> used for compiling kernels. (kgcc is egcs-1.1.2, I think.) CV> >
CV> > As I remember Alan said recent 2.4 kernels should be compiled with gcc 2.95 CV> > or 2.96 (preferably?).
CV>
CV> Everything that I've seen recommends egcs-1.1.2. The kernel documentation CV> (linux/Documentation/Changes) recommends that version of egcs, as do some CV> list messages around 12/00.

Please read message which was posted a few minutes ago (in another thread). 2.4.7 even does not compile with egcs.

Regards,
Nerijus

#6 lore raw
Quoted 10 lines · Nerijus Baliunas

CV> > CV> gcc-2.96.* is known to compile code incorrectly AFAIK, and shouldn't be CV> > CV> used for compiling kernels. (kgcc is egcs-1.1.2, I think.) CV> >
CV> > As I remember Alan said recent 2.4 kernels should be compiled with gcc 2.95 CV> > or 2.96 (preferably?).
CV>
CV> Everything that I've seen recommends egcs-1.1.2. The kernel documentation CV> (linux/Documentation/Changes) recommends that version of egcs, as do some CV> list messages around 12/00.

Quoted 2 lines

Please read message which was posted a few minutes ago (in another thread). 2.4.7 even does not compile with egcs.

Sure it does. You just need a newer binutils. (I know, I've got a RH 6.2 box running with 2.4.7-ac3 and ext3 patches, compiled with egcs 1.1.2 and the binutils from RH 7.1. It helps to correctly interpret the error messages...)

Regards,

Bas Vermeulen

Signature · 5 lines
"God, root, what is difference?"
	-- Pitr, User Friendly

"God is more forgiving."
	-- Dave Aronson
#7 lore raw
In reply to Chris Vandomelen
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Nerijus" == Nerijus Baliunas <[email protected]> writes:

[snip]
Nerijus> As I remember Alan said recent 2.4 kernels should be Nerijus> compiled with gcc 2.95 or 2.96 (preferably?).

Huh? Might I recommend this (or some variant)?

bb,
Bill Pringlemeir

Changes.new renamed from usr/src/linux/Documentation/Changes +1 -3
@@ -70,9 +70,7 @@
 necessarily to users of other CPUs. Users of other CPUs should obtain
 information about their gcc version requirements from another source.
 
-The recommended compiler for the kernel is egcs 1.1.2 (gcc 2.91.66), and it
-should be used when you need absolute stability. You may use gcc 2.95.x
-instead if you wish, although it may cause problems. Later versions of gcc
+The recommended compiler for the kernel is gcc 2.95.x. Later versions of gcc
 have not received much testing for Linux kernel compilation, and there are
 almost certainly bugs (mainly, but not exclusively, in the kernel) that
 will need to be fixed in order to use these compilers. In any case, using
#8 lore raw
In reply to Chris Vandomelen
Quoted 10 lines
Quoted 3 lines

Tried vfat, ext2 and reiserfs.

BTW, kernel is compiled with gcc-2.96-85, glibc-2.2.2-10 (RH 7.1) if

                               ^^^^^^^^^^^
Quoted 1 line

that matters.

Have you tried compiling your kernel using kgcc?

gcc-2.96.* is known to compile code incorrectly AFAIK, and shouldn't be used for compiling kernels. (kgcc is egcs-1.1.2, I think.)

[x86 hat on]

egcs-1.1.2 aka kgcc wont build 2.4.7 it seems. gcc 2.96 >= 2.96.75 or so is just fine, gcc 2.95-2/3 is fine, gcc 3.0 seems to be doing the right thing

#9 lore raw
Quoted 2 lines · Alan Cox

egcs-1.1.2 aka kgcc wont build 2.4.7 it seems. gcc 2.96 >= 2.96.75 or so is just fine, gcc 2.95-2/3 is fine, gcc 3.0 seems to be doing the right thing

I've seen no problem running 2.4.7 built with egcs-1.1.2 2.91.66:
which part of it is believed not to build or to build wrongly? (arch/i386/kernel/traps.c errors were identified as old binutils.)

Hugh

#10 lore raw
In reply to Alan Cox
Quoted 8 lines · Alan Cox
Quoted 8 lines
Quoted 3 lines

Tried vfat, ext2 and reiserfs.

BTW, kernel is compiled with gcc-2.96-85, glibc-2.2.2-10 (RH 7.1) if

                               ^^^^^^^^^^^
Quoted 1 line

that matters.

Have you tried compiling your kernel using kgcc?

Quoted 7 lines
Quoted 2 lines

gcc-2.96.* is known to compile code incorrectly AFAIK, and shouldn't be used for compiling kernels. (kgcc is egcs-1.1.2, I think.)

[x86 hat on]

egcs-1.1.2 aka kgcc wont build 2.4.7 it seems. gcc 2.96 >= 2.96.75 or so is just fine, gcc 2.95-2/3 is fine, gcc 3.0 seems to be doing the right thing

egcs-1.1.3 *does* build 2.4.7, if you use the right binutils (2.10.91.0.2 worked for me). I'm running 2.4.7-ac3 with ext3 patches on an old dual P200. Haven't had a crash yet, been up 2 days and counting.

Bas Vermeulen

Signature · 5 lines
"God, root, what is difference?"
	-- Pitr, User Friendly

"God is more forgiving."
	-- Dave Aronson
#11 lore raw
In reply to Chris Vandomelen
Quoted 8 lines · Alan Cox
Quoted 8 lines
Quoted 3 lines

Tried vfat, ext2 and reiserfs.

BTW, kernel is compiled with gcc-2.96-85, glibc-2.2.2-10 (RH 7.1) if

                               ^^^^^^^^^^^
Quoted 1 line

that matters.

Have you tried compiling your kernel using kgcc?

Quoted 7 lines
Quoted 2 lines

gcc-2.96.* is known to compile code incorrectly AFAIK, and shouldn't be used for compiling kernels. (kgcc is egcs-1.1.2, I think.)

[x86 hat on]

egcs-1.1.2 aka kgcc wont build 2.4.7 it seems. gcc 2.96 >= 2.96.75 or so is just fine, gcc 2.95-2/3 is fine, gcc 3.0 seems to be doing the right thing

gcc 2.95.4 seem to be working too.

/David Weinehall
_ _
// David Weinehall <[email protected]> /> Northern lights wander \\

//  Project MCA Linux hacker        //  Dance across the winter sky //
\>  http://www.acc.umu.se/~tao/    </   Full colour fire           </