hue-dashboard icon indicating copy to clipboard operation
hue-dashboard copied to clipboard

'stack build' fail on Ubuntu 19.10

Open daveman1010221 opened this issue 5 years ago • 4 comments

Not sure what to do with the linker error, it looks like maybe it wants some ENV vars set?

Building all executables for hue-dashboard' once. After a successful build of all of them, only specified executables will be rebuilt. hue-dashboard-0.1.0.0: configure (exe) Configuring hue-dashboard-0.1.0.0... hue-dashboard-0.1.0.0: build (exe) Preprocessing executable 'hue-dashboard' for hue-dashboard-0.1.0.0... Linking .stack-work/dist/x86_64-linux-tinfo6/Cabal-1.22.5.0/build/hue-dashboard/hue-dashboard ... /usr/bin/ld: /home/me/.stack/snapshots/x86_64-linux-tinfo6/lts-5.15/7.10.3/lib/x86_64-linux-ghc-7.10.3/unix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe/libHSunix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe-ghc7.10.3.so: undefined reference to major' /usr/bin/ld: /home/me/.stack/snapshots/x86_64-linux-tinfo6/lts-5.15/7.10.3/lib/x86_64-linux-ghc-7.10.3/unix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe/libHSunix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe-ghc7.10.3.so: undefined reference to makedev' /usr/bin/ld: /home/me/.stack/snapshots/x86_64-linux-tinfo6/lts-5.15/7.10.3/lib/x86_64-linux-ghc-7.10.3/unix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe/libHSunix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe-ghc7.10.3.so: undefined reference to `minor' collect2: error: ld returned 1 exit status

-- While building custom Setup.hs for package hue-dashboard-0.1.0.0 using: /home/me/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_1.22.5.0_ghc-7.10.3 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-1.22.5.0 build exe:hue-dashboard --ghc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1`

daveman1010221 avatar Jan 09 '20 15:01 daveman1010221

Same here for building on Arch Linux.

Noir- avatar Mar 28 '20 18:03 Noir-

Same on Xubuntu 20.04.

TiZ-HugLife avatar Nov 22 '20 23:11 TiZ-HugLife

I've the same problem. :/

tyalie avatar Jan 20 '21 18:01 tyalie

Getting similar issues with Ubuntu 18 LTS. Newest stack installed. End of build log as follows:

Linking .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/hue-dashboard/hue-dashboard ...
/disk/shome/michael/.stack/snapshots/x86_64-linux/4c3c3aa75912a2adf36e0b2098c23f7fb96a6b38135113ca07828155e889166d/7.10.3/lib/x86_64-linux-ghc-7.10.3/unix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe/libHSunix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe-ghc7.10.3.so: undefined reference to `major'
/disk/shome/michael/.stack/snapshots/x86_64-linux/4c3c3aa75912a2adf36e0b2098c23f7fb96a6b38135113ca07828155e889166d/7.10.3/lib/x86_64-linux-ghc-7.10.3/unix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe/libHSunix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe-ghc7.10.3.so: undefined reference to `makedev'
/disk/shome/michael/.stack/snapshots/x86_64-linux/4c3c3aa75912a2adf36e0b2098c23f7fb96a6b38135113ca07828155e889166d/7.10.3/lib/x86_64-linux-ghc-7.10.3/unix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe/libHSunix-compat-0.4.1.4-Km8uiabmElX5mrb8D4Fywe-ghc7.10.3.so: undefined reference to `minor'
collect2: error: ld returned 1 exit status
                               
Warning: The following modules should be added to exposed-modules or other-modules in /home/kmichael/hue-dashboard/hue-dashboard.cabal:
             - In exe:hue-dashboard:
                 App
                 AppDefs
                 BackgroundProcessing
                 CmdLineOptions
                 HueBroker
                 HueJSON
                 HueREST
                 HueSetup
                 LightColor
                 PersistConfig
                 ProcFS
                 Trace
                 Util
                 WebUI
                 WebUIHelpers
                 WebUIREST
                 WebUITileBuilding
                 WebUITileBuildingScenes
                 WebUITileBuildingSchedules
         
         Missing modules in the cabal file are likely to cause undefined reference errors from the linker, along with other problems.
         ```

mjeveritt avatar Apr 22 '22 19:04 mjeveritt