haskell / haskell-platform

Distribution of Haskell with batteries included
http://www.haskell.org/platform/
Other
381 stars 91 forks source link

Running platform.sh ends with wrong path #307

Open andreas-roehler opened 6 years ago

andreas-roehler commented 6 years ago

/home/my-name/arbeit/haskell/haskell-platform-8.4.2

$ ./platform.sh ->


*** Building hptool


Resolving dependencies... Downloading blaze-builder-0.4.1.0... Downloading clock-0.7.2... Downloading extra-1.6.8... Downloading hashable-1.2.7.0... Downloading hastache-0.6.1... Downloading ieee754-0.8.0... Downloading primitive-0.6.4.0... Downloading random-1.1... Downloading shake-0.15.11... Downloading split-0.2.3.3... Downloading text-1.2.3.0... Downloading unix-compat-0.5.0.1... Downloading unordered-containers-0.2.9.0... Downloading utf8-string-1.0.1.1... In order, the following will be built (use -v for more details): clock-0.7.2 extra-1.6.8 ieee754-0.8.0 js-flot-0.8.3 js-jquery-3.3.1 mtl-2.2.2 primitive-0.6.4.0 random-1.1 split-0.2.3.3 syb-0.7 text-1.2.3.0 blaze-builder-0.4.1.0 hashable-1.2.7.0 hastache-0.6.1 unix-compat-0.5.0.1 unordered-containers-0.2.9.0 utf8-string-1.0.1.1 shake-0.15.11 hptool-0.1 Configuring clock-0.7.2... Configuring js-jquery-3.3.1... Configuring ieee754-0.8.0... Configuring js-flot-0.8.3... Building clock-0.7.2... Building js-flot-0.8.3... Building ieee754-0.8.0... Building js-jquery-3.3.1... Configuring mtl-2.2.2... Configuring primitive-0.6.4.0... Configuring random-1.1... Building mtl-2.2.2... Building random-1.1... Building primitive-0.6.4.0... Configuring split-0.2.3.3... Building split-0.2.3.3... Configuring syb-0.7... Configuring text-1.2.3.0... Configuring unix-compat-0.5.0.1... Building syb-0.7... Building text-1.2.3.0... Building unix-compat-0.5.0.1... Configuring utf8-string-1.0.1.1... Configuring extra-1.6.8... Building utf8-string-1.0.1.1... Building extra-1.6.8... Configuring hashable-1.2.7.0... Configuring blaze-builder-0.4.1.0... Building blaze-builder-0.4.1.0... Building hashable-1.2.7.0... Configuring unordered-containers-0.2.9.0... Building unordered-containers-0.2.9.0... Configuring hastache-0.6.1... Building hastache-0.6.1... Configuring shake-0.15.11... Building shake-0.15.11... Configuring hptool-0.1... Preprocessing executable 'hptool' for hptool-0.1... [ 1 of 33] Compiling Utils ( src/Utils.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Utils.o ) [ 2 of 33] Compiling Types ( src/Types.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Types.o )

src/Types.hs:18:1: warning: [-Wunused-imports] The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() [ 3 of 33] Compiling ReleaseFiles ( src/ReleaseFiles.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/ReleaseFiles.o )

src/ReleaseFiles.hs:18:8: warning: [-Wunused-top-binds] Defined but not used: ‘feb’

src/ReleaseFiles.hs:18:43: warning: [-Wunused-top-binds] Defined but not used: ‘sep’

src/ReleaseFiles.hs:18:48: warning: [-Wunused-top-binds] Defined but not used: ‘oct’ [ 4 of 33] Compiling PlatformDB ( src/PlatformDB.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/PlatformDB.o )

src/PlatformDB.hs:41:23: warning: [-Wunused-matches] Defined but not used: ‘dIncs’ [ 5 of 33] Compiling Releases2012 ( src/Releases2012.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Releases2012.o ) [ 6 of 33] Compiling Releases2013 ( src/Releases2013.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Releases2013.o ) [ 7 of 33] Compiling Releases2014 ( src/Releases2014.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Releases2014.o ) [ 8 of 33] Compiling Releases2015 ( src/Releases2015.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Releases2015.o ) [ 9 of 33] Compiling Releases2016 ( src/Releases2016.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Releases2016.o ) [10 of 33] Compiling Releases2017 ( src/Releases2017.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Releases2017.o ) [11 of 33] Compiling Releases2018 ( src/Releases2018.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Releases2018.o ) [12 of 33] Compiling Releases ( src/Releases.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Releases.o ) [13 of 33] Compiling Paths ( src/Paths.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Paths.o ) [14 of 33] Compiling OS.Win.WinUtils ( src/OS/Win/WinUtils.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/OS/Win/WinUtils.o ) [15 of 33] Compiling OS.Win.WinPaths ( src/OS/Win/WinPaths.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/OS/Win/WinPaths.o ) [16 of 33] Compiling Dirs ( src/Dirs.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Dirs.o ) [17 of 33] Compiling LocalCommand ( src/LocalCommand.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/LocalCommand.o ) [18 of 33] Compiling OS.Internal ( src/OS/Internal.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/OS/Internal.o ) [19 of 33] Compiling Config ( src/Config.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Config.o )

