LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-13-2018, 11:11 AM   #1
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,554

Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Vulkan 1.1.88 on Slackware 14.2


So I'm trying to update vulkan-sdk on Slackware 14.2 (multilib). For 1.1.73 I used the directions here: https://www.linuxquestions.org/quest...7/#post5890380 After following all directions given there, I was able to build 1.1.73 for both 64-bit and 32-bit.

I'm using the 1.1.85 current slackbuild found here: https://mirrors.slackware.com/slackw.../x/vulkan-sdk/ (but calling fetch-sources with VERSION=1.1.88.0).

After encountering the same error as spike86 got in the 1.1.73 thread, I appended the following after line 91 in vulkan-sdk.Slackbuild:

Code:
sed  -i -e '/#include/i#include <cmath>\n' layers/parameter_validation_utils.cpp
When trying to upgrade it to 1.1.88, I'm still getting this error:

Code:
[ 85%] Building CXX object layers/CMakeFiles/VkLayer_parameter_validation.dir/parameter_validation_utils.cpp.o
/tmp/Vulkan-ValidationLayers-sdk-1.1.88.0/layers/parameter_validation_utils.cpp: In lambda function:
/tmp/Vulkan-ValidationLayers-sdk-1.1.88.0/layers/parameter_validation_utils.cpp:1238:13: error: '__builtin_isnan' is not a member of 'std'
         if (std::isnan(v1_f)) return false;
             ^
/tmp/Vulkan-ValidationLayers-sdk-1.1.88.0/layers/parameter_validation_utils.cpp:1238:13: note: suggested alternative:
<built-in>: note:   '__builtin_isnan'
layers/CMakeFiles/VkLayer_parameter_validation.dir/build.make:94: recipe for target 'layers/CMakeFiles/VkLayer_parameter_validation.dir/parameter_validation_utils.cpp.o' failed
make[2]: *** [layers/CMakeFiles/VkLayer_parameter_validation.dir/parameter_validation_utils.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 88%] Linking CXX shared library libVkLayer_object_tracker.so
[ 88%] Built target VkLayer_object_tracker
Scanning dependencies of target VkLayer_object_tracker-staging-json
Scanning dependencies of target VkLayer_object_tracker-json
[ 88%] Built target VkLayer_object_tracker-staging-json
[ 88%] Built target VkLayer_object_tracker-json
[ 91%] Linking CXX shared library libVkLayer_threading.so
[ 91%] Built target VkLayer_threading
Scanning dependencies of target VkLayer_threading-json
Scanning dependencies of target VkLayer_threading-staging-json
[ 91%] Built target VkLayer_threading-json
[ 91%] Built target VkLayer_threading-staging-json
CMakeFiles/Makefile2:238: recipe for target 'layers/CMakeFiles/VkLayer_parameter_validation.dir/all' failed
make[1]: *** [layers/CMakeFiles/VkLayer_parameter_validation.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 94%] Linking CXX shared library libVkLayer_unique_objects.so
[ 94%] Built target VkLayer_unique_objects
[ 97%] Linking CXX shared library libVkLayer_core_validation.so
[ 97%] Built target VkLayer_core_validation
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
[ 23%] Built target generate_helper_files
[ 38%] Built target VkLayer_utils
[ 41%] Building CXX object layers/CMakeFiles/VkLayer_parameter_validation.dir/parameter_validation_utils.cpp.o
/tmp/Vulkan-ValidationLayers-sdk-1.1.88.0/layers/parameter_validation_utils.cpp: In lambda function:
/tmp/Vulkan-ValidationLayers-sdk-1.1.88.0/layers/parameter_validation_utils.cpp:1238:13: error: '__builtin_isnan' is not a member of 'std'
         if (std::isnan(v1_f)) return false;
             ^
