Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 844955 - net-dialup/mgetty-1.2.1-r4: compilation failed on riscv: cast from pointer to integer of different size
Summary: net-dialup/mgetty-1.2.1-r4: compilation failed on riscv: cast from pointer to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: riscv-keywording
  Show dependency tree
 
Reported: 2022-05-16 04:59 UTC by Alex Fan
Modified: 2022-05-18 21:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (mgetty-1.2.1-r4:20220516-113509.log,14.73 KB, text/plain)
2022-05-16 04:59 UTC, Alex Fan
Details
mgetty-1.2.1-riscv64.patch (mgetty-1.2.1-riscv64.patch,468 bytes, patch)
2022-05-16 05:02 UTC, Alex Fan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Fan archtester 2022-05-16 04:59:07 UTC
148 |         { "fax-spool-in", {(p_int) FAX_SPOOL_IN ":/tmp"}, CT_STRING, C_PRESET },
      |                            ^
conf_mg.c:148:28: error: initializer element is not constant
conf_mg.c:148:28: note: (near initialization for ‘c.fax_spool_in.d.i’)
conf_mg.c:157:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

It is a pointer size issue that happened on arm64 before and fixed by https://github.com/gentoo/gentoo/commit/eb8a4f413735a6fa810fd89793a45ad387aac1c0

Reproducible: Always
Comment 1 Alex Fan archtester 2022-05-16 04:59:42 UTC
Created attachment 779177 [details]
build log
Comment 2 Alex Fan archtester 2022-05-16 05:02:42 UTC
Created attachment 779180 [details, diff]
mgetty-1.2.1-riscv64.patch
Comment 3 Larry the Git Cow gentoo-dev 2022-05-18 21:11:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88dd8dafe95fbb793523183a50013a5122bc393a

commit 88dd8dafe95fbb793523183a50013a5122bc393a
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2022-05-18 21:10:54 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2022-05-18 21:10:54 +0000

    net-dialup/mgetty: add riscv patch
    
    Closes: https://bugs.gentoo.org/844955
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 net-dialup/mgetty/files/mgetty-1.2.1-riscv64.patch | 11 +++++++++++
 net-dialup/mgetty/mgetty-1.2.1-r4.ebuild           |  1 +
 2 files changed, 12 insertions(+)