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

Compile fails on s390x #343

Closed
flyn-org opened this issue May 15, 2023 · 4 comments
Closed

Compile fails on s390x #343

flyn-org opened this issue May 15, 2023 · 4 comments

Comments

@flyn-org
Copy link
Contributor

It appears that pocketsphinx will not compile on the s390x architecture. Here is a log from my attempt to build a pocketsphinx package on Fedora Rawhide s390x:

Mock Version: 3.5
Mock Version: 3.5
Mock Version: 3.5
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target s390x --nodeps /builddir/build/SPECS/pocketsphinx.spec'], chrootPath='/var/lib/mock/f39-build-42985607-5178451/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x3ffa44f6c90>timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vw2uoews:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False)
Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vw2uoews:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '925c31ff7a914f90ae513394bd8f1584', '-D', '/var/lib/mock/f39-build-42985607-5178451/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vw2uoews:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"', '--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target s390x --nodeps /builddir/build/SPECS/pocketsphinx.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False
Building target platforms: s390x
Building for target s390x
setting SOURCE_DATE_EPOCH=1684108800
Wrote: /builddir/build/SRPMS/pocketsphinx-5.0.0-1.fc39.src.rpm
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target s390x --nodeps /builddir/build/SPECS/pocketsphinx.spec'], chrootPath='/var/lib/mock/f39-build-42985607-5178451/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x3ffa44f6c90>timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vw2uoews:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False)
Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vw2uoews:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '3e7f9cd9e8fc476a98ba1f9e931717b9', '-D', '/var/lib/mock/f39-build-42985607-5178451/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vw2uoews:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"', '--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target s390x --nodeps /builddir/build/SPECS/pocketsphinx.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False
Building target platforms: s390x
Building for target s390x
setting SOURCE_DATE_EPOCH=1684108800
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yHeSB0
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf pocketsphinx-5.0.0
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pocketsphinx-5.0.0.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pocketsphinx-5.0.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/pocketsphinx-5.0.0-python-and-c.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/pocketsphinx-5.0.0-python-dir.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3jjSiE
+ umask 022
+ cd /builddir/build/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd pocketsphinx-5.0.0
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ /usr/bin/cmake -S . -B redhat-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_MODULE_PATH=/usr/lib/python3.11/site-packages/skbuild/resources/cmake -DCMAKE_INSTALL_PYDIR=/usr/lib64/python3.11/site-packages -DSKBUILD=on -DBUILD_GSTREAMER=on
-- The C compiler identification is GNU 13.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for popen
-- Looking for popen - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- SIZEOF_LONG="8" ; SIZEOF_LONG_LONG="8"
-- WORDS_BIGENDIAN="1"
-- SPHINX_DEBUG="" ; DEBUG_ENDIAN=""
-- FIXED_POINT="OFF" ; DEFAULT_RADIX="12"
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.9.4") 
-- Checking for module 'gobject-2.0'
--   Found gobject-2.0, version 2.76.2
-- Checking for modules 'gstreamer-1.0;gstreamer-base-1.0'
--   Found gstreamer-1.0, version 1.22.2
--   Found gstreamer-base-1.0, version 1.22.2
Installing GStreamer plugin to /usr/lib64/gstreamer-1.0
-- Found PythonInterp: /usr/bin/python3.11 (found version "3.11.3") 
-- Found PythonLibs: /usr/lib64/libpython3.11.so (found version "3.11.3") 
-- Found Python: /usr/bin/python3.11 (found version "3.11.3") found components: Interpreter Development Development.Module Development.Embed 
-- Found Cython: /usr/bin/cython  
-- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success
_modinit_prefix:PyInit_
-- MODELDIR="/usr/share/pocketsphinx/model"
-- Configuring done (2.9s)
-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:
    CMAKE_CXX_FLAGS_RELEASE
    CMAKE_Fortran_FLAGS_RELEASE
    CMAKE_INSTALL_DO_STRIP
    INCLUDE_INSTALL_DIR
    LIB_INSTALL_DIR
    LIB_SUFFIX
    SHARE_INSTALL_PREFIX
    SYSCONF_INSTALL_DIR