src/Config.hs:19:1: warning: [-Wunused-imports] The import of ‘Development.Shake.Rule’ is redundant except perhaps to import instances from ‘Development.Shake.Rule’ To import instances alone, use: import Development.Shake.Rule() [20 of 33] Compiling Package ( src/Package.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Package.o )

src/Package.hs:10:1: warning: [-Wunused-imports] The import of ‘isPrefixOf’ from module ‘Data.List’ is redundant [21 of 33] Compiling Templates ( src/Templates.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Templates.o ) [22 of 33] Compiling OS.Mac ( src/OS/Mac.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/OS/Mac.o ) [23 of 33] Compiling OS.Posix ( src/OS/Posix.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/OS/Posix.o )

src/OS/Posix.hs:30:5: warning: [-Wunused-local-binds] Defined but not used: ‘relPrefix’

src/OS/Posix.hs:34:5: warning: [-Wunused-local-binds] Defined but not used: ‘relVersionDir’

src/OS/Posix.hs:119:13: warning: [-Wname-shadowing] This binding for ‘cabalFile’ shadows the existing binding bound at src/OS/Posix.hs:58:5 [24 of 33] Compiling OS.Win.WinNsis ( src/OS/Win/WinNsis.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/OS/Win/WinNsis.o ) [25 of 33] Compiling OS.Win.WinRules ( src/OS/Win/WinRules.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/OS/Win/WinRules.o ) [26 of 33] Compiling OS.Win ( src/OS/Win.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/OS/Win.o ) [27 of 33] Compiling OS ( src/OS.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/OS.o ) [28 of 33] Compiling GhcDist ( src/GhcDist.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/GhcDist.o ) [29 of 33] Compiling HaddockMaster ( src/HaddockMaster.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/HaddockMaster.o ) [30 of 33] Compiling Target ( src/Target.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Target.o ) [31 of 33] Compiling SourceTarball ( src/SourceTarball.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/SourceTarball.o ) [32 of 33] Compiling Website ( src/Website.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Website.o ) [33 of 33] Compiling Main ( src/Main.hs, /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool-tmp/Main.o ) Linking /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool ...


*** Running hptool


./platform.sh: 44: exec: hptool/dist-newstyle/build/x86_64-osx/ghc-8.2.1/hptool-0.1/c/hptool/build/hptool/hptool: not found $

But see it resides here: /home/my-name/arbeit/haskell/haskell-platform-8.4.2/hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool

Where I get

This hptool is built to construct haskell-platform-8.4.2 for the linux x86_64 platform. The HP constructed will contain the following:

-- Core Platform: GHC: ghc-8.4.2 GHCLib: Cabal-2.2.0.1 GHCLib: array-0.5.2.0 GHCLib: base-4.11.1.0 GHCLib: bytestring-0.10.8.2 GHCLib: containers-0.5.11.0 GHCLib: deepseq-1.4.3.0 GHCLib: directory-1.3.1.5 GHCLib: filepath-1.4.2 GHCLib: hpc-0.6.0.3 GHCLib: mtl-2.2.2 GHCLib: parsec-3.1.13.0 GHCLib: pretty-1.1.3.6 GHCLib: process-1.6.3.0 GHCLib: stm-2.4.5.0 GHCLib: template-haskell-2.13.0.0 GHCLib: text-1.2.3.0 GHCLib: time-1.8.0.2 GHCLib: transformers-0.5.5.0 GHCLib: xhtml-3000.2.2.1 IfNotWindows: GHCLib: unix-2.7.2.2 TOOL: alex-3.2.4 TOOL: happy-1.19.9 TOOL: hscolour-1.24.4 TOOL: haddock-2.19.0.1 TOOL: cabal-install-2.2.0.0 TOOL: stack-1.7.1 -- Full Platform: LIB: async-2.2.1 LIB: attoparsec-0.13.2.2 LIB: case-insensitive-1.2.0.10 LIB: fgl-5.6.0.0 LIB: GLUT-2.7.0.12 LIB: GLURaw-2.0.0.3 LIB: haskell-src-1.0.3.0 LIB: hashable-1.2.7.0 LIB: html-1.0.1.2 LIB: HTTP-4000.3.11 LIB: HUnit-1.6.0.0 LIB: network-2.6.3.5 LIB: OpenGL-3.0.2.0 LIB: OpenGLRaw-3.2.7.0 LIB: parallel-3.2.1.1 LIB: regex-base-0.93.2 LIB: regex-compat-0.95.1 LIB: regex-posix-0.95.2 LIB: split-0.2.3.3 LIB: syb-0.7 LIB: unordered-containers-0.2.9.0 LIB: vector-0.12.0.1 LIB: zlib-0.6.2 LIB: primitive-0.6.3.0 LIB: random-1.1 LIB: QuickCheck-2.11.3 LIB: tf-random-0.5 LIB: network-uri-2.6.1.0 LIB: scientific-0.3.5.2 LIB: integer-logarithms-1.0.2.1 LIB: ObjectName-1.1.0.1 LIB: StateVar-1.1.0.4 LIB: half-0.2.2.3 LIB: fixed-0.2.1.1 LIB: call-stack-0.1.0

gbaz commented 6 years ago

Yes, unfortunately the path needs to be customized per-install since its nonuniform where the executables end up in current new-build. future improvements to cabal should make this something more easily discoverable and usable uniformly. It is i suppose worth updating the docs to note this.