/tmp/Vulkan-ValidationLayers-sdk-1.1.88.0/layers/parameter_validation_utils.cpp:1238:13: note: suggested alternative:
<built-in>: note:   '__builtin_isnan'
layers/CMakeFiles/VkLayer_parameter_validation.dir/build.make:94: recipe for target 'layers/CMakeFiles/VkLayer_parameter_validation.dir/parameter_validation_utils.cpp.o' failed
make[2]: *** [layers/CMakeFiles/VkLayer_parameter_validation.dir/parameter_validation_utils.cpp.o] Error 1
CMakeFiles/Makefile2:238: recipe for target 'layers/CMakeFiles/VkLayer_parameter_validation.dir/all' failed
make[1]: *** [layers/CMakeFiles/VkLayer_parameter_validation.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Any ideas how to fix this? Or, more likely, what am I doing wrong?

Last edited by garpu; 10-13-2018 at 11:12 AM.
 
Old 10-13-2018, 11:27 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
1.1.88 is out?

And are you sure fetch-sources.sh actually did what you expected? There's a BRANCH variable that actually determines which version of the source code is checked out. If you didn't change it, then you're still building 1.1.85.0. You're just changing the versioning information on the package and directories.

Last edited by dugan; 10-13-2018 at 11:30 AM.
 
Old 10-13-2018, 11:33 AM   #3
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,554

Original Poster
Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
https://github.com/KhronosGroup/Vulk...e132f33afad68c

So I'm told? I know it's needed for dxvk 0.90. I'm not in too big of a hurry to upgrade, since dxvk 0.81 still works fine for me.
 
Old 10-13-2018, 11:35 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Call it with VERSION=11.88.0 and BRANCH=0a7a04f32bd473bc7428efdbbbe132f33afad68c (or "BRANCH=master") then.

Last edited by dugan; 10-13-2018 at 11:38 AM.
 
Old 10-13-2018, 11:57 AM   #5
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,554

Original Poster
Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Now that you mention it, it is trying to download Vulkan-ValidationLayers-sdk-1.1.85. This is with "VERSION=1.1.88.0 BRANCH=master ./fetch-sources.sh"

line 55 had a reference to 1.1.85. Changed to 1.1.88, but am still getting the same error in /tmp/Vulkan-ValidationLayers-sdk.

Here's the complete output of fetch-sources.sh:

Code:
% ~/src/vulkan-sdk VERSION=1.1.88.0 BRANCH=master ./fetch-sources.sh
Cloning into 'Vulkan-Headers-sdk-1.1.88.0'...
remote: Enumerating objects: 31, done.
remote: Counting objects: 100% (31/31), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 567 (delta 9), reused 18 (delta 8), pack-reused 536
Receiving objects: 100% (567/567), 1.73 MiB | 3.65 MiB/s, done.
Resolving deltas: 100% (183/183), done.
Cloning into 'Vulkan-ValidationLayers-sdk-1.1.88.0'...
remote: Enumerating objects: 39, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 42948 (delta 19), reused 24 (delta 12), pack-reused 42909
Receiving objects: 100% (42948/42948), 36.34 MiB | 6.62 MiB/s, done.
Resolving deltas: 100% (33617/33617), done.
Cloning into 'Vulkan-Loader-sdk-1.1.88.0'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 13741 (delta 5), reused 9 (delta 3), pack-reused 13721
Receiving objects: 100% (13741/13741), 7.02 MiB | 5.30 MiB/s, done.
Resolving deltas: 100% (10218/10218), done.
Cloning into 'Vulkan-Tools-sdk-1.1.88.0'...
remote: Enumerating objects: 39, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 37718 (delta 16), reused 28 (delta 12), pack-reused 37679
Receiving objects: 100% (37718/37718), 38.87 MiB | 6.75 MiB/s, done.
Resolving deltas: 100% (29193/29193), done.
Cloning into 'glslang'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 37038 (delta 0), reused 2 (delta 0), pack-reused 37035
Receiving objects: 100% (37038/37038), 46.19 MiB | 6.87 MiB/s, done.
Resolving deltas: 100% (31453/31453), done.
Note: checking out '91ac4290bcf2cb930b4fb0981f09c00c0b6797e1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 91ac4290... Merge pull request #1510 from Kangz/complete_lib
Cloning into 'SPIRV-Tools'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 17908 (delta 7), reused 15 (delta 6), pack-reused 17882
Receiving objects: 100% (17908/17908), 9.18 MiB | 5.94 MiB/s, done.
Resolving deltas: 100% (13892/13892), done.
Note: checking out '9bfe0eb25e3dfdf4f3fd86ab6c0cda009c9bd661'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 9bfe0eb2... Wrap tests needing effcee inside SPIRV_EFFCEE
Cloning into 'SPIRV-Headers'...
remote: Enumerating objects: 58, done.
remote: Counting objects: 100% (58/58), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 1009 (delta 26), reused 37 (delta 19), pack-reused 951
Receiving objects: 100% (1009/1009), 512.71 KiB | 2.35 MiB/s, done.
Resolving deltas: 100% (635/635), done.
Note: checking out 'd5b2e1255f706ce1f88812217e9a554f299848af'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at d5b2e12... Fix D -> d typo in previous commit.
ETA: each time I'm building vulkan-sdk.Slackbuild, I'm deleting /tmp/package-vulkan-sdk beforehand, so it's a clean build each time.

Last edited by garpu; 10-13-2018 at 12:07 PM.
 
Old 10-13-2018, 02:57 PM   #6
mickski56
Member
 
Registered: Mar 2018
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
Are you sure you add the sed line in the right place, just after:-

tar xvf $CWD/Vulkan-ValidationLayers-sdk-$VERSION.tar.?z || exit 1
cd $TMP/Vulkan-ValidationLayers-sdk-$VERSION

which is about line 172 in the slackbuild from current.

HTH
 
1 members found this post helpful.
Old 10-13-2018, 04:27 PM   #7
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,554

Original Poster
Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Quote:
Originally Posted by mickski56 View Post
Are you sure you add the sed line in the right place, just after:-

tar xvf $CWD/Vulkan-ValidationLayers-sdk-$VERSION.tar.?z || exit 1
cd $TMP/Vulkan-ValidationLayers-sdk-$VERSION

which is about line 172 in the slackbuild from current.

HTH
Yup, that did it! It built without error!
 
Old 10-13-2018, 05:19 PM   #8
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,554

Original Poster
Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Except I'm having an issue building the 32-bit one.

commands used:

. /etc/profile.d/32dev.sh
ARCH=i586 ASFLAGS=--32 sudo ./vulkan-sdk.SlackBuild

Builds a 64-bit package.

If I do "sudo ARCH=i586..." I get:

Code:
[  8%] Built target loader_gen_files
[ 41%] Built target generate_helper_files
[ 45%] Building C object loader/CMakeFiles/asm_offset.dir/asm_offset.c.o
/tmp/Vulkan-Loader-sdk-1.1.88.0/loader/asm_offset.c:1:0: error: CPU you selected does not support x86-64 instruction set
 /*
 ^
/tmp/Vulkan-Loader-sdk-1.1.88.0/loader/asm_offset.c:1:0: error: CPU you selected does not support x86-64 instruction set
loader/CMakeFiles/asm_offset.dir/build.make:62: recipe for target 'loader/CMakeFiles/asm_offset.dir/asm_offset.c.o' failed
make[2]: *** [loader/CMakeFiles/asm_offset.dir/asm_offset.c.o] Error 1
CMakeFiles/Makefile2:154: recipe for target 'loader/CMakeFiles/asm_offset.dir/all' failed
make[1]: *** [loader/CMakeFiles/asm_offset.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
[  8%] Built target loader_gen_files
[ 41%] Built target generate_helper_files
[ 45%] Building C object loader/CMakeFiles/asm_offset.dir/asm_offset.c.o
/tmp/Vulkan-Loader-sdk-1.1.88.0/loader/asm_offset.c:1:0: error: CPU you selected does not support x86-64 instruction set
 /*
 ^
/tmp/Vulkan-Loader-sdk-1.1.88.0/loader/asm_offset.c:1:0: error: CPU you selected does not support x86-64 instruction set
loader/CMakeFiles/asm_offset.dir/build.make:62: recipe for target 'loader/CMakeFiles/asm_offset.dir/asm_offset.c.o' failed
make[2]: *** [loader/CMakeFiles/asm_offset.dir/asm_offset.c.o] Error 1
CMakeFiles/Makefile2:154: recipe for target 'loader/CMakeFiles/asm_offset.dir/all' failed
make[1]: *** [loader/CMakeFiles/asm_offset.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
This is another dumb mistake, isn't it?
 
Old 10-14-2018, 08:36 AM   #9
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,554

Original Poster
Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Yes, it was a dumb mistake.

Enter root first.
. /etc/profile.d/32dev.sh
ARCH=i586 ASFLAGS=--32 sudo ./vulkan-sdk.SlackBuild

And y'all can probably tell how often it is these days that I build a 32-bit slackbuild... Here's hoping this helps someone else!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vulkan not working in 14.2 ahTh6aaf Slackware 7 03-24-2018 01:01 AM
Quake ported to Vulkan Rinndalir Linux - Games 1 08-03-2016 02:57 PM
LXer: Vulkan at GDC videos now up, with Valve talking about porting Source 2 to Vulkan LXer Syndicated Linux News 0 03-19-2016 11:53 AM
LXer: Vulkan 1.0 and Vulkan SDK Announced for Linux and Windows LXer Syndicated Linux News 0 02-17-2016 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration