[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1022065: marked as done (mujoco: FTBFS on riscv64)



Your message dated Wed, 14 Dec 2022 16:21:43 +0000
with message-id <E1p5UVr-008kOG-0w@fasolo.debian.org>
and subject line Bug#1022065: fixed in mujoco 2.2.2-3
has caused the Debian Bug report #1022065,
regarding mujoco: FTBFS on riscv64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1022065: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022065
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: mujoco
Version: 2.2.2-2
Severity: important
Tags: ftbfs patch
Justification: fails to build from source (but built successfully in the past)
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: i@hack3r.moe, debian-riscv@lists.debian.org

Dear maintainer,

mujoco failed to build on riscv64 due to missing symbols for sub-word atomic
functions:

```
[66/71] : && /usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro     -Wl,--gc-sections simulate/CMakeFiles/simulate.dir/main.cc.o simulate/CMakeFiles/simulate.dir/glfw_dispatch.cc.o simulate/CMakeFiles/simulate.dir/simulate.cc.o simulate/CMakeFiles/simulate.dir/uitools.cc.o -o bin/simulate  -Wl,-rpath,"\$ORIGIN/../lib/riscv64-linux-gnu"  lib/riscv64-linux-gnu/liblibsimulate.a  lib/riscv64-linux-gnu/libmujoco.so.2.2.2  /usr/lib/riscv64-linux-gnu/libglfw.so.3.3  /usr/lib/riscv64-linux-gnu/liblodepng.so && :
FAILED: bin/simulate 
: && /usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro     -Wl,--gc-sections simulate/CMakeFiles/simulate.dir/main.cc.o simulate/CMakeFiles/simulate.dir/glfw_dispatch.cc.o simulate/CMakeFiles/simulate.dir/simulate.cc.o simulate/CMakeFiles/simulate.dir/uitools.cc.o -o bin/simulate  -Wl,-rpath,"\$ORIGIN/../lib/riscv64-linux-gnu"  lib/riscv64-linux-gnu/liblibsimulate.a  lib/riscv64-linux-gnu/libmujoco.so.2.2.2  /usr/lib/riscv64-linux-gnu/libglfw.so.3.3  /usr/lib/riscv64-linux-gnu/liblodepng.so && :
/usr/bin/ld: simulate/CMakeFiles/simulate.dir/simulate.cc.o: in function `std::__atomic_base<bool>::exchange(bool, std::memory_order)':
./obj-riscv64-linux-gnu/./simulate/simulate.cc:513: undefined reference to `__atomic_exchange_1'
collect2: error: ld returned 1 exit status
```

Full buildd log: https://buildd.debian.org/status/fetch.php?pkg=mujoco&arch=riscv64&ver=2.2.2-1&stamp=1664815613&raw=0

Attached is a patch that links libatomic to bin/simulate on riscv64 platform
and fix FTBFS. If more help is needed, please let me know.

Cheers,
Eric
--- a/simulate/CMakeLists.txt
+++ b/simulate/CMakeLists.txt
@@ -245,3 +245,7 @@
     endif()
   endif()
 endif()
+
+if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "riscv64")
+  target_link_libraries(simulate atomic)
+endif()

--- End Message ---
--- Begin Message ---
Source: mujoco
Source-Version: 2.2.2-3
Done: Mo Zhou <lumin@debian.org>

We believe that the bug you reported is fixed in the latest version of
mujoco, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1022065@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mo Zhou <lumin@debian.org> (supplier of updated mujoco package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 14 Dec 2022 11:09:03 -0500
Source: mujoco
Architecture: source
Version: 2.2.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Deep Learning Team <debian-ai@lists.debian.org>
Changed-By: Mo Zhou <lumin@debian.org>
Closes: 1022065 1025682
Changes:
 mujoco (2.2.2-3) unstable; urgency=medium
 .
   * Fix symbols and riscv64 build (Closes: #1022065, #1025682)
Checksums-Sha1:
 a8338b586796338c56ddebbc3492dc5f02b567c6 2289 mujoco_2.2.2-3.dsc
 f385c50629781d081da9c19dd2f3cb438b693881 14036 mujoco_2.2.2-3.debian.tar.xz
 cdfd034514201f3ba4bde3808ddbced9b8e5a971 7021 mujoco_2.2.2-3_source.buildinfo
Checksums-Sha256:
 96d787a6e95c485126aec5bdbd861299725c5e323c32ca24439a9d5af29666c5 2289 mujoco_2.2.2-3.dsc
 f61ceb86bd752a57d07b25e55736e00e6eeffc396160551a1515b6027f80fec6 14036 mujoco_2.2.2-3.debian.tar.xz
 a9f328d798884b3ff52fd1b3ded731014d7ec0b8ac40991311ce02ac17340baa 7021 mujoco_2.2.2-3_source.buildinfo
Files:
 e23c5585ca5fb76cd84f9b0fb5bb651f 2289 science optional mujoco_2.2.2-3.dsc
 c40267488314477eb6697a5e0ac25235 14036 science optional mujoco_2.2.2-3.debian.tar.xz
 a342ec7de4bee841b81abb14db0d8edc 7021 science optional mujoco_2.2.2-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEY4vHXsHlxYkGfjXeYmRes19oaooFAmOZ9T0RHGx1bWluQGRl
Ymlhbi5vcmcACgkQYmRes19oaop3Wg//VkD6MXfK8BxKkZbqDYX1PAPKnKY5yImY
zTVEYYuxfITs0BRSuzsW0GM0KhPbecn/5XNPx0lHklMTVRq68j9QkqgrhdzjK9Vb
cdEC3J7xuZjt1b6TSBbT5Yjm3tZGOP/M5IpyugMxUejdYdIlZHpObxz+IVssL04A
P5k4KRFPki1OcgasCkG9B3/bRmQ9z+1LpJ37nQzoHNWBDNbB8T2eQYMoFsnIViOP
h3haT4Un857KLDUBKAxvtAoJpEqWG+X4f1O8OpwGDXQTYYLJNq60vVFOMox7wGJL
VtCwfX89wfCKJOBfBK7pgmeNOEM/r7+gjd6ZzWAAWb6Z80VoIrepRvBN1WtLoyyq
eejlouf21pDDej1q2t6kn+CyRIv+WzPeef6Eeh1IE6UKZ/rgWncrp1wA1RbPpQVu
eGBuoPfawP0bqsNYiLFJTbdPmEwcyncXp1qAyObADAQHWT1reoSFngy+rvQLMGM6
bCrMEZxafIxFfxrDVFsMqpBDv74JT68G3nWMC+PWU2DVXNrJ69XPpXo6ic+BzoIP
KCdCsp1bdfiB8mDAJz5/D3k8fl5YAoo2aSchWsDbqJ2rDca6uAVECn3hqF1xU/e7
fEKdFTwHHClDSHFOj1R8dvVKQcNQnnFCLKtKDctJVhjnSCbRNO0PMBwe+rMHJslJ
FsCLK/wJRUY=
=dvrE
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: