GetShopTV / swagger2

Swagger 2.0 data model.
http://hackage.haskell.org/package/swagger2
BSD 3-Clause "New" or "Revised" License
74 stars 59 forks source link

Doctest failure on powerpc64 #220

Open r-burns opened 4 years ago

r-burns commented 4 years ago

I'm running into this error during doctests:

doctests: loadObj "/nix/store/lzvinhlmw6l0ywb68zazzxsd3jcx6cm9-ghc-8.10.2/lib/ghc-8.10.2/ghc-prim-0.6.1/HSghc-prim-0.6.1.o": failed

I suspect this is due to lack of RTS support on ppc64, if I understand this warning correctly:

Test suite doctests: RUNNING...
doctests: /nix/store/lzvinhlmw6l0ywb68zazzxsd3jcx6cm9-ghc-8.10.2/lib/ghc-8.10.2/ghc-prim-0.6.1/HSghc-prim-0.6.1.o: RTS linker not implemented on PowerPC 64-bit
doctests: /nix/store/lzvinhlmw6l0ywb68zazzxsd3jcx6cm9-ghc-8.10.2/lib/ghc-8.10.2/ghc-prim-0.6.1/HSghc-prim-0.6.1.o: RTS linker not implemented on PowerPC 64-bit

The other tests seem to pass okay, and I haven't run into issues with other Haskell packages that depend on swagger2, so maybe this test should be skipped on platforms without RTS support?

Full test log:

``` Test suite doctests: RUNNING... doctests: /nix/store/lzvinhlmw6l0ywb68zazzxsd3jcx6cm9-ghc-8.10.2/lib/ghc-8.10.2/ghc-prim-0.6.1/HSghc-prim-0.6.1.o: RTS linker not implemented on PowerPC 64-bit doctests: /nix/store/lzvinhlmw6l0ywb68zazzxsd3jcx6cm9-ghc-8.10.2/lib/ghc-8.10.2/ghc-prim-0.6.1/HSghc-prim-0.6.1.o: RTS linker not implemented on PowerPC 64-bit -i -i/build/swagger2-2.6/dist/build/autogen -i/build/swagger2-2.6/dist/build -i/build/swagger2-2.6/src -I/build/swagger2-2.6/include -I/nix/store/c1a4g5c69w0rlnq1bflzhsysf8x7zj1j-llvm-9.0.1/include -I/nix/store/9yp4kyi3ygyf55a5b45253mx5fd6ay9h-ncurses-6.2-dev/include -I/nix/store/97iajgn0rq9mikjph2n8rpmhd7w3m35y-zlib-1.2.11-dev/include -package-env=- -hide-all-packages -no-user-package-db -package-db=/build/package.conf.d -package-db=dist/package.conf.inplace -optP-include -optPdist/build/autogen/cabal_macros.h -package-id=QuickCheck-2.13.2-4gLRjCINU9m3MmUBJ8Cxoy -package-id=aeson-1.5.4.1-BxeWCjhJZGmHTpcigo9ZBt -package-id=aeson-pretty-0.8.8-3fccLAOfUbeKyKBlJlc3ww -package-id=base-4.14.1.0 -package-id=base-compat-batteries-0.11.2-KXHto6wlbC01s8H6mqYNXi -package-id=bytestring-0.10.10.0 -package-id=containers-0.6.2.1 -package-id=cookie-0.4.5-BpwBxWsvWVN23NAPb8rU4p -package-id=generics-sop-0.5.1.0-8CfTboxsDhYK51yAU7ua8n -package-id=hashable-1.3.0.0-KH9q12ljvB8Jwn5qj2065F -package-id=http-media-0.8.0.0-CKB9YDg6GaL4KjC5U1UdNU -package-id=insert-ordered-containers-0.2.3.1-7neRpdxPXmNAEnoZKkpr1G -package-id=lens-4.19.2-4ybomIPNZcdDS74J09luw4 -package-id=mtl-2.2.2 -package-id=network-3.1.1.1-34MHHHWpXjS4yCHcPyn98x -package-id=optics-core-0.3.0.1-BMRC4TZxLueHQKDtrcmNn -package-id=optics-th-0.3.0.2-ANTrpOMlkVI4m7RQL7qgL2 -package-id=scientific-0.3.6.2-KC0S1MXBysX13jtl0dG4F6 -package-id=template-haskell-2.16.0.0 -package-id=text-1.2.3.2 -package-id=time-1.9.3 -package-id=transformers-0.5.6.2 -package-id=transformers-compat-0.6.6-5ZJJ9POl5DGLIWTn4Z8HjM -package-id=unordered-containers-0.2.13.0-62ybdAIVNr52Q64cy7y6VZ -package-id=uuid-types-1.0.3-JHw82GI3RQL71N2c4ABHiB -package-id=vector-0.12.1.2-4Uaau56BS6oFGajRVnmlgx -package-id=Glob-0.10.1-JpmzJCEaUy6DsHfKa3sAaD -package-id=doctest-0.16.3-5BJw05GVeUjFzYvktBEgAq Data.Swagger Data.Swagger.Declare Data.Swagger.Lens Data.Swagger.Operation Data.Swagger.Optics Data.Swagger.ParamSchema Data.Swagger.Schema Data.Swagger.Schema.Generator Data.Swagger.Schema.Validation Data.Swagger.SchemaOptions Data.Swagger.Internal Data.Swagger.Internal.Schema Data.Swagger.Internal.Schema.Validation Data.Swagger.Internal.ParamSchema Data.Swagger.Internal.Utils Data.Swagger.Internal.AesonUtils Data.Swagger.Internal.TypeShape doctests: loadObj "/nix/store/lzvinhlmw6l0ywb68zazzxsd3jcx6cm9-ghc-8.10.2/lib/ghc-8.10.2/ghc-prim-0.6.1/HSghc-prim-0.6.1.o": failed Test suite doctests: FAIL Test suite logged to: dist/test/swagger2-2.6-doctests.log ```