Advertisement
Guest User

problem-importing-threadscope

a guest
Mar 23rd, 2021
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. I believe that it's choking with 'events' package:
  2.  
  3. $guix import hackage -t ghc-events
  4. Syntax error: unexpected token : common (at line 44, column 0)
  5. Syntax error: unexpected end of input
  6. guix import: error: failed to download cabal file for package 'ghc-events'
  7.  
  8. and with out the ghc:
  9.  
  10. $guix import hackage -t events
  11. guix import: error: failed to download cabal file for package 'events'
  12.  
  13. What was I tryng to do in the first place:
  14.  
  15. $guix import hackage -t -r threadscope
  16.  
  17. Starting download of /tmp/guix-file.P3d97B
  18. From https://hackage.haskell.org/package/threadscope/threadscope-0.2.14.tar.gz...
  19. …0.2.14.tar.gz 82KiB 364KiB/s 00:00 [##################] 100.0%
  20.  
  21. Starting download of /tmp/guix-file.NG1oxB
  22. From https://hackage.haskell.org/package/gtk/gtk-0.15.5.tar.gz...
  23. ….5.tar.gz 663KiB 830KiB/s 00:01 [##################] 100.0%
  24.  
  25. Starting download of /tmp/guix-file.JagOnA
  26. From https://hackage.haskell.org/package/glib/glib-0.13.8.1.tar.gz...
  27. …8.1.tar.gz 39KiB 606KiB/s 00:00 [##################] 100.0%
  28.  
  29. Starting download of /tmp/guix-file.NvsSsB
  30. From https://hackage.haskell.org/package/pango/pango-0.13.8.1.tar.gz...
  31. ….8.1.tar.gz 51KiB 338KiB/s 00:00 [##################] 100.0%
  32. Syntax error: unexpected token : common (at line 44, column 0)
  33. Syntax error: unexpected end of input
  34. Backtrace:
  35. 9 (primitive-load "/home/catriel/.config/guix/current/bin…")
  36. In guix/ui.scm:
  37. 2164:12 8 (run-guix-command _ . _)
  38. In guix/scripts/import.scm:
  39. 120:11 7 (guix-import . _)
  40. In guix/scripts/import/hackage.scm:
  41. 132:26 6 (guix-import-hackage . _)
  42. In guix/import/utils.scm:
  43. 465:27 5 (recursive-import _ #:repo->guix-package _ #:guix-name _ …)
  44. In srfi/srfi-1.scm:
  45. 586:29 4 (map1 _)
  46. 586:29 3 (map1 _)
  47. 586:29 2 (map1 (("pango" #f) ("ghc-events" #f)))
  48. 586:17 1 (map1 (("ghc-events" #f)))
  49. In guix/import/utils.scm:
  50. 454:33 0 (lookup-node "ghc-events" #f)
  51.  
  52. guix/import/utils.scm:454:33: In procedure lookup-node:
  53. Wrong number of values returned to continuation (expected 2)
  54.  
  55.  
  56. With out -r, it works fine, but I need the input packages. Here is the definition that manages to get imported:
  57.  
  58. (use-modules (guix packages)
  59. (guix download)
  60. (guix build-system haskell)
  61. (guix licenses))
  62.  
  63. (package
  64. (name "ghc-threadscope")
  65. (version "0.2.14")
  66. (source
  67. (origin
  68. (method url-fetch)
  69. (uri (string-append
  70. "https://hackage.haskell.org/package/threadscope/threadscope-"
  71. version
  72. ".tar.gz"))
  73. (sha256
  74. (base32
  75. "0xcj8v6kyk8ss2sg6f32gx84vgx36hfaqb5p3sy3d4vkxan4xwcy"))))
  76. (build-system haskell-build-system)
  77. (inputs
  78. `(("ghc-gtk" ,ghc-gtk)
  79. ("ghc-cairo" ,ghc-cairo)
  80. ("ghc-glib" ,ghc-glib)
  81. ("ghc-pango" ,ghc-pango)
  82. ("ghc-events" ,ghc-events)
  83. ("ghc-file-embed" ,ghc-file-embed)
  84. ("ghc-temporary" ,ghc-temporary)))
  85. (home-page
  86. "http://www.haskell.org/haskellwiki/ThreadScope")
  87. (synopsis
  88. "A graphical tool for profiling parallel Haskell programs.")
  89. (description
  90. "ThreadScope is a graphical viewer for thread profile information generated by the Glasgow Haskell compiler (GHC). . The Threadscope program allows us to debug the parallel performance of Haskell programs. Using Threadscope we can check to see that work is well balanced across the available processors and spot performance issues relating to garbage collection or poor load balancing.")
  91. (license bsd-3))
  92.  
  93.  
  94. I thinkg "ghc" it's prefixed by the build system in the inputs packages.
  95. For example, ghc-gtk, is https://hackage.haskell.org/package/gtk
  96. but, events naming appears to already have 'ghc': https://hackage.haskell.org/package/ghc-events
  97.  
  98. So for now I'm trying to debug the importing process to know a little more about what may be failing. Any Ideas?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement