torarnv / sparsebundlefs

FUSE filesystem for reading macOS sparse-bundle disk images
BSD 2-Clause "Simplified" License
330 stars 38 forks source link

compiling error #5

Closed RobinQu closed 11 years ago

RobinQu commented 11 years ago

Hi,

I grabbed the latest code and install fuse-related packages:

apt-get install libfuse-dev libfuse2 fuse-utils

then, try to make in the source folder, but got following errors:

robin-nas:/usr/src/sparsebundlefs-master# make
g++ sparsebundlefs.cpp -o sparsebundlefs -Wall -O2 -march=native -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse  -lfuse -lpthread   -Wl,-rpath=/usr/lib -DFUSE_USE_VERSION=26
sparsebundlefs.cpp:1: error: bad value (native) for -march= switch
sparsebundlefs.cpp:1: error: bad value (native) for -mtune= switch
make: *** [sparsebundlefs] Error 1

my gcc info:

robin-nas:/usr/src/sparsebundlefs-master# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

Really punched by the logs.

BTW: I was building on a NAS machine, which runs a Debian-like os.

torarnv commented 11 years ago

Try removing -march=native from the Makefile

torarnv commented 11 years ago

Try pulling master, the issue should be fixed in https://github.com/torarnv/sparsebundlefs/commit/e3bc65fa6d34f343edd70d2804a3912ec160e596

Let me know if you still have problems.