Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not build spruce_0.2 on Ubuntu 12.04 x64 #3

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment
Open

Can not build spruce_0.2 on Ubuntu 12.04 x64 #3

GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Can not build spruce_0.2 on Ubuntu 12.04 x64

Steps to reproduce:

1. $ wget http://spruce.googlecode.com/files/spruce_0.2.tar.gz
2. $ tar xf spruce_0.2.tar.gz
3. $ cd spruce_0.2/
4. $ mkdir -p $HOME/tmp/spruce-build
5. $ cmake -DCMAKE_INSTALL_PREFIX=$HOME/tmp/spruce-build
6. $ make

Actual result:

Compilation ends with
/home/alex/spruce_0.2/src/fs/btrfs/Ioctl.hpp:341:4: error: ‘amp’ was not 
declared in this scope
/home/alex/spruce_0.2/src/fs/btrfs/Ioctl.hpp:341:4: error: expected ‘)’ 
before ‘;’ token
/home/alex/spruce_0.2/src/fs/btrfs/Ioctl.hpp:341:4: error: expected ‘;’ 
before ‘)’ token
/home/alex/spruce_0.2/src/fs/btrfs/Ioctl.hpp:341:4: warning: statement has no 
effect [-Wunused-value]
/home/alex/spruce_0.2/src/fs/btrfs/Ioctl.hpp:341:4: error: ‘amp’ was not 
declared in this scope
/home/alex/spruce_0.2/src/fs/btrfs/Ioctl.hpp:341:4: error: expected ‘)’ 
before ‘;’ token
/home/alex/spruce_0.2/src/fs/btrfs/Ioctl.hpp:341:4: error: expected ‘;’ 
before ‘)’ token
/home/alex/spruce_0.2/src/fs/btrfs/Ioctl.hpp:341:4: warning: statement has no 
effect [-Wunused-value]
make[2]: *** [src/fs/btrfs/CMakeFiles/btrfs.dir/module.cpp.o] Error 1
make[1]: *** [src/fs/btrfs/CMakeFiles/btrfs.dir/all] Error 2
make: *** [all] Error 2
~/spruce_0.2$ 


Expected result:
Successfull build.


$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.3 LTS
Release:    12.04
Codename:   precise

$ uname -a
Linux desktop 3.2.0-55-generic #85-Ubuntu SMP Wed Oct 2 12:29:27 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3


Additional details:
build.log with entire console output is attached.

Original issue reported on code.google.com by [email protected] on 30 Oct 2013 at 9:30

Attachments:

@GoogleCodeExporter
Copy link
Author

Seems here is the problem:

File src/fs/btrfs/Ioctl.hpp seems to be ampersand slashed:

...
  // get flag initial values
  Unres( ioctl(FDs[0], FS_IOC_GETFLAGS, &flags ) == -1 , "Error getting flag initial value. ");

  //Set test value to flags
  Unres( ioctl(FDs[0], FS_IOC_SETFLAGS, &set_flags ) == -1, "Error setting test value to flag. ");

  Fail( unlink(FilePaths[0].c_str()) == 0 ,  "File must be immutable but it isn't. ");

  //Get new flag value
  Unres ( ioctl(FDs[0], FS_IOC_GETFLAGS, &get_flags ) == -1 , "Error getting new flag value. ");

  //Restore the initial flag value
  Unres( ioctl(FDs[0], FS_IOC_SETFLAGS, &flags ) == -1, "Error setting in:
...

Original comment by [email protected] on 30 Oct 2013 at 9:38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant