Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[noetic] respeaker_ros failing to build armhf & armv8 #494

Open
sloretz opened this issue Aug 8, 2023 · 2 comments
Open

[noetic] respeaker_ros failing to build armhf & armv8 #494

sloretz opened this issue Aug 8, 2023 · 2 comments

Comments

@sloretz
Copy link

sloretz commented Aug 8, 2023

Seems the root of the problem is this line. It seems odd that there's something called flac-linux-x86 on an ARM build.

objcopy: Unable to recognise the format of the input file `debian/ros-noetic-respeaker-ros/opt/ros/noetic/share/respeaker_ros/venv/lib/python3.8/site-packages/speech_recognition/flac-linux-x86'

Context:

23:20:35 	install -d debian/.debhelper/ros-noetic-respeaker-ros/dbgsym-root/usr/lib/debug/.build-id/51
23:20:35 	objcopy --only-keep-debug --compress-debug-sections debian/ros-noetic-respeaker-ros/opt/ros/noetic/share/respeaker_ros/venv/lib/python3.8/site-packages/speech_recognition/flac-linux-x86 debian/.debhelper/ros-noetic-respeaker-ros/dbgsym-root/usr/lib/debug/.build-id/51/fcc29644e1d696b6888cba74ab48ab5b0b809c.debug
23:20:35 objcopy: Unable to recognise the format of the input file `debian/ros-noetic-respeaker-ros/opt/ros/noetic/share/respeaker_ros/venv/lib/python3.8/site-packages/speech_recognition/flac-linux-x86'
23:20:35 dh_strip: error: objcopy --only-keep-debug --compress-debug-sections debian/ros-noetic-respeaker-ros/opt/ros/noetic/share/respeaker_ros/venv/lib/python3.8/site-packages/speech_recognition/flac-linux-x86 debian/.debhelper/ros-noetic-respeaker-ros/dbgsym-root/usr/lib/debug/.build-id/51/fcc29644e1d696b6888cba74ab48ab5b0b809c.debug returned exit code 1
23:20:35 dh_strip: error: Aborting due to earlier error
23:20:35 make: *** [debian/rules:27: binary] Error 25
23:20:35 dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
23:20:35 Traceback (most recent call last):
23:20:35   File "/tmp/ros_buildfarm/ros_buildfarm/binarydeb_job.py", line 149, in build_binarydeb
23:20:35     subprocess.check_call(cmd, cwd=source_dir, env=env)
23:20:35   File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
23:20:35     raise CalledProcessError(retcode, cmd)
23:20:35 subprocess.CalledProcessError: Command '['dpkg-buildpackage', '-b', '-us', '-uc']' returned non-zero exit status 2.
@mqcmd196
Copy link
Member

I reproduced same error in arm64/focal

objcopy: Unable to recognise the format of the input file `debian/ros-noetic-respeaker-ros/opt/ros/noetic/share/respeaker_ros/venv/lib/python3.8/site-packages/speech_recognition/flac-linux-x86'
dh_strip: error: objcopy --only-keep-debug --compress-debug-sections debian/ros-noetic-respeaker-ros/opt/ros/noetic/share/respeaker_ros/venv/lib/python3.8/site-packages/speech_recognition/flac-linux-x86 debian/.debhelper/ros-noetic-respeaker-ros/dbgsym-root/usr/lib/debug/.build-id/51/fcc29644e1d696b6888cba74ab48ab5b0b809c.debug returned exit code 1
dh_strip: error: Aborting due to earlier error
make: *** [debian/rules:27: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

@mqcmd196
Copy link
Member

ros_speech_recognition which uses SpeechRecognition pip package fails with the same error in aarch64.

objcopy: Unable to recognise the format of the input file `debian/ros-noetic-ros-speech-recognition/opt/ros/noetic/share/ros_speech_recognition/venv/lib/python3.8/site-packages/speech_recognition/flac-linux-x86'
dh_strip: error: objcopy --only-keep-debug --compress-debug-sections debian/ros-noetic-ros-speech-recognition/opt/ros/noetic/share/ros_speech_recognition/venv/lib/python3.8/site-packages/speech_recognition/flac-linux-x86 debian/.debhelper/ros-noetic-ros-speech-recognition/dbgsym-root/usr/lib/debug/.build-id/51/fcc29644e1d696b6888cba74ab48ab5b0b809c.debug returned exit code 1
dh_strip: error: Aborting due to earlier error
make: *** [debian/rules:27: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants