Skip to content

name mangling is hitting hard path length limits #3623

@scabug

Description

@scabug
Hearing a report that someone couldn't build trunk on linux because of a "File
name too long" error, I took a look at what the longest filenames we create
are. These are some scary manglings. Linux has a hard 255-byte limit on total
path length, and that's a best case scenario: I'm surprised we haven't hit
this harder and faster. My longest is 245 chars working out a 10 char root dir.

My longest ten:
/build/quick/classes/compiler/scala/tools/nsc/interactive/RefinedBuildManager$$$$anonfun$$invalidated$$1$$$$anonfun$$apply$$12$$$$anonfun$$checkInheritedReferences$$1$$2$$$$anonfun$$apply$$13$$$$anonfun$$apply$$14$$$$anonfun$$apply$$17.class
/build/locker/classes/compiler/scala/tools/nsc/interactive/RefinedBuildManager$$$$anonfun$$invalidated$$1$$$$anonfun$$apply$$12$$$$anonfun$$checkInheritedReferences$$1$$2$$$$anonfun$$apply$$13$$$$anonfun$$apply$$14$$$$anonfun$$apply$$15.class
/build/locker/classes/compiler/scala/tools/nsc/interactive/RefinedBuildManager$$$$anonfun$$invalidated$$1$$$$anonfun$$apply$$12$$$$anonfun$$checkInheritedReferences$$1$$2$$$$anonfun$$apply$$13$$$$anonfun$$apply$$14$$$$anonfun$$apply$$16.class
/build/locker/classes/compiler/scala/tools/nsc/interactive/RefinedBuildManager$$$$anonfun$$invalidated$$1$$$$anonfun$$apply$$12$$$$anonfun$$checkInheritedReferences$$1$$2$$$$anonfun$$apply$$13$$$$anonfun$$apply$$14$$$$anonfun$$apply$$17.class
/build/quick/classes/compiler/scala/tools/nsc/matching/MatrixAdditions$$MatrixExhaustiveness$$ExhaustivenessChecker$$$$anonfun$$scala$$tools$$nsc$$matching$$MatrixAdditions$$MatrixExhaustiveness$$ExhaustivenessChecker$$$$mkMissingStr$$1.class
/build/locker/classes/compiler/scala/tools/nsc/matching/MatrixAdditions$$MatrixExhaustiveness$$ExhaustivenessChecker$$$$anonfun$$scala$$tools$$nsc$$matching$$MatrixAdditions$$MatrixExhaustiveness$$ExhaustivenessChecker$$$$mkMissingStr$$1.class
/build/quick/classes/compiler/scala/tools/nsc/matching/MatrixAdditions$$MatrixExhaustiveness$$ExhaustivenessChecker$$$$anonfun$$scala$$tools$$nsc$$matching$$MatrixAdditions$$MatrixExhaustiveness$$ExhaustivenessChecker$$$$rowCoversCombo$$1.class
/build/locker/classes/compiler/scala/tools/nsc/matching/MatrixAdditions$$MatrixExhaustiveness$$ExhaustivenessChecker$$$$anonfun$$scala$$tools$$nsc$$matching$$MatrixAdditions$$MatrixExhaustiveness$$ExhaustivenessChecker$$$$rowCoversCombo$$1.class
/build/quick/classes/compiler/scala/tools/nsc/backend/icode/analysis/ReachingDefinitions$$ReachingDefinitionsAnalysis$$$$anonfun$$scala$$tools$$nsc$$backend$$icode$$analysis$$ReachingDefinitions$$ReachingDefinitionsAnalysis$$$$dropsAndGen$$1.class
/build/locker/classes/compiler/scala/tools/nsc/backend/icode/analysis/ReachingDefinitions$$ReachingDefinitionsAnalysis$$$$anonfun$$scala$$tools$$nsc$$backend$$icode$$analysis$$ReachingDefinitions$$ReachingDefinitionsAnalysis$$$$dropsAndGen$$1.class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions