public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Old bug: the 14-character limit.
@ 2003-05-23 19:41 Nathanael Nerode
  2003-05-23 19:52 ` DJ Delorie
  2003-05-23 20:44 ` Laurent GUERBY
  0 siblings, 2 replies; 14+ messages in thread
From: Nathanael Nerode @ 2003-05-23 19:41 UTC (permalink / raw)
  To: gcc

I was going through old bugs and I found one (#4284) about filenames 
which aren't unique within 14 characters.

Are we still trying to preserve 14-character/8.3 uniqueness for building 
GCC (at least for C; C++ and Java libraries have other standards)?  I 
was under the impression that we were, but I couldn't find it 
documented anywhere.  If we are, can we document it?  If we aren't, can 
we document it and close the bug?

--Nathanael

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

* Re: Old bug: the 14-character limit.
  2003-05-23 19:41 Old bug: the 14-character limit Nathanael Nerode
@ 2003-05-23 19:52 ` DJ Delorie
  2003-05-25 18:17   ` Andris Pavenis
  2003-05-23 20:44 ` Laurent GUERBY
  1 sibling, 1 reply; 14+ messages in thread
From: DJ Delorie @ 2003-05-23 19:52 UTC (permalink / raw)
  To: neroden; +Cc: gcc


> Are we still trying to preserve 14-character/8.3 uniqueness for
> building GCC (at least for C; C++ and Java libraries have other
> standards)?  I was under the impression that we were, but I couldn't
> find it documented anywhere.

I don't think there are any old SYSV systems still around that have
the 14 character limit.

For DJGPP (the one remaining 8.3 system), we've accepted the fact that
an LFN-capable system is required for building, but still require 8.3
compatibility in the *installed* files (i.e. you need LFN to build,
but not to use).  This includes C++ and Java.

Note that all Microsoft-based systems also have case-insensitive file
systems, so things like String.h and string.h are the same file.

The FSF has a program called "doschk" that can scan for potential file
name conflicts.

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

* Re: Old bug: the 14-character limit.
  2003-05-23 19:41 Old bug: the 14-character limit Nathanael Nerode
  2003-05-23 19:52 ` DJ Delorie
@ 2003-05-23 20:44 ` Laurent GUERBY
  2003-05-23 20:45   ` Neil Booth
                     ` (3 more replies)
  1 sibling, 4 replies; 14+ messages in thread
From: Laurent GUERBY @ 2003-05-23 20:44 UTC (permalink / raw)
  To: Nathanael Nerode; +Cc: gcc

According to my experiments, the longest file name in the gcc source
tree is 48 characters: gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c
in libjava/jni/gtk-peer/.

Is there a documented upper limit on file name length for the gcc tree?
If not is there a common wisdom upper limit?

Laurent

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

* Re: Old bug: the 14-character limit.
  2003-05-23 20:44 ` Laurent GUERBY
@ 2003-05-23 20:45   ` Neil Booth
  2003-05-23 20:53   ` Phil Edwards
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 14+ messages in thread
From: Neil Booth @ 2003-05-23 20:45 UTC (permalink / raw)
  To: Laurent GUERBY; +Cc: Nathanael Nerode, gcc

Laurent GUERBY wrote:-

> According to my experiments, the longest file name in the gcc source
> tree is 48 characters: gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c
> in libjava/jni/gtk-peer/.
> 
> Is there a documented upper limit on file name length for the gcc tree?
> If not is there a common wisdom upper limit?

There is now: 48 8-)  I think that's enough for us.

Neil.

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

* Re: Old bug: the 14-character limit.
  2003-05-23 20:44 ` Laurent GUERBY
  2003-05-23 20:45   ` Neil Booth
  2003-05-23 20:53   ` Phil Edwards
@ 2003-05-23 20:53   ` Mike Stump
  2003-05-23 20:54   ` DJ Delorie
  3 siblings, 0 replies; 14+ messages in thread
From: Mike Stump @ 2003-05-23 20:53 UTC (permalink / raw)
  To: Laurent GUERBY; +Cc: Nathanael Nerode, gcc

On Friday, May 23, 2003, at 01:22 PM, Laurent GUERBY wrote:
> If not is there a common wisdom upper limit?

250 works just fine...  260 won't work on a lot of systems.  :-)

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

* Re: Old bug: the 14-character limit.
  2003-05-23 20:44 ` Laurent GUERBY
  2003-05-23 20:45   ` Neil Booth
@ 2003-05-23 20:53   ` Phil Edwards
  2003-05-23 20:53   ` Mike Stump
  2003-05-23 20:54   ` DJ Delorie
  3 siblings, 0 replies; 14+ messages in thread
From: Phil Edwards @ 2003-05-23 20:53 UTC (permalink / raw)
  To: Laurent GUERBY; +Cc: Nathanael Nerode, gcc

On Fri, May 23, 2003 at 10:22:01PM +0200, Laurent GUERBY wrote:
> According to my experiments, the longest file name in the gcc source
> tree is 48 characters: gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c
> in libjava/jni/gtk-peer/.

