I am trying to run stack build and get the following errors:
bartosz $ stack setup
The GHC located at /Users/evanzamir/.stack/programs/x86_64-osx/ghc-8.4.4/bin/ghc failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Received ExitFailure 1 when running
Raw command: /Users/evanzamir/.stack/programs/x86_64-osx/ghc-8.4.4/bin/ghc /private/var/folders/rj/vrrtj8094qb8gf4ky_r_mxq80000gn/T/stack-sanity-check4255/Main.hs -no-user-package-db
Run from: /private/var/folders/rj/vrrtj8094qb8gf4ky_r_mxq80000gn/T/stack-sanity-check4255/
Standard output:
[1 of 1] Compiling Main ( /private/var/folders/rj/vrrtj8094qb8gf4ky_r_mxq80000gn/T/stack-sanity-check4255/Main.hs, /private/var/folders/rj/vrrtj8094qb8gf4ky_r_mxq80000gn/T/stack-sanity-check4255/Main.o )
Linking /private/var/folders/rj/vrrtj8094qb8gf4ky_r_mxq80000gn/T/stack-sanity-check4255/Main ...
Standard error:
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.11.1.0.a(iconv.o)
(maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncoding1_closure, _base_GHCziIOziEncodingziIconv_iconvEncoding1_info , _base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding15_info , _base_GHCziIOziEncodingziIconv_iconvEncoding4_info , _base_GHCziIOziEncodingziIconv_iconvEncoding7_info , _base_GHCziIOziEncodingziIconv_iconvEncoding6_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding6_info , _base_GHCziIOziEncodingziIconv_iconvEncoding8_info , _hs_iconv_open , _base_GHCziIOziEncodingziIconv_iconvEncoding12_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding9_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _base_GHCziIOziEncodingziIconv_iconvEncoding12_info , _base_GHCziIOziEncodingziIconv_iconvEncoding13_info , _base_GHCziIOziEncodingziIconv_iconvEncoding11_info , _base_GHCziIOziEncodingziIconv_iconvEncoding_info , _base_GHCziIOziEncodingziIconv_iconvEncoding7_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding13_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding2_info , _base_GHCziIOziEncodingziIconv_iconvEncoding11_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding14_bytes , _base_GHCziIOziEncodingziIconv_iconvEncoding15_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding3_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding8_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding10_bytes , _hs_iconv_close , _hs_iconv , _base_GHCziIOziEncodingziIconv_iconvEncoding5_closure )
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.11.1.0.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.11.1.0.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.11.1.0.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`gcc' failed in phase `Linker'. (Exit code: 1)
Here is the output from stack path:
stack-root: /Users/evanzamir/.stack
project-root: /Users/evanzamir/Code/Haskell/bartosz
config-location: /Users/evanzamir/Code/Haskell/bartosz/stack.yaml
bin-path: /Users/evanzamir/.stack/snapshots/x86_64-osx/lts-12.17/8.4.4/bin:/Users/evanzamir/.stack/compiler-tools/x86_64-osx/ghc-8.4.4/bin:/Users/evanzamir/.stack/programs/x86_64-osx/ghc-8.4.4/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin/stack:/usr/local/smlnj-110.77/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/evanzamir/.rvm/gems/ruby-1.9.3-p327/bin:/Users/evanzamir/.rvm/gems/ruby-1.9.3-p327#global/bin:/Users/evanzamir/.rvm/rubies/ruby-1.9.3-p327/bin:/Users/evanzamir/.rvm/bin:/usr/local/smlnj-110.77/bin:/opt/local/bin:/opt/local/sbin:/usr/local/share/npm/bin/jitsu :/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/sbin:/usr/local/share/npm/bin:/usr/local/sbin:/usr/local/share/npm/bin
programs: /Users/evanzamir/.stack/programs/x86_64-osx
compiler-exe: /Users/evanzamir/.stack/programs/x86_64-osx/ghc-8.4.4/bin/ghc
compiler-bin: /Users/evanzamir/.stack/programs/x86_64-osx/ghc-8.4.4/bin
compiler-tools-bin: /Users/evanzamir/.stack/compiler-tools/x86_64-osx/ghc-8.4.4/bin
local-bin: /Users/evanzamir/.local/bin
extra-include-dirs:
extra-library-dirs:
snapshot-pkg-db: /Users/evanzamir/.stack/snapshots/x86_64-osx/lts-12.17/8.4.4/pkgdb
local-pkg-db: /Users/evanzamir/Code/Haskell/bartosz/.stack-work/install/x86_64-osx/lts-12.17/8.4.4/pkgdb
global-pkg-db: /Users/evanzamir/.stack/programs/x86_64-osx/ghc-8.4.4/lib/ghc-8.4.4/package.conf.d
ghc-package-path: /Users/evanzamir/Code/Haskell/bartosz/.stack-work/install/x86_64-osx/lts-12.17/8.4.4/pkgdb:/Users/evanzamir/.stack/snapshots/x86_64-osx/lts-12.17/8.4.4/pkgdb:/Users/evanzamir/.stack/programs/x86_64-osx/ghc-8.4.4/lib/ghc-8.4.4/package.conf.d
snapshot-install-root: /Users/evanzamir/.stack/snapshots/x86_64-osx/lts-12.17/8.4.4
local-install-root: /Users/evanzamir/Code/Haskell/bartosz/.stack-work/install/x86_64-osx/lts-12.17/8.4.4
snapshot-doc-root: /Users/evanzamir/.stack/snapshots/x86_64-osx/lts-12.17/8.4.4/doc
local-doc-root: /Users/evanzamir/Code/Haskell/bartosz/.stack-work/install/x86_64-osx/lts-12.17/8.4.4/doc
dist-dir: .stack-work/dist/x86_64-osx/Cabal-2.2.0.1
local-hpc-root: /Users/evanzamir/Code/Haskell/bartosz/.stack-work/install/x86_64-osx/lts-12.17/8.4.4/hpc
local-bin-path: /Users/evanzamir/.local/bin
ghc-paths: /Users/evanzamir/.stack/programs/x86_64-osx
Been trying to figure this out all day. I'm on OS X Mojave 14.1. I've tried installing stack using the script, Brew, directly from the binary, and even the Haskell Platform installer, and all are giving me errors.
Related
I followed instrucions from: https://files.ettus.com/manual/page_build_guide.html
I can't build and install uhd and .cpp files for uhd on my Debian. I have error after make command.
cmake .. is ok. The problem is with something called NEON I think.
Processor info:
cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 995.32
Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc08
CPU revision : 2
Hardware : Generic AM33XX (Flattened Device Tree)
Revision : 0000
Serial : 4219BBBK05E9
Release:
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Installation:
root#beaglebone:/home/debian/uhd/host/build# make
[ 2%] Built target uhd_rpclib
[ 2%] Built target uhd-resources
[ 3%] Building CXX object lib/CMakeFiles/uhd.dir/convert/convert_with_neon.cpp.o
In file included from /home/debian/uhd/host/lib/convert/convert_with_neon.cpp:10:
/usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h: In member function ‘virtual void __convert_fc32_1_sc16_item32_le_1_PRIORITY_SIMD::operator()(const input_type&, const output_type&, size_t)’:
/usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h:6740:1: error: inlining failed in call to always_inline ‘float32x4_t vdupq_n_f32(float32_t)’: target specific option mismatch
vdupq_n_f32 (float32_t __a)
^~~~~~~~~~~
/home/debian/uhd/host/lib/convert/convert_with_neon.cpp:27:33: note: called from here
float32x4_t Q0 = vdupq_n_f32(float(scale_factor));
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /home/debian/uhd/host/lib/convert/convert_with_neon.cpp:10:
/usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h:10844:1: error: inlining failed in call to always_inline ‘void vst1_s16(int16_t*, int16x4_t)’: target specific option mismatch
vst1_s16 (int16_t * __a, int16x4_t __b)
^~~~~~~~
/home/debian/uhd/host/lib/convert/convert_with_neon.cpp:50:17: note: called from here
vst1_s16((reinterpret_cast<int16_t*>(&output[i + 4])), D13);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/debian/uhd/host/lib/convert/convert_with_neon.cpp:10:
/usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h:7440:1: error: inlining failed in call to always_inline ‘int32x4_t vcvtq_s32_f32(float32x4_t)’: target specific option mismatch
vcvtq_s32_f32 (float32x4_t __a)
^~~~~~~~~~~~~
/home/debian/uhd/host/lib/convert/convert_with_neon.cpp:47:39: note: called from here
int32x4_t Q9 = vcvtq_s32_f32(Q8);
~~~~~~~~~~~~~^~~~
In file included from /home/debian/uhd/host/lib/convert/convert_with_neon.cpp:10:
/usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h:1172:1: error: inlining failed in call to always_inline ‘float32x4_t vmulq_f32(float32x4_t, float32x4_t)’: target specific option mismatch
vmulq_f32 (float32x4_t __a, float32x4_t __b)
^~~~~~~~~
/home/debian/uhd/host/lib/convert/convert_with_neon.cpp:46:35: note: called from here
float32x4_t Q8 = vmulq_f32(Q7, Q0);
~~~~~~~~~^~~~~~~~
In file included from /home/debian/uhd/host/lib/convert/convert_with_neon.cpp:10:
/usr/lib/gcc/arm-linux-gnueabihf/8/include/arm_neon.h:10392:1: error: inlining failed in call to always_inline ‘float32x4_t vld1q_f32(const float32_t*)’: target specific option mismatch
vld1q_f32 (const float32_t * __a)
^~~~~~~~~
/home/debian/uhd/host/lib/convert/convert_with_neon.cpp:29:36: note: called from here
float32x4_t Q1 = vld1q_f32(reinterpret_cast<const float*>(&input[i]));
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [lib/CMakeFiles/uhd.dir/build.make:502: lib/CMakeFiles/uhd.dir/convert/convert_with_neon.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:129: lib/CMakeFiles/uhd.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
What I can do now?
Edit file CMakeCache.txt located in uhd/host/build/.
//Use NEON SIMD instuctions, if applicable
NEON_SIMD_ENABLE:BOOL=OFF
Then use:
make
It solve the problem.
First the error messages:
$ stack build
Linking /Users/yuzhao/.stack/setup-exe-cache/x86_64-osx/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 ...
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
clang-5.0: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.11.1.0.a(iconv.o)
(maybe you meant: _base_GHCziIOziEncodingziIconv_iconvEncoding13_info, _base_GHCziIOziEncodingziIconv_iconvEncoding1_info , _base_GHCziIOziEncodingziIconv_iconvEncoding3_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding4_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding7_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding4_info , _base_GHCziIOziEncodingziIconv_iconvEncoding7_info , _base_GHCziIOziEncodingziIconv_iconvEncoding6_info , _base_GHCziIOziEncodingziIconv_iconvEncoding5_closure , _hs_iconv_open , _base_GHCziIOziEncodingziIconv_iconvEncoding9_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding15_info , _base_GHCziIOziEncodingziIconv_iconvEncoding_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding14_bytes , _hs_iconv_close , _base_GHCziIOziEncodingziIconv_iconvEncoding12_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding12_info , _base_GHCziIOziEncodingziIconv_iconvEncoding2_info , _base_GHCziIOziEncodingziIconv_iconvEncoding11_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding2_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding6_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding9_info , _base_GHCziIOziEncodingziIconv_iconvEncoding15_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding_info , _base_GHCziIOziEncodingziIconv_iconvEncoding8_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding8_info , _base_GHCziIOziEncodingziIconv_iconvEncoding13_closure , _base_GHCziIOziEncodingziIconv_iconvEncoding10_bytes , _base_GHCziIOziEncodingziIconv_iconvEncoding1_closure , _hs_iconv , _base_GHCziIOziEncodingziIconv_iconvEncoding11_info )
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.11.1.0.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.11.1.0.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.11.1.0.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
-- While building simple Setup.hs using:
/Users/yuzhao/.nix-profile/bin/ghc -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.2.0.1 /Users/yuzhao/.stack/setup-exe-src/setup-mPHDZzAJ.hs /Users/yuzhao/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /Users/yuzhao/.stack/setup-exe-cache/x86_64-osx/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4
Process exited with code: ExitFailure 1
I am using nix and I've found many other solutions to this error messages using Homebrew, not nix.
Also, according to stack docs, stack setup give me the same error messages.
Any ideas how to fix this?
I want to have a function in a Foo.Internal module that is used by other things in there, but it should also be exposed by the Foo module. When I reexport the function from Foo to use elsewhere I get linker errors. I am using stack to build the code, so it might be an issue there, or with cabal, not sure.
Minimal working example:
module Foo.Internal where
secrets = "stuff"
module Foo(secrets) where
import Foo.Internal (secrets)
module Main where
import Foo
main = putStrLn secrets
When I compile this with stack build I get
package-0.1.0.0: build
Preprocessing library package-0.1.0.0...
[1 of 2] Compiling Foo.Internal ( src/Foo/Internal.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Foo/Internal.o )
[2 of 2] Compiling Foo ( src/Foo.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Foo.o )
In-place registering package-0.1.0.0...
Preprocessing executable 'package-exe' for package-0.1.0.0...
Linking .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/package-exe/package-exe ...
.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/package-exe/package-exe-tmp/Main.o:(.text+0x26): undefined reference to `packazuEPdwTk5e5ZZOCOiVJMdOJ3P_FooziInternal_secrets_closure'
.stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/package-exe/package-exe-tmp/Main.o: In function `S2Re_srt':
(.data+0x40): undefined reference to `packazuEPdwTk5e5ZZOCOiVJMdOJ3P_FooziInternal_secrets_closure'
collect2: error: ld returned 1 exit status
i am using parrot Linux the latest version . i want to install/use a nano adapter (802.11n) USB
i tried several ways but i failed
tried 1
after trying this i found no other way to ask for help
the following error i am getting while using make && make install
└──╼ #sudo make && make install
make -C tools
make[1]: Entering directory '/home/ano/Downloads/linux/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/ano/Downloads/linux/tools'
/home/ano/Downloads/linux/tools/bin2h
cp -f os/linux/Makefile.6 /home/ano/Downloads/linux/os/linux/Makefile
make -C /lib/modules/4.1.8-parrot-686-pae/build SUBDIRS=/home/ano/Downloads/linux/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.1.8-parrot-686-pae'
CC [M] /home/ano/Downloads/linux/os/linux/../../os/linux/rt_profile.o
/home/ano/Downloads/linux/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/home/ano/Downloads/linux/os/linux/../../os/linux/rt_profile.c:331:16: warning: unused variable ‘pAd’ [-Wunused-variable]
RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)pAdSrc;
^
CC [M] /home/ano/Downloads/linux/os/linux/../../sta/assoc.o
CC [M] /home/ano/Downloads/linux/os/linux/../../sta/auth.o
CC [M] /home/ano/Downloads/linux/os/linux/../../sta/auth_rsp.o
CC [M] /home/ano/Downloads/linux/os/linux/../../sta/sync.o
/home/ano/Downloads/linux/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/home/ano/Downloads/linux/os/linux/../../sta/sync.c:2180:12: warning: passing argument 8 of ‘StaAddMacTableEntry’ from incompatible pointer type
ie_list,
^
In file included from /home/ano/Downloads/linux/include/rt_config.h:59:0,
from /home/ano/Downloads/linux/os/linux/../../sta/sync.c:28:
/home/ano/Downloads/linux/include/rtmp.h:7892:9: note: expected ‘struct IE_LISTS *’ but argument is of type ‘struct BCN_IE_LIST *’
BOOLEAN StaAddMacTableEntry(
^
CC [M] /home/ano/Downloads/linux/os/linux/../../sta/sanity.o
CC [M] /home/ano/Downloads/linux/os/linux/../../sta/rtmp_data.o
/home/ano/Downloads/linux/os/linux/../../sta/rtmp_data.c: In function ‘STAHandleRxDataFrame’:
/home/ano/Downloads/linux/os/linux/../../sta/rtmp_data.c:523:33: warning: passing argument 2 of ‘MacTableLookup’ from incompatible pointer type
pEntry = MacTableLookup(pAd, &pHeader->Addr2);
^
In file included from /home/ano/Downloads/linux/include/rt_config.h:59:0,
from /home/ano/Downloads/linux/os/linux/../../sta/rtmp_data.c:28:
/home/ano/Downloads/linux/include/rtmp.h:8429:18: note: expected ‘UCHAR *’ but argument is of type ‘UCHAR (*)[6]’
MAC_TABLE_ENTRY *MacTableLookup(RTMP_ADAPTER *pAd, UCHAR *pAddr);
^
CC [M] /home/ano/Downloads/linux/os/linux/../../sta/connect.o
CC [M] /home/ano/Downloads/linux/os/linux/../../sta/wpa.o
CC [M] /home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.o
/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlRF’:
/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.c:5306:7: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘LONG’ [-Wformat=]
sprintf(msg+strlen(msg), "BANK%d_R%02d:%02X ", bank_Id, rfId, rfValue);
^
/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.c:5359:27: warning: passing argument 2 of ‘RtmpDrvAllRFPrint’ from incompatible pointer type
RtmpDrvAllRFPrint(NULL, msg, strlen(msg));
^
In file included from /home/ano/Downloads/linux/include/rt_config.h:64:0,
from /home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.c:28:
/home/ano/Downloads/linux/include/rt_os_util.h:668:6: note: expected ‘UINT32 *’ but argument is of type ‘PSTRING’
VOID RtmpDrvAllRFPrint(
^
/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.c:5209:22: warning: unused variable ‘rf_bank’ [-Wunused-variable]
UCHAR regRF = 0, rf_bank = 0;
^
/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.c:5766:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
^
/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.c:5766:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
^
/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwgenie’:
/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.c:7610:13: warning: assignment from incompatible pointer type
eid_ptr = pAd->StaCfg.pWpaAssocIe;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/ano/Downloads/linux/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1384: recipe for target '_module_/home/ano/Downloads/linux/os/linux' failed
make[1]: *** [_module_/home/ano/Downloads/linux/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.1.8-parrot-686-pae'
Makefile:394: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
can one please check and help me on it ....
I got that error, too, on a fresh Debian installation, despite being able to make that driver flawlessly a few times before.
Some problems were gone when I edited the os/linux/config.mk file as per the README file included in the driver folder, but then, new ones occured, considering something about the DATE and TIME functions.
I found that the solution is to install package firmware-ralink that also contains drivers for your USB Wireless dongle.
On my Debian Jessie installation, it said that firmware-ralink package is now included in the firmware-non-free package.
Problems updating cabal-install v. 1.20.0.3
The following is what I made
C:\Windows\system32>cabal update
Downloading the latest package list from hackage.haskell.org
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install
C:\Windows\system32>cabal install cabal-install
Resolving dependencies...
Configuring network-2.6.0.2...
cabal: The package has a './configure' script. This requires a Unix
compatibility toolchain such as MinGW+MSYS or Cygwin.
Failed to install network-2.6.0.2
cabal: Error: some packages failed to install:
HTTP-4000.2.19 depends on network-2.6.0.2 which failed to install.
cabal-install-1.20.0.4 depends on network-2.6.0.2 which failed to install.
network-2.6.0.2 failed during the configure step. The exception was:
ExitFailure 1
C:\Windows\system32>cabal --v
cabal-install version 1.20.0.3
using version 1.20.0.2 of the Cabal library
After these messages I installed Cygwin64 and tried to reinstall "cabal-install", but nothing changed.
What can I do now? Thank you for your help.
CABAL INFO NETWORK
$ cabal info network
* network (library)
Synopsis: Low-level networking interface
Versions available: 2.3.2.0, 2.4.1.2, 2.4.2.1, 2.4.2.2, 2.4.2.3, 2.5.0.0,
2.6.0.0, 2.6.0.1, 2.6.0.2 (and 39 others)
Versions installed: 2.4.2.3, 2.6.0.2
Homepage: https://github.com/haskell/network
Bug reports: https://github.com/haskell/network/issues
Description: This package provides a low-level networking interface.
In network-2.6 the #Network.URI# module was split off into
its own package, network-uri-2.6. If you're using the
#Network.URI# module you can automatically get it from the
right package by adding this to your .cabal file:
> flag network-uri > description: Get Network.URI from the
network-uri package > default: True > > library > -- ... > if
flag(network-uri) > build-depends: network-uri >= 2.6,
network >= 2.6 > else > build-depends: network-uri < 2.6,
network < 2.6
That is, get the module from either network < 2.6 or from
network-uri >= 2.6.
Category: Network
License: BSD3
Maintainer: Johan Tibell <johan.tibell#gmail.com>
Source repo: git://github.com/haskell/network.git
Dependencies: base >=3 && <5, bytestring <0.11, unix >=2,
test-framework-hunit -any, test-framework -any, network -any,
HUnit -any, bytestring -any, base <5,
test-framework-hunit -any, test-framework -any, network -any,
HUnit -any, bytestring -any, base <5
Documentation: [ Not installed ]
Cached: Yes
Modules:
Network
Network.BSD
Network.Socket
Network.Socket.ByteString
Network.Socket.ByteString.Lazy
Network.Socket.Internal
Following the latest instructions i tried:
I tried:
C:\Windows\system32>cabal install cabal-install --constraint="network==2.4.2.3"
...
Linking dist\build\cabal\cabal.exe ...
Installing executable(s) in C:\Users\Alberto\AppData\Roaming\cabal\bin
Installed cabal-install-1.20.0.4
C:\Windows\system32>cabal --v
cabal-install version 1.20.0.4
using version 1.20.0.2 of the Cabal library
Instead with: cabal install cabal-install -v --constraint="network==2.6.0.2"
These are the last lines:
c:/program files/haskell platform/2014.2.0.0/mingw/bin/../lib/gcc/x86_64-w64-min
gw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid
operation
collect2: ld returned 1 exit status
Failed to install cabal-install-1.20.0.4
World file is already up to date.
cabal: Error: some packages failed to install:
cabal-install-1.20.0.4 failed during the building phase. The exception was:
ExitFailure 1
The following is the incomplete version of the verbose process. (Incomplete because the Command Prompt window is too little to contain all the lines.) And also the "Body" of this post is "limited to 30000 characters" and I entered 43408.
Linking...
C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc.exe --make -fbuilding-cabal
-package -O -static -outputdir dist\build\cabal\cabal-tmp -odir dist\build\cabal
\cabal-tmp -hidir dist\build\cabal\cabal-tmp -stubdir dist\build\cabal\cabal-tmp
-i -idist\build\cabal\cabal-tmp -i. -idist\build\autogen -Idist\build\autogen -
Idist\build\cabal\cabal-tmp -optP-DWIN32 -optP-include -optPdist\build\autogen\c
abal_macros.h -hide-all-packages -package-db dist\package.conf.inplace -package-
id Cabal-1.20.0.2-2d0d4b50a80873bd77d7619acdc39282 -package-id HTTP-4000.2.19-a3
b06338bfc05de6b2dff745ab78e8e2 -package-id Win32-2.3.0.2-698249828064ce7d3e73140
6aa0b6536 -package-id array-0.5.0.0-a620a6e52b09b01c2ee52fdc2f35ba14 -package-id
base-4.7.0.1-7c4827d45272c6220486aa798a981cbc -package-id bytestring-0.10.4.0-0
168d7fce99b3d6589c7684c734053d4 -package-id containers-0.5.5.1-08015588ba3fe884f
62b392b72b7a17f -package-id directory-1.2.1.0-8cccd8e1806d43153b63c8c02500965e -
package-id filepath-1.3.0.2-a4d1d9ee29199e7f421cb1e2eeca7b3c -package-id mtl-2.1
.3.1-045b529925f92141fbca5a09ccb76887 -package-id network-2.6.0.2-cd717cc95784d3
d2c843373d48659787 -package-id network-uri-2.6.0.1-474d71b66fbfc5e5890f880a23bc7
62f -package-id pretty-1.1.1.1-c695907dd1419865c9783baf249b36b0 -package-id proc
ess-1.2.0.0-8428b2db1fb32008b84b305e3dcf61f8 -package-id random-1.0.1.1-1c39aaa7
8f370b133a79ccf1ef25922b -package-id stm-2.4.2-6e8cfbcce8457ecf64e4555b5e253ae6
-package-id time-1.4.2-10261674b91c0791587926806ccad1bb -package-id zlib-0.5.4.1
-28702d80c2a2842f8db883ae46443522 -XHaskell98 .\Main.hs dist\build\cabal\cabal-t
mp\cbits/getnumcores.o -o dist\build\cabal\cabal.exe -Wall -fwarn-tabs -threaded
Linking dist\build\cabal\cabal.exe ...
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x26a6): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x2fae): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x300b): undefined reference to `initWin
Sock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x3156): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x393e): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x399b): undefined reference to `initWin
Sock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x3ade): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x4336): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x4393): undefined reference to `initWin
Sock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x44d6): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x4c8e): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x4ceb): undefined reference to `initWin
Sock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x4e36): undefined reference to `shutdow
nWinSock'
c:/program files/haskell platform/2014.2.0.0/mingw/bin/../lib/gcc/x86_64-w64-min
gw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Alberto\AppData\R
oaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/libHSHTTP-4000.2.19.a(TCP.o
): bad reloc address 0x0 in section `.data'
c:/program files/haskell platform/2014.2.0.0/mingw/bin/../lib/gcc/x86_64-w64-min
gw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid
operation
collect2: ld returned 1 exit status
Failed to install cabal-install-1.20.0.4
World file is already up to date.
cabal: Error: some packages failed to install:
cabal-install-1.20.0.4 failed during the building phase. The exception was:
ExitFailure 1
cabal install cabal-install -v --constraint="network==2.6.0.2"
[17 of 76] Compiling Distribution.Client.Types ( Distribution\Client\Types.hs, d
ist\build\cabal\cabal-tmp\Distribution\Client\Types.o )
[18 of 76] Compiling Distribution.Client.Dependency.Modular.Flag ( Distribution\
Client\Dependency\Modular\Flag.hs, dist\build\cabal\cabal-tmp\Distribution\Clien
t\Dependency\Modular\Flag.o )
[19 of 76] Compiling Distribution.Client.Dependency.Modular.Dependency ( Distrib
ution\Client\Dependency\Modular\Dependency.hs, dist\build\cabal\cabal-tmp\Distri
bution\Client\Dependency\Modular\Dependency.o )
[20 of 76] Compiling Distribution.Client.Dependency.Modular.Tree ( Distribution\
Client\Dependency\Modular\Tree.hs, dist\build\cabal\cabal-tmp\Distribution\Clien
t\Dependency\Modular\Tree.o )
[21 of 76] Compiling Distribution.Client.Dependency.Modular.Index ( Distribution
\Client\Dependency\Modular\Index.hs, dist\build\cabal\cabal-tmp\Distribution\Cli
ent\Dependency\Modular\Index.o )
[22 of 76] Compiling Distribution.Client.Dependency.Modular.Builder ( Distributi
on\Client\Dependency\Modular\Builder.hs, dist\build\cabal\cabal-tmp\Distribution
\Client\Dependency\Modular\Builder.o )
[23 of 76] Compiling Distribution.Client.Dependency.Modular.Message ( Distributi
on\Client\Dependency\Modular\Message.hs, dist\build\cabal\cabal-tmp\Distribution
\Client\Dependency\Modular\Message.o )
[24 of 76] Compiling Distribution.Client.Dependency.Modular.Configured ( Distrib
ution\Client\Dependency\Modular\Configured.hs, dist\build\cabal\cabal-tmp\Distri
bution\Client\Dependency\Modular\Configured.o )
[25 of 76] Compiling Distribution.Client.Dependency.Modular.Assignment ( Distrib
ution\Client\Dependency\Modular\Assignment.hs, dist\build\cabal\cabal-tmp\Distri
bution\Client\Dependency\Modular\Assignment.o )
[26 of 76] Compiling Distribution.Client.Dependency.Modular.Validate ( Distribut
ion\Client\Dependency\Modular\Validate.hs, dist\build\cabal\cabal-tmp\Distributi
on\Client\Dependency\Modular\Validate.o )
[27 of 76] Compiling Distribution.Client.Dependency.TopDown.Types ( Distribution
\Client\Dependency\TopDown\Types.hs, dist\build\cabal\cabal-tmp\Distribution\Cli
ent\Dependency\TopDown\Types.o )
[28 of 76] Compiling Distribution.Client.Dependency.Modular.IndexConversion ( Di
stribution\Client\Dependency\Modular\IndexConversion.hs, dist\build\cabal\cabal-
tmp\Distribution\Client\Dependency\Modular\IndexConversion.o )
[29 of 76] Compiling Distribution.Client.Init.Licenses ( Distribution\Client\Ini
t\Licenses.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Init\Licenses.o )
[30 of 76] Compiling Distribution.Client.Init.Types ( Distribution\Client\Init\T
ypes.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Init\Types.o )
[31 of 76] Compiling Distribution.Client.Compat.Time ( Distribution\Client\Compa
t\Time.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Compat\Time.o )
Distribution\Client\Compat\Time.hs:27:1: Warning:
the 'stdcall' calling convention is unsupported on this platform,
treating as ccall
When checking declaration:
foreign import stdcall safe "static windows.h GetFileAttributesExW" c_getF
ileAttributesEx
:: LPCTSTR -> Int32 -> LPVOID -> IO BOOL
Distribution\Client\Compat\Time.hs:90:62: Warning:
In the use of `bitSize' (imported from Data.Bits):
Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead"
[32 of 76] Compiling Distribution.Client.Tar ( Distribution\Client\Tar.hs, dist\
build\cabal\cabal-tmp\Distribution\Client\Tar.o )
[33 of 76] Compiling Paths_cabal_install ( dist\build\autogen\Paths_cabal_instal
l.hs, dist\build\cabal\cabal-tmp\Paths_cabal_install.o )
[34 of 76] Compiling Distribution.Client.HttpUtils ( Distribution\Client\HttpUti
ls.hs, dist\build\cabal\cabal-tmp\Distribution\Client\HttpUtils.o )
[35 of 76] Compiling Distribution.Client.FetchUtils ( Distribution\Client\FetchU
tils.hs, dist\build\cabal\cabal-tmp\Distribution\Client\FetchUtils.o )
[36 of 76] Compiling Distribution.Client.Utils ( Distribution\Client\Utils.hs, d
ist\build\cabal\cabal-tmp\Distribution\Client\Utils.o )
[37 of 76] Compiling Distribution.Client.Init.Heuristics ( Distribution\Client\I
nit\Heuristics.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Init\Heuristic
s.o )
[38 of 76] Compiling Distribution.Client.IndexUtils ( Distribution\Client\IndexU
tils.hs, dist\build\cabal\cabal-tmp\Distribution\Client\IndexUtils.o )
[39 of 76] Compiling Distribution.Client.Sandbox.Index ( Distribution\Client\San
dbox\Index.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Sandbox\Index.o )
[40 of 76] Compiling Distribution.Client.InstallPlan ( Distribution\Client\Insta
llPlan.hs, dist\build\cabal\cabal-tmp\Distribution\Client\InstallPlan.o )
[41 of 76] Compiling Distribution.Client.Dependency.Types ( Distribution\Client\
Dependency\Types.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\T
ypes.o )
[42 of 76] Compiling Distribution.Client.Dependency.Modular.Log ( Distribution\C
lient\Dependency\Modular\Log.hs, dist\build\cabal\cabal-tmp\Distribution\Client\
Dependency\Modular\Log.o )
[43 of 76] Compiling Distribution.Client.Dependency.Modular.Explore ( Distributi
on\Client\Dependency\Modular\Explore.hs, dist\build\cabal\cabal-tmp\Distribution
\Client\Dependency\Modular\Explore.o )
[44 of 76] Compiling Distribution.Client.Dependency.Modular.Preference ( Distrib
ution\Client\Dependency\Modular\Preference.hs, dist\build\cabal\cabal-tmp\Distri
bution\Client\Dependency\Modular\Preference.o )
[45 of 76] Compiling Distribution.Client.Dependency.Modular.Solver ( Distributio
n\Client\Dependency\Modular\Solver.hs, dist\build\cabal\cabal-tmp\Distribution\C
lient\Dependency\Modular\Solver.o )
[46 of 76] Compiling Distribution.Client.Dependency.Modular.ConfiguredConversion
( Distribution\Client\Dependency\Modular\ConfiguredConversion.hs, dist\build\ca
bal\cabal-tmp\Distribution\Client\Dependency\Modular\ConfiguredConversion.o )
[47 of 76] Compiling Distribution.Client.Dependency.Modular ( Distribution\Clien
t\Dependency\Modular.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependen
cy\Modular.o )
[48 of 76] Compiling Distribution.Client.BuildReports.Anonymous ( Distribution\C
lient\BuildReports\Anonymous.hs, dist\build\cabal\cabal-tmp\Distribution\Client\
BuildReports\Anonymous.o )
[49 of 76] Compiling Distribution.Client.BuildReports.Storage ( Distribution\Cli
ent\BuildReports\Storage.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Buil
dReports\Storage.o )
[50 of 76] Compiling Distribution.Client.BuildReports.Upload ( Distribution\Clie
nt\BuildReports\Upload.hs, dist\build\cabal\cabal-tmp\Distribution\Client\BuildR
eports\Upload.o )
[51 of 76] Compiling Distribution.Client.Dependency.TopDown.Constraints ( Distri
bution\Client\Dependency\TopDown\Constraints.hs, dist\build\cabal\cabal-tmp\Dist
ribution\Client\Dependency\TopDown\Constraints.o )
[52 of 76] Compiling Distribution.Client.Dependency.TopDown ( Distribution\Clien
t\Dependency\TopDown.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependen
cy\TopDown.o )
[53 of 76] Compiling Distribution.Client.Win32SelfUpgrade ( Distribution\Client\
Win32SelfUpgrade.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Win32SelfUpg
rade.o )
Distribution\Client\Win32SelfUpgrade.hs:48:1: Warning:
The qualified import of `System.Win32.DLL' is redundant
except perhaps to import instances from `System.Win32.DLL'
To import instances alone, use: import System.Win32.DLL()
Distribution\Client\Win32SelfUpgrade.hs:164:1: Warning:
the 'stdcall' calling convention is unsupported on this platform,
treating as ccall
When checking declaration:
foreign import stdcall unsafe "static windows.h GetCurrentProcessId" getCu
rrentProcessId
:: IO DWORD
Distribution\Client\Win32SelfUpgrade.hs:167:1: Warning:
the 'stdcall' calling convention is unsupported on this platform,
treating as ccall
When checking declaration:
foreign import stdcall unsafe "static windows.h WaitForSingleObject" waitF
orSingleObject_
:: HANDLE -> DWORD -> IO DWORD
Distribution\Client\Win32SelfUpgrade.hs:178:1: Warning:
the 'stdcall' calling convention is unsupported on this platform,
treating as ccall
When checking declaration:
foreign import stdcall unsafe "static windows.h CreateEventW" createEvent_
:: Ptr () -> BOOL -> BOOL -> LPCTSTR -> IO HANDLE
Distribution\Client\Win32SelfUpgrade.hs:187:1: Warning:
the 'stdcall' calling convention is unsupported on this platform,
treating as ccall
When checking declaration:
foreign import stdcall unsafe "static windows.h OpenEventW" openEvent_
:: DWORD -> BOOL -> LPCTSTR -> IO HANDLE
Distribution\Client\Win32SelfUpgrade.hs:199:1: Warning:
the 'stdcall' calling convention is unsupported on this platform,
treating as ccall
When checking declaration:
foreign import stdcall unsafe "static windows.h SetEvent" setEvent_
:: HANDLE -> IO BOOL
[54 of 76] Compiling Distribution.Client.Init ( Distribution\Client\Init.hs, dis
t\build\cabal\cabal-tmp\Distribution\Client\Init.o )
[55 of 76] Compiling Distribution.Client.Sandbox.Types ( Distribution\Client\San
dbox\Types.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Sandbox\Types.o )
[56 of 76] Compiling Distribution.Client.Run ( Distribution\Client\Run.hs, dist\
build\cabal\cabal-tmp\Distribution\Client\Run.o )
[57 of 76] Compiling Distribution.Client.Check ( Distribution\Client\Check.hs, d
ist\build\cabal\cabal-tmp\Distribution\Client\Check.o )
[58 of 76] Compiling Distribution.Client.Update ( Distribution\Client\Update.hs,
dist\build\cabal\cabal-tmp\Distribution\Client\Update.o )
[59 of 76] Compiling Distribution.Client.Targets ( Distribution\Client\Targets.h
s, dist\build\cabal\cabal-tmp\Distribution\Client\Targets.o )
[60 of 76] Compiling Distribution.Client.Dependency ( Distribution\Client\Depend
ency.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency.o )
[61 of 76] Compiling Distribution.Client.Setup ( Distribution\Client\Setup.hs, d
ist\build\cabal\cabal-tmp\Distribution\Client\Setup.o )
[62 of 76] Compiling Distribution.Client.Config ( Distribution\Client\Config.hs,
dist\build\cabal\cabal-tmp\Distribution\Client\Config.o )
[63 of 76] Compiling Distribution.Client.SetupWrapper ( Distribution\Client\Setu
pWrapper.hs, dist\build\cabal\cabal-tmp\Distribution\Client\SetupWrapper.o )
[64 of 76] Compiling Distribution.Client.Sandbox.Timestamp ( Distribution\Client
\Sandbox\Timestamp.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Sandbox\Ti
mestamp.o )
[65 of 76] Compiling Distribution.Client.Upload ( Distribution\Client\Upload.hs,
dist\build\cabal\cabal-tmp\Distribution\Client\Upload.o )
[66 of 76] Compiling Distribution.Client.List ( Distribution\Client\List.hs, dis
t\build\cabal\cabal-tmp\Distribution\Client\List.o )
[67 of 76] Compiling Distribution.Client.Configure ( Distribution\Client\Configu
re.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Configure.o )
[68 of 76] Compiling Distribution.Client.Fetch ( Distribution\Client\Fetch.hs, d
ist\build\cabal\cabal-tmp\Distribution\Client\Fetch.o )
[69 of 76] Compiling Distribution.Client.SrcDist ( Distribution\Client\SrcDist.h
s, dist\build\cabal\cabal-tmp\Distribution\Client\SrcDist.o )
[70 of 76] Compiling Distribution.Client.Get ( Distribution\Client\Get.hs, dist\
build\cabal\cabal-tmp\Distribution\Client\Get.o )
[71 of 76] Compiling Distribution.Client.Sandbox.PackageEnvironment ( Distributi
on\Client\Sandbox\PackageEnvironment.hs, dist\build\cabal\cabal-tmp\Distribution
\Client\Sandbox\PackageEnvironment.o )
[72 of 76] Compiling Distribution.Client.Freeze ( Distribution\Client\Freeze.hs,
dist\build\cabal\cabal-tmp\Distribution\Client\Freeze.o )
[73 of 76] Compiling Distribution.Client.InstallSymlink ( Distribution\Client\In
stallSymlink.hs, dist\build\cabal\cabal-tmp\Distribution\Client\InstallSymlink.o
)
[74 of 76] Compiling Distribution.Client.Install ( Distribution\Client\Install.h
s, dist\build\cabal\cabal-tmp\Distribution\Client\Install.o )
[75 of 76] Compiling Distribution.Client.Sandbox ( Distribution\Client\Sandbox.h
s, dist\build\cabal\cabal-tmp\Distribution\Client\Sandbox.o )
[76 of 76] Compiling Main ( Main.hs, dist\build\cabal\cabal-tmp\Main
.o )
Building C Sources...
creating dist\build\cabal\cabal-tmp
C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc.exe -c -static -odir dist\b
uild\cabal\cabal-tmp -Idist\build\autogen -Idist\build\cabal\cabal-tmp -optc-O2
-package-db dist\package.conf.inplace -package-id Cabal-1.20.0.2-2d0d4b50a80873b
d77d7619acdc39282 -package-id HTTP-4000.2.19-a3b06338bfc05de6b2dff745ab78e8e2 -p
ackage-id Win32-2.3.0.2-698249828064ce7d3e731406aa0b6536 -package-id array-0.5.0
.0-a620a6e52b09b01c2ee52fdc2f35ba14 -package-id base-4.7.0.1-7c4827d45272c622048
6aa798a981cbc -package-id bytestring-0.10.4.0-0168d7fce99b3d6589c7684c734053d4 -
package-id containers-0.5.5.1-08015588ba3fe884f62b392b72b7a17f -package-id direc
tory-1.2.1.0-8cccd8e1806d43153b63c8c02500965e -package-id filepath-1.3.0.2-a4d1d
9ee29199e7f421cb1e2eeca7b3c -package-id mtl-2.1.3.1-045b529925f92141fbca5a09ccb7
6887 -package-id network-2.6.0.2-cd717cc95784d3d2c843373d48659787 -package-id ne
twork-uri-2.6.0.1-474d71b66fbfc5e5890f880a23bc762f -package-id pretty-1.1.1.1-c6
95907dd1419865c9783baf249b36b0 -package-id process-1.2.0.0-8428b2db1fb32008b84b3
05e3dcf61f8 -package-id random-1.0.1.1-1c39aaa78f370b133a79ccf1ef25922b -package
-id stm-2.4.2-6e8cfbcce8457ecf64e4555b5e253ae6 -package-id time-1.4.2-10261674b9
1c0791587926806ccad1bb -package-id zlib-0.5.4.1-28702d80c2a2842f8db883ae46443522
cbits/getnumcores.c
Linking...
C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc.exe --make -fbuilding-cabal
-package -O -static -outputdir dist\build\cabal\cabal-tmp -odir dist\build\cabal
\cabal-tmp -hidir dist\build\cabal\cabal-tmp -stubdir dist\build\cabal\cabal-tmp
-i -idist\build\cabal\cabal-tmp -i. -idist\build\autogen -Idist\build\autogen -
Idist\build\cabal\cabal-tmp -optP-DWIN32 -optP-include -optPdist\build\autogen\c
abal_macros.h -hide-all-packages -package-db dist\package.conf.inplace -package-
id Cabal-1.20.0.2-2d0d4b50a80873bd77d7619acdc39282 -package-id HTTP-4000.2.19-a3
b06338bfc05de6b2dff745ab78e8e2 -package-id Win32-2.3.0.2-698249828064ce7d3e73140
6aa0b6536 -package-id array-0.5.0.0-a620a6e52b09b01c2ee52fdc2f35ba14 -package-id
base-4.7.0.1-7c4827d45272c6220486aa798a981cbc -package-id bytestring-0.10.4.0-0
168d7fce99b3d6589c7684c734053d4 -package-id containers-0.5.5.1-08015588ba3fe884f
62b392b72b7a17f -package-id directory-1.2.1.0-8cccd8e1806d43153b63c8c02500965e -
package-id filepath-1.3.0.2-a4d1d9ee29199e7f421cb1e2eeca7b3c -package-id mtl-2.1
.3.1-045b529925f92141fbca5a09ccb76887 -package-id network-2.6.0.2-cd717cc95784d3
d2c843373d48659787 -package-id network-uri-2.6.0.1-474d71b66fbfc5e5890f880a23bc7
62f -package-id pretty-1.1.1.1-c695907dd1419865c9783baf249b36b0 -package-id proc
ess-1.2.0.0-8428b2db1fb32008b84b305e3dcf61f8 -package-id random-1.0.1.1-1c39aaa7
8f370b133a79ccf1ef25922b -package-id stm-2.4.2-6e8cfbcce8457ecf64e4555b5e253ae6
-package-id time-1.4.2-10261674b91c0791587926806ccad1bb -package-id zlib-0.5.4.1
-28702d80c2a2842f8db883ae46443522 -XHaskell98 .\Main.hs dist\build\cabal\cabal-t
mp\cbits/getnumcores.o -o dist\build\cabal\cabal.exe -Wall -fwarn-tabs -threaded
Linking dist\build\cabal\cabal.exe ...
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x26a6): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x2fae): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x300b): undefined reference to `initWin
Sock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x3156): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x393e): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x399b): undefined reference to `initWin
Sock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x3ade): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x4336): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x4393): undefined reference to `initWin
Sock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x44d6): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x4c8e): undefined reference to `shutdow
nWinSock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x4ceb): undefined reference to `initWin
Sock'
C:\Users\Alberto\AppData\Roaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/l
ibHSHTTP-4000.2.19.a(TCP.o):fake:(.text+0x4e36): undefined reference to `shutdow
nWinSock'
c:/program files/haskell platform/2014.2.0.0/mingw/bin/../lib/gcc/x86_64-w64-min
gw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Alberto\AppData\R
oaming\cabal\x86_64-windows-ghc-7.8.3\HTTP-4000.2.19/libHSHTTP-4000.2.19.a(TCP.o
): bad reloc address 0x0 in section `.data'
c:/program files/haskell platform/2014.2.0.0/mingw/bin/../lib/gcc/x86_64-w64-min
gw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid
operation
collect2: ld returned 1 exit status
Failed to install cabal-install-1.20.0.4
World file is already up to date.
cabal: Error: some packages failed to install:
cabal-install-1.20.0.4 failed during the building phase. The exception was:
ExitFailure 1