marec2000 / dsf2flac

Automatically exported from code.google.com/p/dsf2flac
0 stars 0 forks source link

Error when compiling on 32bit #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. First step without errors
build # cmake ..
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   system
--   timer
--   filesystem
--   chrono
-- Found Ogg: /usr/lib/i386-linux-gnu/libogg.so
-- Found Flac: /usr/lib/i386-linux-gnu/libFLAC.so
-- Found Flac++: /usr/lib/i386-linux-gnu/libFLAC++.so
-- Found Id3: /usr/lib/libid3.so
-- Found Zlib: /usr/lib/i386-linux-gnu/libz.so
-- Found Rtlib: /usr/lib/i386-linux-gnu/librt.so
-- Configuring done
-- Generating done
-- Build files have been written to: /root/dsf2flac-read-only/build

2.  error: make
build # make
[  6%] Building CXX object CMakeFiles/dsf2flac.dir/src/tagConversion.cpp.o
[ 12%] Building CXX object CMakeFiles/dsf2flac.dir/src/dop_packer.cpp.o
[ 18%] Building CXX object CMakeFiles/dsf2flac.dir/src/dsd_sample_reader.cpp.o
[ 25%] Building CXX object CMakeFiles/dsf2flac.dir/src/dsf_file_reader.cpp.o
/root/dsf2flac-read-only/src/dsf_file_reader.cpp: In member function ‘virtual 
bool DsfFileReader::step()’:
/root/dsf2flac-read-only/src/dsf_file_reader.cpp:89:24: warning: comparison 
between signed and unsigned integer expressions [-Wsign-compare]
  else if (blockMarker>=blockSzPerChan)
                        ^
[ 31%] Building CXX object CMakeFiles/dsf2flac.dir/src/filters.cpp.o
[ 37%] Building CXX object CMakeFiles/dsf2flac.dir/src/fstream_plus.cpp.o
[ 43%] Building CXX object CMakeFiles/dsf2flac.dir/src/dsd_decimator.cpp.o
[ 50%] Building CXX object CMakeFiles/dsf2flac.dir/src/main.cpp.o
[ 56%] Building CXX object CMakeFiles/dsf2flac.dir/src/dsdiff_file_reader.cpp.o
/root/dsf2flac-read-only/src/dsdiff_file_reader.cpp: In member function 
‘virtual bool DsdiffFileReader::step()’:
/root/dsf2flac-read-only/src/dsdiff_file_reader.cpp:217:25: warning: comparison 
between signed and unsigned integer expressions [-Wsign-compare]
  else if (bufferMarker>=sampleBufferLenPerChan)
                         ^
