Logs: freenode/#haskell
| 2021-04-15 05:18:48 | <antaoiseach> | okay, with cabal build, it failed again, but with some slightly different messages |
| 2021-04-15 05:19:01 | <antaoiseach> | sclv: passing `-v`? |
| 2021-04-15 05:19:04 | <Guest78317> | another silly question again. i have a thing that should be a json array. i have a parser for each of the contents of the json array. |
| 2021-04-15 05:19:31 | <sclv> | there’s a variety of verbosity levels iirc |
| 2021-04-15 05:20:38 | <sclv> | the easiest thing to do is to make sure you install ghc in precisely the compiler env you intend to run it in, so ideally the configure script just works right |
| 2021-04-15 05:21:32 | <antaoiseach> | sclv: I didn't get that... can you elaborate? |
| 2021-04-15 05:23:00 | → | syntactic_sugar joins (~syntactic@c-67-169-78-228.hsd1.ca.comcast.net) |
| 2021-04-15 05:23:10 | <sclv> | the ticket explains. when you install ghc (including via ghcup) it runs scripts to detect what settings to put in that file. so if you install it with precisely the ambient env you want (correct gcc in path, etc) then things go smoothly |
| 2021-04-15 05:23:36 | <sclv> | or one hopes they do |
| 2021-04-15 05:24:57 | <antaoiseach> | sclv: Hmmm, okay. I read through that issue now.... seems kind of relevant, but I think they're building ghc from source there, right? I'd hoped that installing the binary from ghcup would have put in the right settings. |
| 2021-04-15 05:25:16 | <antaoiseach> | Strangely enough, it did point to gcc (IIRC), and I had to manually change it to clang in the settings file |
| 2021-04-15 05:25:28 | <sclv> | the configure gets run regardless |
| 2021-04-15 05:25:40 | <sclv> | to generate that file |
| 2021-04-15 05:25:45 | <antaoiseach> | Hmmm |
| 2021-04-15 05:26:04 | × | Tario quits (~Tario@201.192.165.173) (Read error: Connection reset by peer) |
| 2021-04-15 05:26:09 | <antaoiseach> | That step is in the ghcup shell script though? |
| 2021-04-15 05:26:17 | → | Tario joins (~Tario@201.192.165.173) |
| 2021-04-15 05:26:20 | <antaoiseach> | and that runs automatically with the command given on the site |
| 2021-04-15 05:26:43 | <antaoiseach> | The command given is `curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh` (on the ghcup site) |
| 2021-04-15 05:26:44 | <sclv> | You can pass the installer a flag to tell it which c compiler to pick, but it picks the thing named gcc by default |
| 2021-04-15 05:27:09 | <antaoiseach> | okay, let me try and reinstall ghcup and see all the options presented |
| 2021-04-15 05:27:11 | <sclv> | recall that gcc is aliased to clang on brewless systems |
| 2021-04-15 05:27:24 | <sclv> | idk if ghcup hides this from you |
| 2021-04-15 05:27:47 | <sclv> | the curl script should have put a ghcup cmd in your path? |
| 2021-04-15 05:27:49 | <antaoiseach> | sclv: Hmmm, yes. I don't recall actually ... let me try it out now and see the options |
| 2021-04-15 05:28:40 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-04-15 05:28:59 | <sclv> | i would have a gcc aliased to clang, do a clean install, and then later if i wanted to change this, then change the gcc alias and also the ghc config for only that |
| 2021-04-15 05:29:04 | × | waleee-cl quits (uid373333@gateway/web/irccloud.com/x-cwhemzwwgbboniwh) (Quit: Connection closed for inactivity) |
| 2021-04-15 05:29:16 | <sclv> | it may not be the best approach but it seems safe |
| 2021-04-15 05:30:08 | <antaoiseach> | sclv: funnily enough, macOS does have gcc aliased to Apple clang by default! |
| 2021-04-15 05:30:26 | <antaoiseach> | I had manually rebound the alias to a brew installed instance of gcc 10 |
| 2021-04-15 05:30:31 | <antaoiseach> | so what you're saying makes sense |
| 2021-04-15 05:31:18 | <sclv> | right. you changed the compiler but not its flags, leading to an inconsistent config file |
| 2021-04-15 05:32:31 | <antaoiseach> | sclv: Okay, so I have removed the alias, gcc is now (as originally), pointing to Apple's clang instance ... installing via ghcup now... let's see! |
| 2021-04-15 05:32:54 | <antaoiseach> | So it's pointing to Apple clang version 11.0.0 (clang-1100.0.33.17) right now |
| 2021-04-15 05:33:06 | <antaoiseach> | let's hope for the best! :D |
| 2021-04-15 05:34:05 | × | drbean_ quits (~drbean@TC210-63-209-24.static.apol.com.tw) (Quit: ZNC 1.8.2+cygwin2 - https://znc.in) |
| 2021-04-15 05:35:51 | → | pthariensflame joins (~pthariens@2600:6c52:727f:4200:194:cbbb:ad89:4623) |
| 2021-04-15 05:36:05 | → | antaoise1ch joins (~z0ltan@103.5.134.18) |
| 2021-04-15 05:37:26 | × | antaoiseach quits (~z0ltan@103.5.134.18) (Ping timeout: 246 seconds) |
| 2021-04-15 05:38:00 | → | lambdaman joins (~lambdaman@s66-183-152-156.bc.hsia.telus.net) |
| 2021-04-15 05:39:35 | <antaoise1ch> | sclv: Sorry about the outage ... power cut, back again. Okay, so no luck... cabal build is still failing |
| 2021-04-15 05:40:04 | <antaoise1ch> | and strangely enough, the settings file still has references to gcc (had assumed it would use the alias and pick up clang) |
| 2021-04-15 05:40:22 | <sclv> | no its going to use the alias name |
| 2021-04-15 05:40:34 | <antaoise1ch> | okay |
| 2021-04-15 05:41:07 | <antaoise1ch> | clang: error: linker command failed with exit code 1 (use -v to see invocation) |
| 2021-04-15 05:41:08 | <antaoise1ch> | `gcc' failed in phase `Linker'. (Exit code: 1) |
| 2021-04-15 05:41:08 | <antaoise1ch> | cabal: Failed to build basement-0.0.11 (which is required by tests-0.0.1). See |
| 2021-04-15 05:41:08 | <antaoise1ch> | the build log above for details. |
| 2021-04-15 05:41:26 | <antaoise1ch> | you're right ... it did use clang, but but same failure |
| 2021-04-15 05:41:30 | <antaoise1ch> | let me try stack |
| 2021-04-15 05:41:43 | <sclv> | wait is the failure the no pie? |
| 2021-04-15 05:42:03 | × | pthariensflame quits (~pthariens@2600:6c52:727f:4200:194:cbbb:ad89:4623) () |
| 2021-04-15 05:42:05 | <sclv> | make sure your config file for ghc is actually now correct |
| 2021-04-15 05:43:46 | <antaoise1ch> | sclv: https://paste.tomsmeding.com/fZKo4PPa is my new settings .. it has `NO` for pie support |
| 2021-04-15 05:43:57 | → | gimps joins (~gimps@185.169.233.12) |
| 2021-04-15 05:44:26 | × | lambdaman quits (~lambdaman@s66-183-152-156.bc.hsia.telus.net) (Ping timeout: 260 seconds) |
| 2021-04-15 05:45:02 | → | lambdaman joins (~lambdaman@s66-183-152-156.bc.hsia.telus.net) |
| 2021-04-15 05:45:47 | <antaoise1ch> | not sure what to make of it ... |
| 2021-04-15 05:46:00 | <antaoise1ch> | the verbose output doesn't mention it though |
| 2021-04-15 05:46:13 | <antaoise1ch> | I found this bit funny though - "Failed to build QuickCheck-2.14.2 because it depends on QuickCheck-2.14.2 |
| 2021-04-15 05:46:16 | <antaoise1ch> | " |
| 2021-04-15 05:46:19 | <antaoise1ch> | :D |
| 2021-04-15 05:46:22 | → | ddellacosta joins (~ddellacos@86.106.143.131) |
| 2021-04-15 05:46:30 | <opqdonut> | antaoise1ch: sorry, I was away for a while, but it seems this issue is beyond me anyway. I have no experience with macos or building ghc from source... |
| 2021-04-15 05:47:29 | <antaoise1ch> | opqdonut: hey, no worries! Yeah, macOS has a bunch of issues with Apple installing their own versions of stuff |
| 2021-04-15 05:47:46 | <antaoise1ch> | Thanks for the help though, opqdonut and sclv! Appreciate it! :-) |
| 2021-04-15 05:47:56 | <opqdonut> | modifying the stack.yaml to include `system-ghc: true` might help if you indeed manage to install a working GHC via some non-stack mechanism |
| 2021-04-15 05:48:07 | <antaoise1ch> | I'll go back to 8.8.4, finish the mooc, and then try updating later! :D |
| 2021-04-15 05:48:23 | <opqdonut> | perhaps also `skip-ghc-check: true` is needed if the ghc version doesn't match |
| 2021-04-15 05:48:24 | <antaoise1ch> | opqdonut: I did set it to `true` :-) |
| 2021-04-15 05:48:43 | <opqdonut> | hmm yeah going back to a working configuration you had before makes sense |
| 2021-04-15 05:48:45 | <opqdonut> | have fun |
| 2021-04-15 05:48:48 | <antaoise1ch> | Okay, I can try the skip-check and see.. |
| 2021-04-15 05:48:55 | <antaoise1ch> | Thanks, and cheers! :-) |
| 2021-04-15 05:49:11 | × | hypercube quits (hypercube@gateway/vpn/protonvpn/hypercube) (Ping timeout: 240 seconds) |
| 2021-04-15 05:50:14 | × | antaoise1ch quits (~z0ltan@103.5.134.18) (Quit: leaving) |
| 2021-04-15 05:50:44 | × | ddellacosta quits (~ddellacos@86.106.143.131) (Ping timeout: 246 seconds) |
| 2021-04-15 05:51:19 | → | hypercube joins (hypercube@gateway/vpn/protonvpn/hypercube) |
| 2021-04-15 05:52:53 | × | horatiohb quits (~horatiohb@104.236.208.44) (Ping timeout: 240 seconds) |
| 2021-04-15 05:53:35 | × | syntactic_sugar quits (~syntactic@c-67-169-78-228.hsd1.ca.comcast.net) (Quit: syntactic_sugar) |
| 2021-04-15 05:54:14 | → | malumore joins (~malumore@151.62.126.218) |
| 2021-04-15 05:55:18 | → | srk joins (~sorki@unaffiliated/srk) |
| 2021-04-15 05:55:48 | × | kiweun quits (~kiweun@2607:fea8:2a62:9600:2d99:cd1a:54c5:e472) (Remote host closed the connection) |
| 2021-04-15 06:03:13 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 252 seconds) |
| 2021-04-15 06:03:37 | × | koz_ quits (~koz@121.99.240.58) (Ping timeout: 260 seconds) |
| 2021-04-15 06:04:00 | × | myShoggoth quits (~myShoggot@97-120-72-12.ptld.qwest.net) (Ping timeout: 268 seconds) |
| 2021-04-15 06:05:25 | × | kristijonas quits (~kristijon@78-56-32-39.static.zebra.lt) (Remote host closed the connection) |
| 2021-04-15 06:07:34 | → | koz joins (~koz@121.99.240.58) |
| 2021-04-15 06:09:35 | → | elliott_ joins (~elliott_@pool-108-18-30-46.washdc.fios.verizon.net) |
| 2021-04-15 06:12:10 | → | werneta joins (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) |
| 2021-04-15 06:13:56 | × | DTZUZU quits (~DTZUZO@205.ip-149-56-132.net) (Read error: Connection reset by peer) |
| 2021-04-15 06:14:11 | × | MrMobius quits (~MrMobius@208.58.206.154) (Ping timeout: 246 seconds) |
| 2021-04-15 06:22:09 | → | ddellacosta joins (ddellacost@gateway/vpn/mullvad/ddellacosta) |
| 2021-04-15 06:26:26 | × | ddellacosta quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 246 seconds) |
| 2021-04-15 06:27:47 | → | syntactic_sugar joins (~syntactic@c-67-169-78-228.hsd1.ca.comcast.net) |
| 2021-04-15 06:27:50 | → | MrMobius joins (~MrMobius@208.58.206.154) |
| 2021-04-15 06:30:42 | → | DTZUZU joins (~DTZUZO@205.ip-149-56-132.net) |
| 2021-04-15 06:36:33 | × | MrMobius quits (~MrMobius@208.58.206.154) (Ping timeout: 240 seconds) |
| 2021-04-15 06:37:51 | × | lambdaman quits (~lambdaman@s66-183-152-156.bc.hsia.telus.net) (Remote host closed the connection) |
All times are in UTC.