Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908220 - sci-libs/rocBLAS-5.4.2-r3 fails to compile
Summary: sci-libs/rocBLAS-5.4.2-r3 fails to compile
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-10 07:42 UTC by bob
Modified: 2023-06-10 15:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
-eav rocBLAS (uses,31.32 KB, text/plain)
2023-06-10 07:43 UTC, bob
Details
build.log for 5.1.3 (log.tar.gz,133.51 KB, application/gzip)
2023-06-10 07:51 UTC, bob
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bob 2023-06-10 07:42:52 UTC
4 errors of the following form

```4 errors generated when compiling for gfx900.
[23/248] /usr/bin/hipcc -DTENSILE_DEFAULT_SERIALIZATION -DTENSILE_MSGPACK=1 -DTENSILE_USE_HIP -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -I/usr/share/Tensile/Source/lib/include  -march=
native -w -O3 -pipe -fno-stack-protector -D__HIP_HCC_COMPAT_MODE__=1 -std=c++14 -fPIC -Wno-unused-result -x hip --hip-device-lib-path=/usr/lib/amdgcn/bitcode --offload-arch=gfx900 -MD -MT Tens
ile/lib/CMakeFiles/TensileHost.dir/source/hip/HipHardware.cpp.o -MF Tensile/lib/CMakeFiles/TensileHost.dir/source/hip/HipHardware.cpp.o.d -o Tensile/lib/CMakeFiles/TensileHost.dir/source/hip/H
ipHardware.cpp.o -c /usr/share/Tensile/Source/lib/source/hip/HipHardware.cpp
[24/248] /usr/bin/hipcc -DTENSILE_DEFAULT_SERIALIZATION -DTENSILE_MSGPACK=1 -DTENSILE_USE_HIP -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -I/usr/share/Tensile/Source/lib/include  -march=
native -w -O3 -pipe -fno-stack-protector -D__HIP_HCC_COMPAT_MODE__=1 -std=c++14 -fPIC -Wno-unused-result -x hip --hip-device-lib-path=/usr/lib/amdgcn/bitcode --offload-arch=gfx900 -MD -MT Tens
ile/lib/CMakeFiles/TensileHost.dir/source/ContractionSolution.cpp.o -MF Tensile/lib/CMakeFiles/TensileHost.dir/source/ContractionSolution.cpp.o.d -o Tensile/lib/CMakeFiles/TensileHost.dir/sour
ce/ContractionSolution.cpp.o -c /usr/share/Tensile/Source/lib/source/ContractionSolution.cpp
[25/248] /usr/bin/hipcc -DTENSILE_DEFAULT_SERIALIZATION -DTENSILE_MSGPACK=1 -DTENSILE_USE_HIP -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -I/usr/share/Tensile/Source/lib/include  -march=
native -w -O3 -pipe -fno-stack-protector -D__HIP_HCC_COMPAT_MODE__=1 -std=c++14 -fPIC -Wno-unused-result -x hip --hip-device-lib-path=/usr/lib/amdgcn/bitcode --offload-arch=gfx900 -MD -MT Tens
ile/lib/CMakeFiles/TensileHost.dir/source/msgpack/MessagePack.cpp.o -MF Tensile/lib/CMakeFiles/TensileHost.dir/source/msgpack/MessagePack.cpp.o.d -o Tensile/lib/CMakeFiles/TensileHost.dir/sour
ce/msgpack/MessagePack.cpp.o -c /usr/share/Tensile/Source/lib/source/msgpack/MessagePack.cpp
FAILED: Tensile/lib/CMakeFiles/TensileHost.dir/source/msgpack/MessagePack.cpp.o
/usr/bin/hipcc -DTENSILE_DEFAULT_SERIALIZATION -DTENSILE_MSGPACK=1 -DTENSILE_USE_HIP -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -I/usr/share/Tensile/Source/lib/include  -march=native -w
 -O3 -pipe -fno-stack-protector -D__HIP_HCC_COMPAT_MODE__=1 -std=c++14 -fPIC -Wno-unused-result -x hip --hip-device-lib-path=/usr/lib/amdgcn/bitcode --offload-arch=gfx900 -MD -MT Tensile/lib/C
MakeFiles/TensileHost.dir/source/msgpack/MessagePack.cpp.o -MF Tensile/lib/CMakeFiles/TensileHost.dir/source/msgpack/MessagePack.cpp.o.d -o Tensile/lib/CMakeFiles/TensileHost.dir/source/msgpac
k/MessagePack.cpp.o -c /usr/share/Tensile/Source/lib/source/msgpack/MessagePack.cpp
In file included from /usr/share/Tensile/Source/lib/source/msgpack/MessagePack.cpp:27:
In file included from /usr/share/Tensile/Source/lib/include/Tensile/msgpack/MessagePack.hpp:33:
In file included from /usr/share/Tensile/Source/lib/include/Tensile/Serialization.hpp:43:
In file included from /usr/share/Tensile/Source/lib/include/Tensile/Serialization/SolutionLibrary.hpp:47:
In file included from /usr/share/Tensile/Source/lib/include/Tensile/Serialization/PlaceholderLibrary.hpp:34:
In file included from /usr/include/c++/v1/regex:777:
/usr/include/c++/v1/deque:406:67: error: expected ')'
  static _LIBCPP_HIDE_FROM_ABI __local_iterator __local(_Iterator __iter) { return __iter.__ptr_; }
                                                                  ^
/usr/include/c++/v1/deque:406:56: note: to match this '('
  static _LIBCPP_HIDE_FROM_ABI __local_iterator __local(_Iterator __iter) { return __iter.__ptr_; }
                                                       ^
/usr/include/c++/v1/deque:406:57: error: redefinition of '_Iterator' as different kind of symbol
  static _LIBCPP_HIDE_FROM_ABI __local_iterator __local(_Iterator __iter) { return __iter.__ptr_; }
                                                        ^
/usr/include/c++/v1/deque:398:9: note: previous definition is here
  using _Iterator = __deque_iterator<_ValueType, _Pointer, _Reference, _MapPointer, _DiffType, _BlockSize>;
        ^
/usr/include/c++/v1/deque:406:77: error: expected expression
  static _LIBCPP_HIDE_FROM_ABI __local_iterator __local(_Iterator __iter) { return __iter.__ptr_; }
                                                                            ^
/usr/include/c++/v1/deque:419:4: error: expected ';' at end of declaration list
  }
```

Reproducible: Always

Steps to Reproduce:
1. accept keywords for *
2. emerge rocBLAS
Actual Results:  
Build fails

Expected Results:  
Build succeeds

Built with python11, target amdgpu_targets_gfx900.

Flags:
```
CFLAGS="-march=native -w -O3 -pipe -fno-stack-protector"
CXXFLAGS="${CFLAGS}"
```

-eav rocBLAS:
attached
Comment 1 bob 2023-06-10 07:43:35 UTC
Created attachment 863618 [details]
-eav rocBLAS
Comment 2 bob 2023-06-10 07:49:05 UTC
Same issue with 5.1.3

Must be the dependencies? LLVM-16 headers breaking it?
Comment 3 bob 2023-06-10 07:51:34 UTC
Created attachment 863619 [details]
build.log for 5.1.3