Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed cabal install #436

Open
foxyseta opened this issue Nov 10, 2024 · 0 comments
Open

Failed cabal install #436

foxyseta opened this issue Nov 10, 2024 · 0 comments

Comments

@foxyseta
Copy link

Cabal is unable to build hoogle on my machine via cabal install hoogle right now. Could this be due to me being on a musl system? I have gcompat, but that does not seem to help.

Resolving dependencies...
Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
 - data-default-class-0.2.0.0 (lib) (requires download & build)
 - tls-2.0.6 (lib) (requires build)
 - cookie-0.5.0 (lib) (requires build)
 - tls-session-manager-0.0.7 (lib) (requires build)
 - crypton-connection-0.3.2 (lib) (requires build)
 - http-client-0.7.17 (lib) (requires build)
 - warp-tls-3.4.9 (lib) (requires build)
 - http-client-tls-0.3.6.4 (lib) (requires build)
 - http-conduit-2.3.9.1 (lib) (requires build)
 - hoogle-5.0.18.4 (lib) (requires build)
 - hoogle-5.0.18.4 (exe:hoogle) (requires build)
Downloading  data-default-class-0.2.0.0
Downloaded   data-default-class-0.2.0.0
Starting     data-default-class-0.2.0.0 (lib)
Building     data-default-class-0.2.0.0 (lib)
Installing   data-default-class-0.2.0.0 (lib)
Completed    data-default-class-0.2.0.0 (lib)
Starting     cookie-0.5.0 (lib)
Starting     tls-2.0.6 (lib)
Building     cookie-0.5.0 (lib)
Building     tls-2.0.6 (lib)
Installing   cookie-0.5.0 (lib)
Completed    cookie-0.5.0 (lib)
Starting     http-client-0.7.17 (lib)
Building     http-client-0.7.17 (lib)
Installing   http-client-0.7.17 (lib)
Completed    http-client-0.7.17 (lib)
Installing   tls-2.0.6 (lib)
Completed    tls-2.0.6 (lib)
Starting     tls-session-manager-0.0.7 (lib)
Starting     crypton-connection-0.3.2 (lib)
Building     tls-session-manager-0.0.7 (lib)
Building     crypton-connection-0.3.2 (lib)
Installing   tls-session-manager-0.0.7 (lib)
Installing   crypton-connection-0.3.2 (lib)
Completed    tls-session-manager-0.0.7 (lib)
Starting     warp-tls-3.4.9 (lib)
Completed    crypton-connection-0.3.2 (lib)
Starting     http-client-tls-0.3.6.4 (lib)
Building     warp-tls-3.4.9 (lib)
Building     http-client-tls-0.3.6.4 (lib)
Installing   warp-tls-3.4.9 (lib)
Installing   http-client-tls-0.3.6.4 (lib)
Completed    warp-tls-3.4.9 (lib)
Completed    http-client-tls-0.3.6.4 (lib)
Starting     http-conduit-2.3.9.1 (lib)
Building     http-conduit-2.3.9.1 (lib)
Installing   http-conduit-2.3.9.1 (lib)
Completed    http-conduit-2.3.9.1 (lib)
Starting     hoogle-5.0.18.4 (lib)
Building     hoogle-5.0.18.4 (lib)