[ 62%] Building C object CMakeFiles/dsf2flac.dir/src/cmdline.c.o
[ 68%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/ccp_calc.c.o
[ 75%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/unpack_dst.c.o
[ 81%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/dst_ac.c.o
[ 87%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/dst_data.c.o
[ 93%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/dst_fram.c.o
[100%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/dst_init.c.o
In file included from /root/dsf2flac-read-only/src/libdstdec/dst_init.c:68:0:
/usr/lib/gcc/i686-linux-gnu/4.8/include/emmintrin.h:31:3: error: #error "SSE2 
instruction set not enabled"
 # error "SSE2 instruction set not enabled"
   ^
/root/dsf2flac-read-only/src/libdstdec/dst_init.c: In function 
‘MemoryAllocate’:
/root/dsf2flac-read-only/src/libdstdec/dst_init.c:84:14: warning: assignment 
makes pointer from integer without a cast [enabled by default]
   if ((Array = _mm_malloc(NrOfElements * SizeOfElement, 16)) == NULL) 
              ^
make[2]: *** [CMakeFiles/dsf2flac.dir/src/libdstdec/dst_init.c.o] Error 1
make[1]: *** [CMakeFiles/dsf2flac.dir/all] Error 2
make: *** [all] Error 2

What is the expected output?

Binary created successfully

What do you see instead?

In file included from /root/dsf2flac-read-only/src/libdstdec/dst_init.c:68:0:
/usr/lib/gcc/i686-linux-gnu/4.8/include/emmintrin.h:31:3: error: #error "SSE2 
instruction set not enabled"
 # error "SSE2 instruction set not enabled"
   ^
/root/dsf2flac-read-only/src/libdstdec/dst_init.c: In function 
‘MemoryAllocate’:
/root/dsf2flac-read-only/src/libdstdec/dst_init.c:84:14: warning: assignment 
makes pointer from integer without a cast [enabled by default]
   if ((Array = _mm_malloc(NrOfElements * SizeOfElement, 16)) == NULL) 
              ^
make[2]: *** [CMakeFiles/dsf2flac.dir/src/libdstdec/dst_init.c.o] Error 1
make[1]: *** [CMakeFiles/dsf2flac.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?

dsf2flac - Revision 51: /trunk
In linux mint 17 cinnamon (32 bits)

Additional information 

            cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 16
model       : 6
model name  : AMD Athlon(tm) II 160u Processor
stepping    : 3
microcode   : 0x10000c8
cpu MHz     : 800.000
cache size  : 1024 KB
physical id : 0
siblings    : 1
core id     : 0
cpu cores   : 1
apicid      : 0
initial apicid  : 0
fdiv_bug    : no
f00f_bug    : no
coma_bug    : no
fpu     : yes
fpu_exception   : yes
cpuid level : 5
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat 
pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 
3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni monitor cx16 popcnt 
lahf_lm svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs 
skinit wdt nodeid_msr hw_pstate npt lbrv svm_lock nrip_save
bogomips    : 3616.03
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

Excuse my English

Original issue reported on code.google.com by mpd.hw...@gmail.com on 3 Oct 2014 at 11:55

GoogleCodeExporter commented 9 years ago
Hi, please can you try again with the attached file instead of the normal 
CMakeLists.txt

Let me know if it works!

Thanks, Jack.

Original comment by jack.ocl...@googlemail.com on 16 Oct 2014 at 7:48

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks!
The compilation worked. But there are warnings when building:

                make
Scanning dependencies of target dsf2flac
[  6%] Building CXX object CMakeFiles/dsf2flac.dir/src/tagConversion.cpp.o
[ 12%] Building CXX object CMakeFiles/dsf2flac.dir/src/dop_packer.cpp.o
[ 18%] Building CXX object CMakeFiles/dsf2flac.dir/src/dsd_sample_reader.cpp.o
[ 25%] Building CXX object CMakeFiles/dsf2flac.dir/src/dsf_file_reader.cpp.o
/root/dsf2flac-read-only/src/dsf_file_reader.cpp: In member function ‘virtual 
bool DsfFileReader::step()’:
/root/dsf2flac-read-only/src/dsf_file_reader.cpp:89:24: warning: comparison 
between signed and unsigned integer expressions [-Wsign-compare]
  else if (blockMarker>=blockSzPerChan)
                        ^
[ 31%] Building CXX object CMakeFiles/dsf2flac.dir/src/filters.cpp.o
[ 37%] Building CXX object CMakeFiles/dsf2flac.dir/src/fstream_plus.cpp.o
[ 43%] Building CXX object CMakeFiles/dsf2flac.dir/src/dsd_decimator.cpp.o
[ 50%] Building CXX object CMakeFiles/dsf2flac.dir/src/main.cpp.o
[ 56%] Building CXX object CMakeFiles/dsf2flac.dir/src/dsdiff_file_reader.cpp.o
/root/dsf2flac-read-only/src/dsdiff_file_reader.cpp: In member function 
‘virtual bool DsdiffFileReader::step()’:
/root/dsf2flac-read-only/src/dsdiff_file_reader.cpp:217:25: warning: comparison 
between signed and unsigned integer expressions [-Wsign-compare]
  else if (bufferMarker>=sampleBufferLenPerChan)
                         ^
[ 62%] Building C object CMakeFiles/dsf2flac.dir/src/cmdline.c.o
[ 68%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/ccp_calc.c.o
[ 75%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/unpack_dst.c.o
[ 81%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/dst_ac.c.o
[ 87%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/dst_data.c.o
[ 93%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/dst_fram.c.o
[100%] Building C object CMakeFiles/dsf2flac.dir/src/libdstdec/dst_init.c.o
Linking CXX executable dsf2flac
[100%] Built target dsf2flac

Binary is created, but can not convert ...
In dff files: 

dsf2flac 0.1Rev51
Error opening DSDFF file!
dsdiffFileReader::readChunk_FRM8:chunk ident error

In dsf files:

dsf2flac 0.1Rev51
Error opening DSDFF file!
Sorry, only one bit data is supported

Files are normal dsd64 (from sacd, extracted sacd_extract). So are 1bit.

Thanks for the help!
Sorry for my english

Original comment by mpd.hw...@gmail.com on 28 Oct 2014 at 10:28

GoogleCodeExporter commented 9 years ago
Sorry for the late reply.

The compile warnings are not too serious, I doubt they are causing the problem.

Basically the program is finding the wrong data in the files and getting 
confused. Could be that the program is looking in the wrong place within the 
file. I have not tested the program on 32bit Linux so that might be related to 
the problems. I'll try and find some time next weekend to install 32bit Mint 
and see if I can replicate the issue.

I note that your hardware seems sufficient to run 64bit linux. Was there 
another reason why you are using 32bit?

Jack.

Original comment by jack.ocl...@googlemail.com on 10 Nov 2014 at 9:21

GoogleCodeExporter commented 9 years ago
Thanks!
[...] your hardware seems sufficient to run 64bit linux. Was there another 
reason why you are using 32bit?

Only limited RAM (2GB). I understand it is better to use 64bit with 4GB or 
more...
and I have many programs installed.

Thanks again.

Sorry for my english

Original comment by mpd.hw...@gmail.com on 11 Nov 2014 at 11:01

GoogleCodeExporter commented 9 years ago
I compiled this on 32-bit Debian Wheezy today (Asus Netbook).  I also receive 
the error:

dsf2flac 0.1Rev51
Error opening DSDFF file!
Sorry, only one bit data is supported

Original comment by carr....@gmail.com on 31 Jan 2015 at 10:03

GoogleCodeExporter commented 9 years ago
Hi,

Sorry for the late reply. I've not had the chance to look into this yet. Most 
of my testing is on 64bit Linux, I'll have to install a 32bit OS to give it a 
go. The other possibility is that it is related to your hardware, could you let 
me know what processor your ASUS netbook has?

Thanks! Jack.

Original comment by jack.ocl...@googlemail.com on 3 Feb 2015 at 8:22

GoogleCodeExporter commented 9 years ago
Thank you for providing the conversion tool.  I hope to soon upgrade to a
notebook with more memory and capable of 64-bit processing.

Here is the cpu information:

$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N280   @ 1.66GHz
stepping : 2
microcode : 0x212
cpu MHz : 1667.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc
arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3
xtpr pdcm movbe lahf_lm dtherm
bogomips : 3325.40
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual

Original comment by carr....@gmail.com on 3 Feb 2015 at 9:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I fixed the issue by replacing all type definitions in dsf2flac_types.h with 
portable ones. The header file looks like this after change,

#include <inttypes.h>

typedef char                    dsf2flac_int8;
typedef int16_t                 dsf2flac_int16;
typedef int32_t                 dsf2flac_int32;
typedef int64_t                 dsf2flac_int64;

typedef unsigned char           dsf2flac_uint8;
typedef uint16_t                dsf2flac_uint16;
typedef uint32_t                dsf2flac_uint32;
typedef uint64_t                dsf2flac_uint64;

typedef float                   dsf2flac_float32;
typedef double                  dsf2flac_float64;

Original comment by steppedf...@gmail.com on 29 May 2015 at 10:13

GoogleCodeExporter commented 9 years ago
Hi,

I am trying to compile dsf2flac on a dell AMD xp2600+ Linux Mint 17.1. 
Everything fine in cmake but I receive an error while running make as follows:

'Linking CXX executable dsf2flac
/usr/bin/ld: attempted static link of dynamic object `/usr/local/lib/libogg.so'
collect2: error: ld returned 1 exit status
make[2]: *** [dsf2flac] Error 1
make[1]: *** [CMakeFiles/dsf2flac.dir/all] Error 2
make: *** [all] Error 2
Any idea how to correct this?

Thanks

Original comment by michael....@gmail.com on 17 Aug 2015 at 7:55