Seg fault wen compiling on Linux
Posted: Tue Jul 31, 2012 12:20 pm
Solved!
This requires GCC 4.6 - I had an older version.
To check, run
If you need to install GCC 4.6, there are instructions on StackOverflow.
----------------------------
I'm getting a segmentation fault when trying to compile on Ubuntu.
I've installed all the dependencies (build-essential libc6-dev libssl-dev libexpat1-dev libgl1-mesa-dev libqt4-dev).
But this is what happens when I try to compile makemkv-oss-1.7.6
Any idea what I'm doing wrong?
This requires GCC 4.6 - I had an older version.
To check, run
Code: Select all
gcc --version
----------------------------
I'm getting a segmentation fault when trying to compile on Ubuntu.
I've installed all the dependencies (build-essential libc6-dev libssl-dev libexpat1-dev libgl1-mesa-dev libqt4-dev).
But this is what happens when I try to compile makemkv-oss-1.7.6
Code: Select all
make -f makefile.linux
mkdir -p out
gcc -Os -D_GNU_SOURCE -D_linux_ -D_REENTRANT -shared -Wl,-z,defs -oout/libdriveio.so.0.full -Ilibdriveio/inc libdriveio/src/infolist.cpp libdriveio/src/scsihlp.cpp libdriveio/src/srlist.cpp libdriveio/src/stdquery.cpp libdriveio/src/tipclient.cpp libdriveio/src/tipcommon.cpp libdriveio/src/tipserver.cpp libdriveio/src/drives/pioneer.cpp libdriveio/src/drives/xboxhddvd.cpp \
-fPIC -Xlinker -dy -Xlinker --version-script=libdriveio/src/libdriveio.vers \
-Xlinker -soname=libdriveio.so.0 -lc -lstdc++
libdriveio/src/infolist.cpp: In function ‘void LibDriveIo::uint32_put_ns(uint32_t, void*)’:
libdriveio/src/infolist.cpp:341:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/scsihlp.cpp: In function ‘uint32_t LibDriveIo::uint32_get_be(const void*)’:
libdriveio/src/scsihlp.cpp:389:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/srlist.cpp: In function ‘uint32_t uint32_get_ns(const void*)’:
libdriveio/src/srlist.cpp:43:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/stdquery.cpp: In function ‘uint32_t LibDriveIo::uint32_get_be(const void*)’:
libdriveio/src/stdquery.cpp:555:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/tipclient.cpp: In static member function ‘static int LibDriveIo::CTIPSClient::ExecStatic(void*, const ScsiCmd*, ScsiCmdResponse*)’:
libdriveio/src/tipclient.cpp:200:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/tipcommon.cpp: In function ‘unsigned int LibDriveIo::encode_int(uint8_t*, uint64_t)’:
libdriveio/src/tipcommon.cpp:239:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/tipserver.cpp: In function ‘ssize_t recv(int, void*, size_t, int)’:
libdriveio/src/tipserver.cpp:326:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/drives/pioneer.cpp: In function ‘void append_trimmed(char*, const char*, size_t)’:
libdriveio/src/drives/pioneer.cpp:261:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/drives/xboxhddvd.cpp: In function ‘int cmd_df_enable(ISimpleScsiTarget*)’:
libdriveio/src/drives/xboxhddvd.cpp:106:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
make: *** [out/libdriveio.so.0.full] Error 1