Failed to build hoogle-5.0.18.4.
Build log (
/home/foxy/.cache/cabal/logs/ghc-9.4.8/hoogle-5.0.18.4-a5306a7bc7e4aaaaedce053d1e44ace714a177609070a8f88ac402b2198d41de.log
):
Configuring library for hoogle-5.0.18.4..
Preprocessing library for hoogle-5.0.18.4..
Building library for hoogle-5.0.18.4..
[ 1 of 28] Compiling General.Str      ( src/General/Str.hs, dist/build/General/Str.o, dist/build/General/Str.dyn_o )
[ 2 of 28] Compiling General.IString  ( src/General/IString.hs, dist/build/General/IString.o, dist/build/General/IString.dyn_o )
[ 3 of 28] Compiling General.Conduit  ( src/General/Conduit.hs, dist/build/General/Conduit.o, dist/build/General/Conduit.dyn_o )
[ 4 of 28] Compiling General.Template ( src/General/Template.hs, dist/build/General/Template.o, dist/build/General/Template.dyn_o )
[ 5 of 28] Compiling General.Util     ( src/General/Util.hs, dist/build/General/Util.o, dist/build/General/Util.dyn_o )
[ 6 of 28] Compiling General.Timing   ( src/General/Timing.hs, dist/build/General/Timing.o, dist/build/General/Timing.dyn_o )
[ 7 of 28] Compiling General.Log      ( src/General/Log.hs, dist/build/General/Log.o, dist/build/General/Log.dyn_o )
[ 8 of 28] Compiling Input.Download   ( src/Input/Download.hs, dist/build/Input/Download.o, dist/build/Input/Download.dyn_o )
[ 9 of 28] Compiling Input.Item       ( src/Input/Item.hs, dist/build/Input/Item.o, dist/build/Input/Item.dyn_o )
[10 of 28] Compiling Input.Haddock    ( src/Input/Haddock.hs, dist/build/Input/Haddock.o, dist/build/Input/Haddock.dyn_o )
[11 of 28] Compiling Input.Set        ( src/Input/Set.hs, dist/build/Input/Set.o, dist/build/Input/Set.dyn_o )
[12 of 28] Compiling Paths_hoogle     ( dist/build/autogen/Paths_hoogle.hs, dist/build/Paths_hoogle.o, dist/build/Paths_hoogle.dyn_o )
[13 of 28] Compiling Input.Settings   ( src/Input/Settings.hs, dist/build/Input/Settings.o, dist/build/Input/Settings.dyn_o )
[14 of 28] Compiling Input.Reorder    ( src/Input/Reorder.hs, dist/build/Input/Reorder.o, dist/build/Input/Reorder.dyn_o )
[15 of 28] Compiling Input.Cabal      ( src/Input/Cabal.hs, dist/build/Input/Cabal.o, dist/build/Input/Cabal.dyn_o )
[16 of 28] Compiling General.Store    ( src/General/Store.hs, dist/build/General/Store.o, dist/build/General/Store.dyn_o )
[17 of 28] Compiling Output.Types     ( src/Output/Types.hs, dist/build/Output/Types.o, dist/build/Output/Types.dyn_o )
[18 of 28] Compiling Output.Names     ( src/Output/Names.hs, dist/build/Output/Names.o, dist/build/Output/Names.dyn_o )
[19 of 28] Compiling Output.Items     ( src/Output/Items.hs, dist/build/Output/Items.o, dist/build/Output/Items.dyn_o )
[20 of 28] Compiling Action.CmdLine   ( src/Action/CmdLine.hs, dist/build/Action/CmdLine.o, dist/build/Action/CmdLine.dyn_o )
[21 of 28] Compiling General.Web      ( src/General/Web.hs, dist/build/General/Web.o, dist/build/General/Web.dyn_o )
[22 of 28] Compiling Query            ( src/Query.hs, dist/build/Query.o, dist/build/Query.dyn_o )
[23 of 28] Compiling Output.Tags      ( src/Output/Tags.hs, dist/build/Output/Tags.o, dist/build/Output/Tags.dyn_o )
[24 of 28] Compiling Action.Generate  ( src/Action/Generate.hs, dist/build/Action/Generate.o, dist/build/Action/Generate.dyn_o )
[25 of 28] Compiling Action.Search    ( src/Action/Search.hs, dist/build/Action/Search.o, dist/build/Action/Search.dyn_o )
[26 of 28] Compiling Action.Server    ( src/Action/Server.hs, dist/build/Action/Server.o, dist/build/Action/Server.dyn_o )
[27 of 28] Compiling Action.Test      ( src/Action/Test.hs, dist/build/Action/Test.o, dist/build/Action/Test.dyn_o )
[28 of 28] Compiling Hoogle           ( src/Hoogle.hs, dist/build/Hoogle.o, dist/build/Hoogle.dyn_o )

In file included from cbits/text_search.c:2:0: error:
/usr/include/fortify/string.h: In function 'strncat':

/usr/include/fortify/string.h:297:36: error:
     error: implicit declaration of function 'strnlen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
      297 |                 __fh_size_t __sl = strnlen(__s, __n);
          |                                    ^~~~~~~
          |                                    strlen
    |
297 |                 __fh_size_t __sl = strnlen(__s, __n);
    |                                    ^
`gcc' failed in phase `C Compiler'. (Exit code: 1)
Error: cabal: Failed to build hoogle-5.0.18.4 (which is required by exe:hoogle
from hoogle-5.0.18.4). See the build log above for details.

Originally posted by @foxyseta in #435 (comment)

@foxyseta foxyseta changed the title My bad! Here is the actual error message now: Failed cabal install Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant