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

libnpa 0.5.0 fails to build #16

Closed
godofgrunts opened this issue Oct 27, 2016 · 2 comments
Closed

libnpa 0.5.0 fails to build #16

godofgrunts opened this issue Oct 27, 2016 · 2 comments

Comments

@godofgrunts
Copy link

godofgrunts commented Oct 27, 2016

  • Configuring libnpa version 0.5.0

-- The CXX compiler identification is GNU 6.2.1

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Boost version: 1.61.0

-- Found the following Boost libraries:

-- system

-- locale

-- filesystem

-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8")

-- Found FLEX: /usr/bin/flex (found version "2.6.1")

-- Found BISON: /usr/bin/bison (found version "3.0.4")

-- Configuring done

-- Generating done

-- Build files have been written to: /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0

[ 5%] [FLEX][lexer] Building scanner with flex 2.6.1

[ 11%] [BISON][parser] Building parser with bison 3.0.4

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/parser.y: warning: 176 shift/reduce conflicts [-Wconflicts-sr]

Scanning dependencies of target npa

[ 16%] Building CXX object CMakeFiles/npa.dir/src/inpafile.cpp.o

[ 22%] Building CXX object CMakeFiles/npa.dir/src/npafile.cpp.o

[ 27%] Building CXX object CMakeFiles/npa.dir/src/nsbmagic.cpp.o

[ 33%] Building CXX object CMakeFiles/npa.dir/src/onpafile.cpp.o

[ 38%] Building CXX object CMakeFiles/npa.dir/src/scriptfile.cpp.o

[ 44%] Building CXX object CMakeFiles/npa.dir/src/exefile.cpp.o

[ 50%] Building CXX object CMakeFiles/npa.dir/src/fscommon.cpp.o

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp: In function ‘char* fs::ReadFile(const string&, uint32_t&)’:

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:11:5: error: reference to ‘ifstream’ is ambiguous

 ifstream File(Filename, ios::binary);

 ^~~~~~~~

In file included from /usr/include/boost/filesystem/string_file.hpp:14:0,

             from /usr/include/boost/filesystem.hpp:19,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:3:

/usr/include/boost/filesystem/fstream.hpp:169:32: note: candidates are: typedef class boost::filesystem::basic_ifstream boost::filesystem::ifstream

typedef basic_ifstream ifstream;

                            ^~~~~~~~

In file included from /usr/include/c++/6.2.1/bits/localefwd.h:41:0,

             from /usr/include/c++/6.2.1/string:43,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/include/fscommon.hpp:4,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:1:

/usr/include/c++/6.2.1/iosfwd:162:34: note: typedef class std::basic_ifstream std::ifstream

typedef basic_ifstream ifstream;

                              ^~~~~~~~

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:12:10: error: ‘File’ was not declared in this scope

 if (!File)

      ^~~~

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:15:5: error: ‘File’ was not declared in this scope

 File.seekg(0, ios::end);

 ^~~~

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp: In function ‘void fs::WriteFile(const string&, const char*, uint32_t)’:

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:43:5: error: reference to ‘ofstream’ is ambiguous

 ofstream File(Filename, ios::binary);

 ^~~~~~~~

In file included from /usr/include/boost/filesystem/string_file.hpp:14:0,

             from /usr/include/boost/filesystem.hpp:19,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:3:

/usr/include/boost/filesystem/fstream.hpp:170:32: note: candidates are: typedef class boost::filesystem::basic_ofstream boost::filesystem::ofstream

typedef basic_ofstream ofstream;

                            ^~~~~~~~

In file included from /usr/include/c++/6.2.1/bits/localefwd.h:41:0,

             from /usr/include/c++/6.2.1/string:43,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/include/fscommon.hpp:4,

             from /tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:1:

/usr/include/c++/6.2.1/iosfwd:165:34: note: typedef class std::basic_ofstream std::ofstream

typedef basic_ofstream ofstream;

                              ^~~~~~~~

/tmp/yaourt-tmp-rwhited/aur-libnpa/src/libnpa-0.5.0/src/fscommon.cpp:44:5: error: ‘File’ was not declared in this scope

 File.write(pData, Size);

 ^~~~

make[2]: *** [CMakeFiles/npa.dir/build.make:218: CMakeFiles/npa.dir/src/fscommon.cpp.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/npa.dir/all] Error 2

make: *** [Makefile:150: all] Error 2

@godofgrunts
Copy link
Author

boost-libs 1.61.0-2

zlib 1.2.8-4

boost 1.61.0-2

cmake 3.6.2-2

@godofgrunts
Copy link
Author

I wasn't compiling the newest version. That's my bad. 0.5.1 works.

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

No branches or pull requests

1 participant