-- Build files have been written to: /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build
+ /usr/bin/cmake --build redhat-linux-build -j6 --verbose
/usr/bin/cmake -S/builddir/build/BUILD/pocketsphinx-5.0.0 -B/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/CMakeFiles /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build//CMakeFiles/progress.marks
/usr/bin/gmake  -f CMakeFiles/Makefile2 all
gmake[1]: Entering directory '/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build'
/usr/bin/gmake  -f src/CMakeFiles/pocketsphinx.dir/build.make src/CMakeFiles/pocketsphinx.dir/depend
gmake[2]: Entering directory '/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build'
cd /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/pocketsphinx-5.0.0 /builddir/build/BUILD/pocketsphinx-5.0.0/src /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/src /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/src/CMakeFiles/pocketsphinx.dir/DependInfo.cmake --color=
gmake[2]: Leaving directory '/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build'
/usr/bin/gmake  -f src/CMakeFiles/pocketsphinx.dir/build.make src/CMakeFiles/pocketsphinx.dir/build
gmake[2]: Entering directory '/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build'
[  2%] Building C object src/CMakeFiles/pocketsphinx.dir/acmod.c.o
[  2%] Building C object src/CMakeFiles/pocketsphinx.dir/allphone_search.c.o
[  2%] Building C object src/CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_gmm.c.o
cd /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/src && /usr/bin/gcc -DHAVE_CONFIG_H -DMODELDIR=\"/usr/share/pocketsphinx/model\" -DPOCKETSPHINX_EXPORTS -DSPHINXBASE_EXPORTS -DSPHINX_DLL -Dpocketsphinx_EXPORTS -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build -I/builddir/build/BUILD/pocketsphinx-5.0.0/src/pocketsphinx -I/builddir/build/BUILD/pocketsphinx-5.0.0/src -I/builddir/build/BUILD/pocketsphinx-5.0.0/include -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -Wall -Wextra -MD -MT src/CMakeFiles/pocketsphinx.dir/acmod.c.o -MF CMakeFiles/pocketsphinx.dir/acmod.c.o.d -o CMakeFiles/pocketsphinx.dir/acmod.c.o -c /builddir/build/BUILD/pocketsphinx-5.0.0/src/acmod.c
[  4%] Building C object src/CMakeFiles/pocketsphinx.dir/bin_mdef.c.o
cd /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/src && /usr/bin/gcc -DHAVE_CONFIG_H -DMODELDIR=\"/usr/share/pocketsphinx/model\" -DPOCKETSPHINX_EXPORTS -DSPHINXBASE_EXPORTS -DSPHINX_DLL -Dpocketsphinx_EXPORTS -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build -I/builddir/build/BUILD/pocketsphinx-5.0.0/src/pocketsphinx -I/builddir/build/BUILD/pocketsphinx-5.0.0/src -I/builddir/build/BUILD/pocketsphinx-5.0.0/include -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -Wall -Wextra -MD -MT src/CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_gmm.c.o -MF CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_gmm.c.o.d -o CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_gmm.c.o -c /builddir/build/BUILD/pocketsphinx-5.0.0/src/common_audio/vad/vad_gmm.c
cd /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/src && /usr/bin/gcc -DHAVE_CONFIG_H -DMODELDIR=\"/usr/share/pocketsphinx/model\" -DPOCKETSPHINX_EXPORTS -DSPHINXBASE_EXPORTS -DSPHINX_DLL -Dpocketsphinx_EXPORTS -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build -I/builddir/build/BUILD/pocketsphinx-5.0.0/src/pocketsphinx -I/builddir/build/BUILD/pocketsphinx-5.0.0/src -I/builddir/build/BUILD/pocketsphinx-5.0.0/include -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -Wall -Wextra -MD -MT src/CMakeFiles/pocketsphinx.dir/allphone_search.c.o -MF CMakeFiles/pocketsphinx.dir/allphone_search.c.o.d -o CMakeFiles/pocketsphinx.dir/allphone_search.c.o -c /builddir/build/BUILD/pocketsphinx-5.0.0/src/allphone_search.c
[  4%] Building C object src/CMakeFiles/pocketsphinx.dir/common_audio/vad/webrtc_vad.c.o
cd /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/src && /usr/bin/gcc -DHAVE_CONFIG_H -DMODELDIR=\"/usr/share/pocketsphinx/model\" -DPOCKETSPHINX_EXPORTS -DSPHINXBASE_EXPORTS -DSPHINX_DLL -Dpocketsphinx_EXPORTS -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build -I/builddir/build/BUILD/pocketsphinx-5.0.0/src/pocketsphinx -I/builddir/build/BUILD/pocketsphinx-5.0.0/src -I/builddir/build/BUILD/pocketsphinx-5.0.0/include -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -Wall -Wextra -MD -MT src/CMakeFiles/pocketsphinx.dir/bin_mdef.c.o -MF CMakeFiles/pocketsphinx.dir/bin_mdef.c.o.d -o CMakeFiles/pocketsphinx.dir/bin_mdef.c.o -c /builddir/build/BUILD/pocketsphinx-5.0.0/src/bin_mdef.c
[  6%] Building C object src/CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_filterbank.c.o
cd /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/src && /usr/bin/gcc -DHAVE_CONFIG_H -DMODELDIR=\"/usr/share/pocketsphinx/model\" -DPOCKETSPHINX_EXPORTS -DSPHINXBASE_EXPORTS -DSPHINX_DLL -Dpocketsphinx_EXPORTS -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build -I/builddir/build/BUILD/pocketsphinx-5.0.0/src/pocketsphinx -I/builddir/build/BUILD/pocketsphinx-5.0.0/src -I/builddir/build/BUILD/pocketsphinx-5.0.0/include -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -Wall -Wextra -MD -MT src/CMakeFiles/pocketsphinx.dir/common_audio/vad/webrtc_vad.c.o -MF CMakeFiles/pocketsphinx.dir/common_audio/vad/webrtc_vad.c.o.d -o CMakeFiles/pocketsphinx.dir/common_audio/vad/webrtc_vad.c.o -c /builddir/build/BUILD/pocketsphinx-5.0.0/src/common_audio/vad/webrtc_vad.c
cd /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/src && /usr/bin/gcc -DHAVE_CONFIG_H -DMODELDIR=\"/usr/share/pocketsphinx/model\" -DPOCKETSPHINX_EXPORTS -DSPHINXBASE_EXPORTS -DSPHINX_DLL -Dpocketsphinx_EXPORTS -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build -I/builddir/build/BUILD/pocketsphinx-5.0.0/src/pocketsphinx -I/builddir/build/BUILD/pocketsphinx-5.0.0/src -I/builddir/build/BUILD/pocketsphinx-5.0.0/include -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -Wall -Wextra -MD -MT src/CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_filterbank.c.o -MF CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_filterbank.c.o.d -o CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_filterbank.c.o -c /builddir/build/BUILD/pocketsphinx-5.0.0/src/common_audio/vad/vad_filterbank.c
[  6%] Building C object src/CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_core.c.o
cd /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/src && /usr/bin/gcc -DHAVE_CONFIG_H -DMODELDIR=\"/usr/share/pocketsphinx/model\" -DPOCKETSPHINX_EXPORTS -DSPHINXBASE_EXPORTS -DSPHINX_DLL -Dpocketsphinx_EXPORTS -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build -I/builddir/build/BUILD/pocketsphinx-5.0.0/src/pocketsphinx -I/builddir/build/BUILD/pocketsphinx-5.0.0/src -I/builddir/build/BUILD/pocketsphinx-5.0.0/include -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -Wall -Wextra -MD -MT src/CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_core.c.o -MF CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_core.c.o.d -o CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_core.c.o -c /builddir/build/BUILD/pocketsphinx-5.0.0/src/common_audio/vad/vad_core.c
/builddir/build/BUILD/pocketsphinx-5.0.0/src/acmod.c: In function 'acmod_log_mfc':
/builddir/build/BUILD/pocketsphinx-5.0.0/src/acmod.c:477:21: error: operator '!' has no right operand
  477 | #if !WORDS_BIGENDIAN
      |                     ^
