Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

2.2.10 fail to buil on arm and i686 #5483

Description

@Erick555

Hello again,

W noticed that cups 2.2.10 fails to build on arm and i686 arches (x86-64 and aarch64 work good) in linux with the following error:

hash.c:238:13: error: conversion to ‘ssize_t’ {aka ‘int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
             return (gnutls_hash_get_len(alg));
                    ~^~~~~~~~~~~~~~~~~~~~~~~~~

Build config:

    CFLAGS: -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
      -fstack-protector-strong -grecord-gcc-switches
    CXXFLAGS: -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
      -fstack-protector-strong -grecord-gcc-switches
    HOME: /tmp
    LC_ALL: en_US.UTF-8
    LDFLAGS: -Wl,-z,relro,-z,now -Wl,--as-needed
    LOGNAME: tomjon
    LT_SYS_LIBRARY_PATH: /usr/lib/arm-linux-gnueabihf
    MAKEFLAGS: -j8
    PATH: /usr/bin:/bin:/usr/sbin:/sbin
    PYTHON: /usr/bin/python3
    PYTHONHASHSEED: '0'
    SHELL: /bin/sh
    SOURCE_DATE_EPOCH: '1320937200'
    TERM: dumb
    TZ: UTC
    V: '1'


    configure --prefix=/usr \
    --exec-prefix=/usr \
    --bindir=/usr/bin \
    --sbindir=/usr/bin \
    --sysconfdir=/etc \
    --datadir=/usr/share \
    --includedir=/usr/include \
    --libdir=/usr/lib/arm-linux-gnueabihf \
    --libexecdir=/usr/libexec \
    --localstatedir=/var \
    --sharedstatedir=/usr/com \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info  --enable-deterministic-archives \
    --enable-shared \
    --disable-static \
    --build=arm-unknown-linux-gnueabihf \
    --host=arm-unknown-linux-gnueabihf --enable-debug \
    --with-components=core \
    --with-dbusdir=/etc/dbus-1 \
    --disable-systemd \
    --enable-threads \
    --enable-gnutls \
    localedir=/usr/share/locale \
    DSOFLAGS="$CFLAGS $LDFLAGS"

Full build log from arm

In debian build and fedora build there seem to be the same warning but the build continues. Do you have any ideas?

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions