Bug#1017765: (no subject)

Jochen Sprickerhof jspricke at debian.org
Sat Aug 20 11:09:48 BST 2022


Hi Sylvestre,,

* Sylvestre Ledru <sylvestre at debian.org> [2022-08-19 23:46]:
> Could you please provide a reduce test case?

Sure, this produces the same error with clang++-14 on armel but works with
clang++-13 and gcc:

template <typename Packet> void psincos_float(Packet &_x) {
   __asm__("" : "+g,w"(_x));
}
int main() {}

Some context to the function is here:

https://gitlab.com/libeigen/eigen/-/commit/82d61af3a490154ad1c0ae2fe00c561095854897#859198abc81bc7db86d6add0a16b27c957a7358b_1066_1070

Cheers Jochen

* Sylvestre Ledru <sylvestre at debian.org> [2022-08-19 23:46]:
>Hello
>
>Could you please provide a reduce test case?
>
>Thanks
>Sylvestre
>On 2022-08-19 23:34, Jochen Sprickerhof wrote:
>>Package: clang-14
>>Version: 1:14.0.6-2
>>Severity: normal
>>X-Debbugs-Cc: jspricke at debian.org
>>Control: affects -1 libeigen3-dev src:pcl
>>
>>Hi,
>>
>>on an up to date armel:
>>
>>jspricke at harris:~$ dd-schroot-cmd -c $sessionid apt-get install
>>clang-13 clang-14 libeigen3-dev
>>(sid_armel-dchroot)jspricke at harris:~$ echo -e "#include
>><Eigen/Core>\nint main() {}" > eigen.cpp
>>(sid_armel-dchroot)jspricke at harris:~$ clang++-14 -I
>>/usr/include/eigen3 eigen.cpp
>>In file included from eigen.cpp:1:
>>In file included from /usr/include/eigen3/Eigen/Core:250:
>>/usr/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:641:3:
>>error: invalid output constraint '+g,w' in asm
>>  EIGEN_OPTIMIZATION_BARRIER(y_round)
>>  ^
>>/usr/include/eigen3/Eigen/src/Core/util/Macros.h:1134:61: note:
>>expanded from macro 'EIGEN_OPTIMIZATION_BARRIER'
>>      #define EIGEN_OPTIMIZATION_BARRIER(X)  __asm__  ("" : "+g,w" 
>>(X));
>>                                                            ^
>>In file included from eigen.cpp:1:
>>In file included from /usr/include/eigen3/Eigen/Core:250:
>>/usr/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:663:3:
>>error: invalid output constraint '+g,w' in asm
>>  EIGEN_OPTIMIZATION_BARRIER(x)
>>  ^
>>/usr/include/eigen3/Eigen/src/Core/util/Macros.h:1134:61: note:
>>expanded from macro 'EIGEN_OPTIMIZATION_BARRIER'
>>      #define EIGEN_OPTIMIZATION_BARRIER(X)  __asm__  ("" : "+g,w" 
>>(X));
>>                                                            ^
>>In file included from eigen.cpp:1:
>>In file included from /usr/include/eigen3/Eigen/Core:250:
>>/usr/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:665:3:
>>error: invalid output constraint '+g,w' in asm
>>  EIGEN_OPTIMIZATION_BARRIER(x)
>>  ^
>>/usr/include/eigen3/Eigen/src/Core/util/Macros.h:1134:61: note:
>>expanded from macro 'EIGEN_OPTIMIZATION_BARRIER'
>>      #define EIGEN_OPTIMIZATION_BARRIER(X)  __asm__  ("" : "+g,w" 
>>(X));
>>                                                            ^
>>3 errors generated.
>>
>>(sid_armel-dchroot)jspricke at harris:~$ clang++-13 -I
>>/usr/include/eigen3 eigen.cpp
>>(sid_armel-dchroot)jspricke at harris:~$ g++ -I /usr/include/eigen3 
>>eigen.cpp
>>
>>This currently breaks src:pcl, can you have a look?
>>
>>Cheers Jochen
>>
>>
>>-- System Information:
>>Debian Release: bookworm/sid
>>  APT prefers unstable-debug
>>  APT policy: (500, 'unstable-debug'), (500, 'unstable')
>>merged-usr: no
>>Architecture: armel (armv7l)
>>
>>Kernel: Linux 4.19.0-21-armmp (SMP w/1 CPU thread)
>>Kernel taint flags: TAINT_DIE
>>Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
>>Shell: /bin/sh linked to /bin/dash
>>Init: unable to detect
>>
>>Versions of packages clang-14 depends on:
>>ii  binutils                2.38.90.20220713-2
>>ii  libatomic1              12.1.0-8
>>ii  libc6                   2.34-4
>>ii  libc6-dev               2.34-4
>>ii  libclang-common-14-dev  1:14.0.6-2
>>ii  libclang-cpp14          1:14.0.6-2
>>ii  libclang1-14            1:14.0.6-2
>>ii  libgcc-12-dev           12.1.0-8
>>ii  libgcc-s1               12.1.0-8
>>ii  libllvm14               1:14.0.6-2
>>ii  libobjc-12-dev          12.1.0-8
>>ii  libstdc++-12-dev        12.1.0-8
>>ii  libstdc++6              12.1.0-8
>>ii  llvm-14-linker-tools    1:14.0.6-2
>>
>>Versions of packages clang-14 recommends:
>>pn  llvm-14-dev  <none>
>>ii  python3      3.10.6-1
>>
>>Versions of packages clang-14 suggests:
>>pn  clang-14-doc  <none>
>>
>>-- no debconf information
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20220820/b9454430/attachment-0001.sig>


More information about the Pkg-llvm-team mailing list