Build errors #1

Closed
opened 2026-01-29 17:27:45 +00:00 by claunia · 6 comments
Owner

Originally created by @lifepillar on GitHub (Aug 15, 2016).

I am trying to build this on El Capitan. The latest release (v2_2010-03-18) fails early with:

]make
c++  -Wall -O2 -g  -c -o newfs_prodos.o newfs_prodos.cpp
newfs_prodos.cpp:10:10: fatal error: 'BlockDevice.h' file not found
#include "BlockDevice.h"
         ^
1 error generated.
make: *** [newfs_prodos.o] Error 1

The master also fails soon:

]make
c++  -Wall -W -Wno-multichar -I. -O2 -g  -I/usr/local/include/osxfuse/fuse  -c -o bin/apfm.o bin/apfm.cpp
In file included from bin/apfm.cpp:21:
In file included from ./Pascal/Pascal.h:5:
In file included from ./Pascal/Entry.h:4:
./Common/smart_pointers.h:22:10: fatal error: 'tr1/memory' file not found
#include <tr1/memory>
         ^
1 error generated.
make: *** [bin/apfm.o] Error 1

I can get past this by defining CPP0X, but then I get a different error:

]make
c++  -Wall -W -Wno-multichar -I. -O2 -g  -I/usr/local/include/osxfuse/fuse  -c -o bin/apfm.o bin/apfm.cpp
c++  -Wall -W -Wno-multichar -I. -O2 -g  -I/usr/local/include/osxfuse/fuse  -c -o Cache/BlockCache.o Cache/BlockCache.cpp
c++  -Wall -W -Wno-multichar -I. -O2 -g  -I/usr/local/include/osxfuse/fuse  -c -o Cache/ConcreteBlockCache.o Cache/ConcreteBlockCache.cpp
In file included from Cache/ConcreteBlockCache.cpp:2:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:628:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3808:29: error: calling a private constructor of class
      'Device::ConcreteBlockCache'
            :  __data_(__a, _Tp(__a0, __a1)) {}
                            ^
Originally created by @lifepillar on GitHub (Aug 15, 2016). I am trying to build this on El Capitan. The latest release (v2_2010-03-18) fails early with: ``` ]make c++ -Wall -O2 -g -c -o newfs_prodos.o newfs_prodos.cpp newfs_prodos.cpp:10:10: fatal error: 'BlockDevice.h' file not found #include "BlockDevice.h" ^ 1 error generated. make: *** [newfs_prodos.o] Error 1 ``` The master also fails soon: ``` ]make c++ -Wall -W -Wno-multichar -I. -O2 -g -I/usr/local/include/osxfuse/fuse -c -o bin/apfm.o bin/apfm.cpp In file included from bin/apfm.cpp:21: In file included from ./Pascal/Pascal.h:5: In file included from ./Pascal/Entry.h:4: ./Common/smart_pointers.h:22:10: fatal error: 'tr1/memory' file not found #include <tr1/memory> ^ 1 error generated. make: *** [bin/apfm.o] Error 1 ``` I can get past this by defining `CPP0X`, but then I get a different error: ``` ]make c++ -Wall -W -Wno-multichar -I. -O2 -g -I/usr/local/include/osxfuse/fuse -c -o bin/apfm.o bin/apfm.cpp c++ -Wall -W -Wno-multichar -I. -O2 -g -I/usr/local/include/osxfuse/fuse -c -o Cache/BlockCache.o Cache/BlockCache.cpp c++ -Wall -W -Wno-multichar -I. -O2 -g -I/usr/local/include/osxfuse/fuse -c -o Cache/ConcreteBlockCache.o Cache/ConcreteBlockCache.cpp In file included from Cache/ConcreteBlockCache.cpp:2: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:628: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3808:29: error: calling a private constructor of class 'Device::ConcreteBlockCache' : __data_(__a, _Tp(__a0, __a1)) {} ^ ```
Author
Owner

@ksherlock commented on GitHub (Aug 15, 2016):

I've pushed an update to build with modern compilers. It was originally written before c++11 was official but some features were available in gcc's libstdc++ tr1 but tr1 no longer exists with clang and libcxx.

@ksherlock commented on GitHub (Aug 15, 2016): I've pushed an update to build with modern compilers. It was originally written before c++11 was official but some features were available in gcc's libstdc++ tr1 but tr1 no longer exists with clang and libcxx.
Author
Owner

@lifepillar commented on GitHub (Aug 16, 2016):

Thanks, that fixes the original problem. I have to replace all includes such as #include <fuse/fuse_opt.h> with #include <fuse_opt.h> to build without errors. I am building against FUSE for OS X v2.8.3.

@lifepillar commented on GitHub (Aug 16, 2016): Thanks, that fixes the original problem. I have to replace all includes such as `#include <fuse/fuse_opt.h>` with `#include <fuse_opt.h>` to build without errors. I am building against FUSE for OS X v2.8.3.
Author
Owner

@ksherlock commented on GitHub (Aug 16, 2016):

Thanks! I have updated it for the updated include locations.

@ksherlock commented on GitHub (Aug 16, 2016): Thanks! I have updated it for the updated include locations.
Author
Owner

@lifepillar commented on GitHub (Aug 17, 2016):

Thanks! Any plan to create a new release?

@lifepillar commented on GitHub (Aug 17, 2016): Thanks! Any plan to create a new release?
Author
Owner

@ksherlock commented on GitHub (Aug 17, 2016):

I created a new release.

@ksherlock commented on GitHub (Aug 17, 2016): I created a [new release](https://github.com/ksherlock/profuse/releases/tag/2016-08-16).
Author
Owner

@lifepillar commented on GitHub (Aug 17, 2016):

Thanks, it works just fine!

@lifepillar commented on GitHub (Aug 17, 2016): Thanks, it works just fine!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/profuse#1