Like DJ said, we don't care about name length for building, only for
installing, and most of us don't even care very much about that.  :-)

> Is there a documented upper limit on file name length for the gcc tree?
> If not is there a common wisdom upper limit?

Some versions of (non-GNU) tar have a 100-char limit on certain names.

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams

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

* Re: Old bug: the 14-character limit.
  2003-05-23 20:44 ` Laurent GUERBY
                     ` (2 preceding siblings ...)
  2003-05-23 20:53   ` Mike Stump
@ 2003-05-23 20:54   ` DJ Delorie
  2003-05-23 21:34     ` Laurent GUERBY
  2003-05-24  2:19     ` Michael S. Zick
  3 siblings, 2 replies; 14+ messages in thread
From: DJ Delorie @ 2003-05-23 20:54 UTC (permalink / raw)
  To: guerby; +Cc: neroden, gcc


> Is there a documented upper limit on file name length for the gcc tree?

I don't know of any hard limits, but as long as files are unique in
the 8.3 characters (i.e. first 8 characters of the basename, first 3
characters of the extension), even DJGPP won't care about the length.

IIRC Windows has a hard upper limit on total path size, but I forget
what it is.  DJGPP's MAXPATH is 260 (for LFN; 80 for SFN), which is
probably related to the Windows limit.

Note that some archive formats (ar) have object name length limits.

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

* Re: Old bug: the 14-character limit.
  2003-05-23 20:54   ` DJ Delorie
@ 2003-05-23 21:34     ` Laurent GUERBY
  2003-05-23 21:53       ` DJ Delorie
  2003-05-24  2:19     ` Michael S. Zick
  1 sibling, 1 reply; 14+ messages in thread
From: Laurent GUERBY @ 2003-05-23 21:34 UTC (permalink / raw)
  To: DJ Delorie; +Cc: neroden, gcc

On Fri, 2003-05-23 at 22:53, DJ Delorie wrote:
> I don't know of any hard limits, but as long as files are unique in
> the 8.3 characters (i.e. first 8 characters of the basename, first 3
> characters of the extension), even DJGPP won't care about the length.

In the case I mentionned, there are multiple files with the same 25
first characters and the same extension, so I guess it's out of DJGPP
league anyway :).

I assume DJGPP constaints are mostly for the C compiler (may be other
languages ?), is this documented somewhere?

Laurent

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

* Re: Old bug: the 14-character limit.
  2003-05-23 21:34     ` Laurent GUERBY
@ 2003-05-23 21:53       ` DJ Delorie
  2003-05-24  9:27         ` Laurent GUERBY
  0 siblings, 1 reply; 14+ messages in thread
From: DJ Delorie @ 2003-05-23 21:53 UTC (permalink / raw)
  To: guerby; +Cc: gcc


> In the case I mentionned, there are multiple files with the same 25
> first characters and the same extension, so I guess it's out of DJGPP
> league anyway :).

Only if it needs to be installed.

And I fail to see the humor in excluding DJGPP as a platform.  GCC has
supported DJGPP (or at least been built for it) since version 1.35.

> I assume DJGPP constaints are mostly for the C compiler (may be other
> languages ?), is this documented somewhere?

We support all the languages except Java at the moment[*].  I suspect
the reason for not supporting Java is the runtime bits, though.

[*] I see c, c++, ada, pascal, objc, and fortran on the ftp site.
    That's for 3.2.3; 3.3 is the same except no pascal yet.

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

* Re: Old bug: the 14-character limit.
  2003-05-23 20:54   ` DJ Delorie
  2003-05-23 21:34     ` Laurent GUERBY
@ 2003-05-24  2:19     ` Michael S. Zick
  1 sibling, 0 replies; 14+ messages in thread
From: Michael S. Zick @ 2003-05-24  2:19 UTC (permalink / raw)
  To: DJ Delorie; +Cc: gcc

On Friday 23 May 2003 03:53 pm, DJ Delorie wrote:
> > Is there a documented upper limit on file name length for the gcc tree?
>
> I don't know of any hard limits, but as long as files are unique in
> the 8.3 characters (i.e. first 8 characters of the basename, first 3
> characters of the extension), even DJGPP won't care about the length.
>
> IIRC Windows has a hard upper limit on total path size, but I forget
> what it is.  DJGPP's MAXPATH is 260 (for LFN; 80 for SFN), which is
> probably related to the Windows limit.
Some GNU/Linux systems use:

[root@wolf686 mszick]# stat -f /dev/hda
  File: "/dev/hda"
    ID: 0        0        Namelen: 255     Type: EXT2

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