/builddir/build/BUILD/pocketsphinx-5.0.0/src/acmod.c:488:21: error: operator '!' has no right operand
  488 | #if !WORDS_BIGENDIAN
      |                     ^
/builddir/build/BUILD/pocketsphinx-5.0.0/src/acmod.c:473:12: warning: unused variable 'ptr' [-Wunused-variable]
  473 |     int32 *ptr = (int32 *)cep[0];
      |            ^~~
/builddir/build/BUILD/pocketsphinx-5.0.0/src/acmod.c:472:12: warning: unused variable 'i' [-Wunused-variable]
  472 |     size_t i, n;
      |            ^
gmake[2]: *** [src/CMakeFiles/pocketsphinx.dir/build.make:79: src/CMakeFiles/pocketsphinx.dir/acmod.c.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
[  6%] Building C object src/CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_sp.c.o
cd /builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/src && /usr/bin/gcc -DHAVE_CONFIG_H -DMODELDIR=\"/usr/share/pocketsphinx/model\" -DPOCKETSPHINX_EXPORTS -DSPHINXBASE_EXPORTS -DSPHINX_DLL -Dpocketsphinx_EXPORTS -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build -I/builddir/build/BUILD/pocketsphinx-5.0.0/src/pocketsphinx -I/builddir/build/BUILD/pocketsphinx-5.0.0/src -I/builddir/build/BUILD/pocketsphinx-5.0.0/include -I/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -fPIC -Wall -Wextra -MD -MT src/CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_sp.c.o -MF CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_sp.c.o.d -o CMakeFiles/pocketsphinx.dir/common_audio/vad/vad_sp.c.o -c /builddir/build/BUILD/pocketsphinx-5.0.0/src/common_audio/vad/vad_sp.c
gmake[2]: Leaving directory '/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build'
gmake[1]: Leaving directory '/builddir/build/BUILD/pocketsphinx-5.0.0/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:1363: src/CMakeFiles/pocketsphinx.dir/all] Error 2
gmake: *** [Makefile:149: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.3jjSiE (%build)
    Bad exit status from /var/tmp/rpm-tmp.3jjSiE (%build)
RPM build errors:
Child return code was: 1
EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 3e7f9cd9e8fc476a98ba1f9e931717b9 -D /var/lib/mock/f39-build-42985607-5178451/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.vw2uoews:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007" --setenv=PS1=<mock-chroot> \\s-\\v\\$  --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target s390x --nodeps /builddir/build/SPECS/pocketsphinx.spec\n', 1)]
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status
    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
mockbuild.exception.Error: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 3e7f9cd9e8fc476a98ba1f9e931717b9 -D /var/lib/mock/f39-build-42985607-5178451/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.vw2uoews:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target s390x --nodeps /builddir/build/SPECS/pocketsphinx.spec
@dhdaines
Copy link
Contributor

Ah drat... I thought I had fixed that (because I did specifically fix a lot of things for Debian/s390). It should be #ifndef WORDS_BIGENDIAN.

@dhdaines
Copy link
Contributor

I will fix it in Git soon!

@flyn-org
Copy link
Contributor Author

Your commit fixed the problem. The s390x package now builds: https://koji.fedoraproject.org/koji/taskinfo?taskID=101182696.

@dhdaines
Copy link
Contributor

Great! Sorry about that, it snuck back in after I fixed it previously :(

There should be a 5.0.1 release soon to fix this and some other errors...

dhdaines added a commit that referenced this issue May 16, 2023
fix: fix a stray #if WORDS_BIGENDIAN (fixes: #343)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants