Resolving dependencies... Configuring portaudio-0.2.3... Building portaudio-0.2.3... Failed to install portaudio-0.2.3 Build log ( /home/builder/.cabal/logs/portaudio-0.2.3.log ): cabal: Entering directory '/tmp/cabal-tmp-9873/portaudio-0.2.3' Configuring portaudio-0.2.3... Building portaudio-0.2.3... Preprocessing library portaudio-0.2.3... In file included from dist/build/Sound/PortAudio/Base_hsc_make.c:1:0: Base.hsc: In function ‘main’: Base.hsc:115:48: error: ‘paNotInitialized’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:115:48: note: each undeclared identifier is reported only once for each function it appears in /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:118:56: error: ‘paUnanticipatedHostError’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:127:47: error: ‘paInvalidDevice’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:163:71: error: ‘paIncompatibleHostApiSpecificStreamInfo’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:166:49: error: ‘paStreamIsStopped’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:169:52: error: ‘paStreamIsNotStopped’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:172:49: error: ‘paInputOverflowed’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:175:51: error: ‘paOutputUnderflowed’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:178:49: error: ‘paHostApiNotFound’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:181:48: error: ‘paInvalidHostApi’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:184:63: error: ‘paCanNotReadFromACallbackStream’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:187:62: error: ‘paCanNotWriteToACallbackStream’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:190:66: error: ‘paCanNotReadFromAnOutputOnlyStream’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:193:64: error: ‘paCanNotWriteToAnInputOnlyStream’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:196:59: error: ‘paIncompatibleStreamHostApi’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:199:46: error: ‘paBadBufferPtr’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:145:47: error: ‘paInDevelopment’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:148:45: error: ‘paDirectSound’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:151:37: error: ‘paMME’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:154:38: error: ‘paASIO’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:157:46: error: ‘paSoundManager’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:160:43: error: ‘paCoreAudio’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:163:37: error: ‘paOSS’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:166:38: error: ‘paALSA’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:169:36: error: ‘paAL’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:172:38: error: ‘paBeOS’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:175:39: error: ‘paWDMKS’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:178:38: error: ‘paJACK’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:181:40: error: ‘paWASAPI’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:184:49: error: ‘paAudioScienceHPI’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:165:71: error: ‘paUseHostApiSpecificDeviceSpecification’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:188:48: error: ‘paNonInterleaved’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:187:48: error: ‘paNeverDropInput’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:190:71: error: ‘paPrimeOutputBuffersUsingStreamCallback’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:187:48: error: ‘paInputUnderflow’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:190:47: error: ‘paInputOverflow’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:193:49: error: ‘paOutputUnderflow’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:196:48: error: ‘paOutputOverflow’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:199:47: error: ‘paPrimingOutput’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:195:42: error: ‘paContinue’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:198:42: error: ‘paComplete’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:201:39: error: ‘paAbort’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:204:16: error: ‘paFormatIsSupported’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ Base.hsc:207:16: error: ‘paFramesPerBufferUnspecified’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ Base.hsc:408:23: error: ‘PaHostApiInfo’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ In file included from /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:4:0, from dist/build/Sound/PortAudio/Base_hsc_make.c:1: Base.hsc:411:15: error: expected specifier-qualifier-list before ‘PaHostApiInfo’ Base.hsc:411:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:412:15: error: expected specifier-qualifier-list before ‘PaHostApiInfo’ Base.hsc:412:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:413:14: error: expected specifier-qualifier-list before ‘PaHostApiInfo’ Base.hsc:413:5: note: in expansion of macro ‘hsc_ptr’ Base.hsc:414:15: error: expected specifier-qualifier-list before ‘PaHostApiInfo’ Base.hsc:414:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:415:15: error: expected specifier-qualifier-list before ‘PaHostApiInfo’ Base.hsc:415:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:416:15: error: expected specifier-qualifier-list before ‘PaHostApiInfo’ Base.hsc:416:5: note: in expansion of macro ‘hsc_peek’ In file included from dist/build/Sound/PortAudio/Base_hsc_make.c:1:0: Base.hsc:428:23: error: ‘PaHostErrorInfo’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ In file included from /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:4:0, from dist/build/Sound/PortAudio/Base_hsc_make.c:1: Base.hsc:431:15: error: expected specifier-qualifier-list before ‘PaHostErrorInfo’ Base.hsc:431:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:432:15: error: expected specifier-qualifier-list before ‘PaHostErrorInfo’ Base.hsc:432:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:433:14: error: expected specifier-qualifier-list before ‘PaHostErrorInfo’ Base.hsc:433:5: note: in expansion of macro ‘hsc_ptr’ /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:72:24: error: ‘PaDeviceInfo’ has no member named ‘hostApi’ (long) offsetof (t, f)); ^ Base.hsc:448:5: note: in expansion of macro ‘hsc_peek’ /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:72:24: error: ‘PaDeviceInfo’ has no member named ‘defaultLowInputLatency’ (long) offsetof (t, f)); ^ Base.hsc:451:5: note: in expansion of macro ‘hsc_peek’ /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:72:24: error: ‘PaDeviceInfo’ has no member named ‘defaultLowOutputLatency’ (long) offsetof (t, f)); ^ Base.hsc:452:5: note: in expansion of macro ‘hsc_peek’ /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:72:24: error: ‘PaDeviceInfo’ has no member named ‘defaultHighInputLatency’ (long) offsetof (t, f)); ^ Base.hsc:453:5: note: in expansion of macro ‘hsc_peek’ /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:72:24: error: ‘PaDeviceInfo’ has no member named ‘defaultHighOutputLatency’ (long) offsetof (t, f)); ^ Base.hsc:454:5: note: in expansion of macro ‘hsc_peek’ /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:72:24: error: ‘PaDeviceInfo’ has no member named ‘defaultSampleRate’ (long) offsetof (t, f)); ^ Base.hsc:455:5: note: in expansion of macro ‘hsc_peek’ In file included from dist/build/Sound/PortAudio/Base_hsc_make.c:1:0: Base.hsc:471:23: error: ‘PaStreamParameters’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ In file included from /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:4:0, from dist/build/Sound/PortAudio/Base_hsc_make.c:1: Base.hsc:474:15: error: expected specifier-qualifier-list before ‘PaStreamParameters’ Base.hsc:474:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:475:15: error: expected specifier-qualifier-list before ‘PaStreamParameters’ Base.hsc:475:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:476:15: error: expected specifier-qualifier-list before ‘PaStreamParameters’ Base.hsc:476:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:477:15: error: expected specifier-qualifier-list before ‘PaStreamParameters’ Base.hsc:477:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:478:15: error: expected specifier-qualifier-list before ‘PaStreamParameters’ Base.hsc:478:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:487:15: error: expected specifier-qualifier-list before ‘PaStreamParameters’ Base.hsc:487:5: note: in expansion of macro ‘hsc_poke’ Base.hsc:488:15: error: expected specifier-qualifier-list before ‘PaStreamParameters’ Base.hsc:488:5: note: in expansion of macro ‘hsc_poke’ Base.hsc:489:15: error: expected specifier-qualifier-list before ‘PaStreamParameters’ Base.hsc:489:5: note: in expansion of macro ‘hsc_poke’ Base.hsc:490:15: error: expected specifier-qualifier-list before ‘PaStreamParameters’ Base.hsc:490:5: note: in expansion of macro ‘hsc_poke’ Base.hsc:491:15: error: expected specifier-qualifier-list before ‘PaStreamParameters’ Base.hsc:491:5: note: in expansion of macro ‘hsc_poke’ In file included from dist/build/Sound/PortAudio/Base_hsc_make.c:1:0: Base.hsc:494:23: error: ‘PaStreamCallbackTimeInfo’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ In file included from /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:4:0, from dist/build/Sound/PortAudio/Base_hsc_make.c:1: Base.hsc:497:15: error: expected specifier-qualifier-list before ‘PaStreamCallbackTimeInfo’ Base.hsc:497:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:498:15: error: expected specifier-qualifier-list before ‘PaStreamCallbackTimeInfo’ Base.hsc:498:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:499:15: error: expected specifier-qualifier-list before ‘PaStreamCallbackTimeInfo’ Base.hsc:499:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:506:15: error: expected specifier-qualifier-list before ‘PaStreamCallbackTimeInfo’ Base.hsc:506:5: note: in expansion of macro ‘hsc_poke’ Base.hsc:507:15: error: expected specifier-qualifier-list before ‘PaStreamCallbackTimeInfo’ Base.hsc:507:5: note: in expansion of macro ‘hsc_poke’ Base.hsc:508:15: error: expected specifier-qualifier-list before ‘PaStreamCallbackTimeInfo’ Base.hsc:508:5: note: in expansion of macro ‘hsc_poke’ In file included from dist/build/Sound/PortAudio/Base_hsc_make.c:1:0: Base.hsc:511:23: error: ‘PaStreamInfo’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:35:10: note: in definition of macro ‘hsc_const’ if ((x) < 0) \ ^ In file included from /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:4:0, from dist/build/Sound/PortAudio/Base_hsc_make.c:1: Base.hsc:514:15: error: expected specifier-qualifier-list before ‘PaStreamInfo’ Base.hsc:514:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:515:15: error: expected specifier-qualifier-list before ‘PaStreamInfo’ Base.hsc:515:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:516:15: error: expected specifier-qualifier-list before ‘PaStreamInfo’ Base.hsc:516:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:517:15: error: expected specifier-qualifier-list before ‘PaStreamInfo’ Base.hsc:517:5: note: in expansion of macro ‘hsc_peek’ Base.hsc:525:15: error: expected specifier-qualifier-list before ‘PaStreamInfo’ Base.hsc:525:5: note: in expansion of macro ‘hsc_poke’ Base.hsc:526:15: error: expected specifier-qualifier-list before ‘PaStreamInfo’ Base.hsc:526:5: note: in expansion of macro ‘hsc_poke’ Base.hsc:527:15: error: expected specifier-qualifier-list before ‘PaStreamInfo’ Base.hsc:527:5: note: in expansion of macro ‘hsc_poke’ Base.hsc:528:15: error: expected specifier-qualifier-list before ‘PaStreamInfo’ Base.hsc:528:5: note: in expansion of macro ‘hsc_poke’ compiling dist/build/Sound/PortAudio/Base_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/Sound/PortAudio/Base_hsc_make.c -o dist/build/Sound/PortAudio/Base_hsc_make.o -fno-stack-protector -fno-stack-protector -D__GLASGOW_HASKELL__=800 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/base-4.9.0.0/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/integer-gmp-1.0.0.1/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/include/ cabal: Leaving directory '/tmp/cabal-tmp-9873/portaudio-0.2.3' cabal: Error: some packages failed to install: portaudio-0.2.3 failed during the building phase. The exception was: ExitFailure 1