Bug#865111: openmprtl FTBFS on mips64el: #error Unknown or unsupported architecture

James Cowgill jcowgill at debian.org
Mon Jun 19 14:05:12 UTC 2017


Control: tags -1 patch

Hi,

On 19/06/17 13:20, Adrian Bunk wrote:
> Source: openmprtl
> Version: 4.0-1
> Severity: serious
> 
> https://buildd.debian.org/status/fetch.php?pkg=openmprtl&arch=mips64el&ver=4.0-1&stamp=1497874221&raw=0
> 
> ...
> cd /«PKGBUILDDIR»/obj-mips64el-linux-gnuabi64/runtime/src && /usr/bin/c++   -Domp_EXPORTS -I/«PKGBUILDDIR»/obj-mips64el-linux-gnuabi64/runtime/src -I/«PKGBUILDDIR»/runtime/src -I/«PKGBUILDDIR»/runtime/src/i18n -I/«PKGBUILDDIR»/runtime/src/include/45 -I/«PKGBUILDDIR»/runtime/src/thirdparty/ittnotify  -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC   -D _GNU_SOURCE -D _REENTRANT -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -fno-exceptions -fno-rtti -Wno-sign-compare -Wno-unused-function -Wno-unused-value -Wno-unused-variable -Wno-switch -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-missing-braces -Wno-comment -o CMakeFiles/omp.dir/kmp_global.cpp.o -c /«PKGBUILDDIR»/runtime/src/kmp_global.cpp
> In file included from /«PKGBUILDDIR»/runtime/src/kmp_global.cpp:17:0:
> /«PKGBUILDDIR»/runtime/src/kmp_affinity.h:229:4: error: #error Unknown or unsupported architecture
>  #  error Unknown or unsupported architecture
>     ^~~~~
> runtime/src/CMakeFiles/omp.dir/build.make:257: recipe for target 'runtime/src/CMakeFiles/omp.dir/kmp_global.cpp.o' failed

It looks to me like the upstream patch was misapplied in kmp_affinity.h.
The attached patch should fix this by re-inserting the #else at the end
of the #if chain. I also fix the indentation of the mips defines which
was off by 1 character.

Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-affinity.patch
Type: text/x-patch
Size: 2107 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20170619/2b4be745/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20170619/2b4be745/attachment.sig>


More information about the Pkg-llvm-team mailing list