* Re: Old bug: the 14-character limit.
  2003-05-23 21:53       ` DJ Delorie
@ 2003-05-24  9:27         ` Laurent GUERBY
  2003-05-24 14:23           ` DJ Delorie
  0 siblings, 1 reply; 14+ messages in thread
From: Laurent GUERBY @ 2003-05-24  9:27 UTC (permalink / raw)
  To: DJ Delorie; +Cc: gcc

On Fri, 2003-05-23 at 23:31, DJ Delorie wrote:
> > In the case I mentionned, there are multiple files with the same 25
> > first characters and the same extension, so I guess it's out of DJGPP
> > league anyway :).
> 
> Only if it needs to be installed.
> 
> And I fail to see the humor in excluding DJGPP as a platform.  GCC has
> supported DJGPP (or at least been built for it) since version 1.35.

I'm just trying to understand what are the requirements to follow,
I asked if they were documented, since I had no reply I assume they
aren't (undocumented requirements are obviously harder to follow :). If
I do some guesswork on the replies so far:

- As far as we're not too far from 100 (portential tar limit) or 250
characters (more common limit on modern file systems)
for files needed during the build, and that includes DJGPP, right?
(I don't know DJGPP, so I assume there's some distinction
between build and use once installed.)

- If one wants to install a compiler on a platform, 8+3 name uniqueness
for all files to be installed is required for the compiler to be
useable under the DJGPP platform.

Laurent


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

* Re: Old bug: the 14-character limit.
  2003-05-24  9:27         ` Laurent GUERBY
@ 2003-05-24 14:23           ` DJ Delorie
  0 siblings, 0 replies; 14+ messages in thread
From: DJ Delorie @ 2003-05-24 14:23 UTC (permalink / raw)
  To: guerby; +Cc: gcc


> - As far as we're not too far from 100 (portential tar limit) or 250
> characters (more common limit on modern file systems)
> for files needed during the build, and that includes DJGPP, right?
> (I don't know DJGPP, so I assume there's some distinction
> between build and use once installed.)

Yes.  The thing about DJGPP is it supports two filesystem APIs, "short
file names" (SFN, or 8.3) and "long file names" (LFN).  Not all
Windows OSs provide LFN services, and some DOS systems have LFN
drivers.  In general, though, it's acceptable to require that someone
BUILDING a gnu package make the effort to obtain LFN services.

> - If one wants to install a compiler on a platform, 8+3 name
> uniqueness for all files to be installed is required for the
> compiler to be useable under the DJGPP platform.

Yes, because for USING a gnu package it is unacceptable to require LFN
services.  Dosemu, for example, cannot provide them for a shared linux
partition.

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

* Re: Old bug: the 14-character limit.
  2003-05-23 19:52 ` DJ Delorie
@ 2003-05-25 18:17   ` Andris Pavenis
  0 siblings, 0 replies; 14+ messages in thread
From: Andris Pavenis @ 2003-05-25 18:17 UTC (permalink / raw)
  To: DJ Delorie, neroden; +Cc: gcc

On Friday 23 May 2003 22:51, DJ Delorie wrote:
> > Are we still trying to preserve 14-character/8.3 uniqueness for
> > building GCC (at least for C; C++ and Java libraries have other
> > standards)?  I was under the impression that we were, but I couldn't
> > find it documented anywhere.
>
> I don't think there are any old SYSV systems still around that have
> the 14 character limit.
>
> For DJGPP (the one remaining 8.3 system), we've accepted the fact that
> an LFN-capable system is required for building, but still require 8.3
> compatibility in the *installed* files (i.e. you need LFN to build,
> but not to use).  This includes C++ and Java.

For C++ includes a part of files which names are incompatible with 
8+3 system (eg. ones which contains '+', or may not be unique on such system)
are renamed and corresponding header.gcc files is generated to provide 
possibility to use the original names. Also the name of directory where C++ 
includes are installed is changed.

Currently Java is not supported for DJGPP (perhaps compiler would still
build, but runtime is not ported at all). I don't see possibility of changes 
unless somebody will work on this.

Andris

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

* Re: Old bug: the 14-character limit.
@ 2003-05-23 19:44 Nathanael Nerode
  0 siblings, 0 replies; 14+ messages in thread
From: Nathanael Nerode @ 2003-05-23 19:44 UTC (permalink / raw)
  To: gcc

That should read bug 4293. *cough*.

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

end of thread, other threads:[~2003-05-25 17:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-23 19:41 Old bug: the 14-character limit Nathanael Nerode
2003-05-23 19:52 ` DJ Delorie
2003-05-25 18:17   ` Andris Pavenis
2003-05-23 20:44 ` Laurent GUERBY
2003-05-23 20:45   ` Neil Booth
2003-05-23 20:53   ` Phil Edwards
2003-05-23 20:53   ` Mike Stump
2003-05-23 20:54   ` DJ Delorie
2003-05-23 21:34     ` Laurent GUERBY
2003-05-23 21:53       ` DJ Delorie
2003-05-24  9:27         ` Laurent GUERBY
2003-05-24 14:23           ` DJ Delorie
2003-05-24  2:19     ` Michael S. Zick
2003-05-23 19:44 Nathanael Nerode

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).