These are chat archives for libmir/public

4th
Mar 2017
Prasun Anand
@prasunanand
Mar 04 2017 08:54
@9il , My problem is resolved. Now I am using ldc 1.1.0 and gemm is working perfectly :D
Prasun Anand
@prasunanand
Mar 04 2017 09:55
However, I still am unable to use it in my program. There is some error in linking. Please, have a look.
https://gist.github.com/prasunanand/90d885115b9e27b498250e84b538d64b
Prasun Anand
@prasunanand
Mar 04 2017 10:30
Its funny that one of the dependencies restricts from successfully compiling the program.
@dataPulverizer: I can't use gsl and mir-glas together. Can you have a look?
Nicholas Wilson
@thewilsonator
Mar 04 2017 12:55
Just checking: does upgrading gsl from 0.1.7 to 0.1.8 fix your problem?
Prasun Anand
@prasunanand
Mar 04 2017 12:57
No
Nicholas Wilson
@thewilsonator
Mar 04 2017 13:03
Hmm the linker error in that gist is from mir-cpuid
Prasun Anand
@prasunanand
Mar 04 2017 13:05
dub build --compiler=ldmd2 --parallel --force -v
results in
Linking...
ldmd2 -of.dub/build/application-debug-linux.posix-x86_64-ldc_2071-1FDACC5F6D6CDE6055498809E19FDA1C/gemm .dub/build/application-debug-linux.posix-x86_64-ldc_2071-1FDACC5F6D6CDE6055498809E19FDA1C/gemm.o ../../../.dub/packages/dstats-1.0.3/.dub/build/library-debug-linux.posix-x86_64-ldc_2071-38C8B578131964E261927F980D40911D/libdstats.a ../../../.dub/packages/dyaml-0.5.3/.dub/build/library-debug-linux.posix-x86_64-ldc_2071-A58A779CB51A5D824AB13B2F6E24AC16/libdyaml.a ../../../.dub/packages/tinyendian-0.1.2/.dub/build/library-debug-linux.posix-x86_64-ldc_2071-63C2116F2483B2506CDF9091A3C28DD0/libtinyendian.a ../../../.dub/packages/mir-cpuid-0.4.2/mir-cpuid/.dub/build/library-debug-linux.posix-x86_64-ldc_2071-86B508216A4635809366D4F6A849D4A8/libmir-cpuid.a ../../../.dub/packages/mir-algorithm-0.0.30/mir-algorithm/.dub/build/library-debug-linux.posix-x86_64-ldc_2071-E4991B8128FC4747A767EA630113C462/libmir-algorithm.a ../../../.dub/packages/mir-internal-0.0.2/mir-internal/.dub/build/library-debug-linux.posix-x86_64-ldc_2071-B3B4694625705B637CB91780B7EF9921/libmir-internal.a -L--no-as-needed -L-L/home/prasun/.dub/packages/mir-glas-0.1.1/mir-glas/ -L-L/home/prasun/.dub/packages/mir-cpuid-0.4.2/mir-cpuid/ -L-L/usr/lib/openblas-base -L-llapacke -L-llapack -L-lblas -L-lgsl -L-lgslcblas -L-lm -L-lopenblas -L-lmir-cpuid -L-lmir-glas -g
lgsl seems to be at fault here
Nicholas Wilson
@thewilsonator
Mar 04 2017 13:17
ldmd2 -of.dub/build/application-debug-linux.posix-x86_64-ldc_2071-1FDACC5F6D6CDE6055498809E19FDA1C/gemm .dub/build-.../gemm.o 
../../../.dub/packages/dstats-1.0.3/.dub/build/.../libdstats.a 
../../../.dub/packages/dyaml-0.5.3/.dub/build/.../libdyaml.a 
../../../.dub/packages/tinyendian-0.1.2/.dub/build/.../libtinyendian.a 
../../../.dub/packages/mir-cpuid-0.4.2/mir-cpuid/.dub/build/.../libmir-cpuid.a 
../../../.dub/packages/mir-algorithm-0.0.30/mir-algorithm/.dub/build/.../libmir-algorithm.a 
../../../.dub/packages/mir-internal-0.0.2/mir-internal/.dub/build/.../libmir-internal.a
 -L--no-as-needed -L-L/home/prasun/.dub/packages/mir-glas-0.1.1/mir-glas/ -L-L/home/prasun/.dub/packages/mir-cpuid-0.4.2/mir-cpuid/ -L-L/usr/lib/openblas-base -L-llapacke -L-llapack -L-lblas -L-lgsl -L-lgslcblas -L-lm -L-lopenblas -L-lmir-cpuid -L-lmir-glas -g
As above with line breaks and path contraction.
Can you please verify the presence of the missing symbols in the gist. i.e. check the output of $nm path/to/libmir-cpuid.a | grep cpuid_init and the same for cpuid_dCacheand cpuid_uCache
Ilya Yaroshenko
@9il
Mar 04 2017 15:20
@prasunanand please fill the issue at mir-random with your dub.json and gists
Prasun Anand
@prasunanand
Mar 04 2017 20:05
@thewilsonator Output:
prasun@devUbuntu:~/dev/temp/gemm$ nm ~/.dub/packages/mir-cpuid-0.4.2/mir-cpuid/libmir-cpuid.a | grep cpuid_init
0000000000000000 T cpuid_init
prasun@devUbuntu:~/dev/temp/gemm$ nm ~/.dub/packages/mir-cpuid-0.4.2/mir-cpuid/libmir-cpuid.a | grep cpuid_dCache
0000000000000000 T cpuid_dCache
prasun@devUbuntu:~/dev/temp/gemm$ nm ~/.dub/packages/mir-cpuid-0.4.2/mir-cpuid/libmir-cpuid.a | grep cpuid_uCache
0000000000000000 T cpuid_uCache
Prasun Anand
@prasunanand
Mar 04 2017 20:27
@9il libmir/mir-random#22