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

compilation error on Ubuntu 18.04.03 LTS #57

Open
pemgithub opened this issue Nov 13, 2019 · 4 comments
Open

compilation error on Ubuntu 18.04.03 LTS #57

pemgithub opened this issue Nov 13, 2019 · 4 comments

Comments

@pemgithub
Copy link

pemgithub commented Nov 13, 2019

I followed README.md "Building on Ubuntu". To install qt, I ran (sudo apt-get install qtbase5-dev). README.md says to use Qt 5.9.2, so next I will try installing from http://download.qt.io/official_releases/qt/5.9/5.9.2/ -> qt-opensource-linux-x64-5.9.2.run. However, my make errors seem unrelated to Qt.

$ cd ~/pemCode/GPUOpen/RGA/Build
$ ./Prebuild.sh --vk-include /usr/include/vulkan/ --vk-lib /usr/lib/x86_64-linux-gnu
$ cd Linux/Make/Build
$ make

[ 25%] Building CXX object Core/Vulkan/Backend/CMakeFiles/VulkanBackend.dir/__/__/__/Utils/Vulkan/Src/rgPsoSerializerVulkan.cpp.o
In file included from /home/pemgithub/pemCode/GPUOpen/RGA/Utils/Vulkan/Src/rgPsoSerializerVulkan.cpp:6:0:
/home/pemgithub/pemCode/GPUOpen/RGA/Core/Vulkan/Backend/../../../../Common/Lib/Ext/json/json-3.2.0/single_include/nlohmann/json.hpp:1:1: error: expected unqualified-id before ‘<’ token
 <HTML><HEAD>
 ^
In file included from /usr/include/c++/7/vector:63:0,
                 from /home/pemgithub/pemCode/GPUOpen/RGA/Core/Vulkan/Backend/../../../../RGA/Utils/Vulkan/Include/rgPipelineTypes.h:4,
                 from /home/pemgithub/pemCode/GPUOpen/RGA/Core/Vulkan/Backend/../../../../RGA/Utils/Vulkan/Include/rgPsoSerializerVulkan.h:7,
                 from /home/pemgithub/pemCode/GPUOpen/RGA/Utils/Vulkan/Src/rgPsoSerializerVulkan.cpp:7:
/usr/include/c++/7/bits/stl_uninitialized.h: In static member function ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator)’:
/usr/include/c++/7/bits/stl_uninitialized.h:83:8: error: ‘_Construct’ is not a member of ‘std’
   std::_Construct(std::__addressof(*__cur), *__first);
        ^~~~~~~~~~
/usr/include/c++/7/bits/stl_uninitialized.h:88:13: error: ‘_Destroy’ is not a member of ‘std’
        std::_Destroy(__result, __cur);
             ^~~~~~~~
/usr/include/c++/7/bits/stl_uninitialized.h: In static member function ‘static void std::__uninitialized_fill<_TrivialValueType>::__uninit_fill(_ForwardIterator, _ForwardIterator, const _Tp&)’:
/usr/include/c++/7/bits/stl_uninitialized.h:150:8: error: ‘_Construct’ is not a member of ‘std’
   std::_Construct(std::__addressof(*__cur), __x);
@pemgithub
Copy link
Author

pemgithub commented Nov 13, 2019

Update: I installed (http://download.qt.io/official_releases/qt/5.9/5.9.2/ -> qt-opensource-linux-x64-5.9.2.run) to ~/pemInstalls, then I tried (./Prebuild.sh --vk-include /usr/include/vulkan/ --vk-lib /usr/lib/x86_64-linux-gnu --qt ~/pemInstalls/Qt5.9.2/5.9.2/gcc_64) (cd Linux/Make/Debug/) (make). I get the same errors during make.

$ make
[  2%] Built target AMDTBaseTools
[ 18%] Built target AMDTOSWrappers
[ 25%] Built target RadeonGPUAnalyzerBackend
[ 25%] Built target DeviceInfoLib
[ 25%] Building CXX object Core/Vulkan/Backend/CMakeFiles/VulkanBackend.dir/__/__/__/Utils/Vulkan/Src/rgPsoSerializerVulkan.cpp.o
In file included from /home/pemgithub/pemCode/GPUOpen/RGA/Utils/Vulkan/Src/rgPsoSerializerVulkan.cpp:6:0:
/home/pemgithub/pemCode/GPUOpen/RGA/Core/Vulkan/Backend/../../../../Common/Lib/Ext/json/json-3.2.0/single_include/nlohmann/json.hpp:1:1: error: expected unqualified-id before ‘<’ token
 <HTML><HEAD>
 ^
In file included from /usr/include/c++/7/vector:63:0,
                 from /home/pemgithub/pemCode/GPUOpen/RGA/Core/Vulkan/Backend/../../../../RGA/Utils/Vulkan/Include/rgPipelineTypes.h:4,
                 from /home/pemgithub/pemCode/GPUOpen/RGA/Core/Vulkan/Backend/../../../../RGA/Utils/Vulkan/Include/rgPsoSerializerVulkan.h:7,
                 from /home/pemgithub/pemCode/GPUOpen/RGA/Utils/Vulkan/Src/rgPsoSerializerVulkan.cpp:7:
/usr/include/c++/7/bits/stl_uninitialized.h: In static member function ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator)’:
/usr/include/c++/7/bits/stl_uninitialized.h:83:8: error: ‘_Construct’ is not a member of ‘std’
   std::_Construct(std::__addressof(*__cur), *__first);
        ^~~~~~~~~~
/usr/include/c++/7/bits/stl_uninitialized.h:88:13: error: ‘_Destroy’ is not a member of ‘std’
        std::_Destroy(__result, __cur);
             ^~~~~~~~
/usr/include/c++/7/bits/stl_uninitialized.h: In static member function ‘static void std::__uninitialized_fill<_TrivialValueType>::__uninit_fill(_ForwardIterator, _ForwardIterator, const _Tp&)’:
/usr/include/c++/7/bits/stl_uninitialized.h:150:8: error: ‘_Construct’ is not a member of ‘std’
   std::_Construct(std::__addressof(*__cur), __x);
        ^~~~~~~~~~
/usr/include/c++/7/bits/stl_uninitialized.h:154:13: error: ‘_Destroy’ is not a member of ‘std’
        std::_Destroy(__first, __cur);

@pemgithub
Copy link
Author

Update: I tried the manual variation described in README.md (instead of running Prebuild.sh):

$ cd Build
$ python3 FetchDependencies.py
$ cd ..
$ mkdir _build
$ cd _build
$ cmake -DCMAKE_BUILD_TYPE=Release ../
$ make

I get the same errors.

@pemgithub
Copy link
Author

verified I'm using "gcc 4.7.2 or later" per README.md:

$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0

@AmitBM
Copy link
Contributor

AmitBM commented Dec 9, 2019

Hi pemgithub,
What version of the Vulkan SDK are you using?

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

2 participants