Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829285 - sys-fs/dd-rescue-1.99.13 - ./ffs.h: error: #error Need to define _WORDSIZE
Summary: sys-fs/dd-rescue-1.99.13 - ./ffs.h: error: #error Need to define _WORDSIZE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-12-15 17:43 UTC by Toralf Förster
Modified: 2023-07-23 01:52 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.41 KB, text/plain)
2021-12-15 17:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,54.29 KB, text/plain)
2021-12-15 17:43 UTC, Toralf Förster
Details
environment (environment,86.16 KB, text/plain)
2021-12-15 17:43 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,19.86 KB, application/x-bzip)
2021-12-15 17:43 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.34 KB, application/x-bzip)
2021-12-15 17:43 UTC, Toralf Förster
Details
sys-fs:dd-rescue-1.99.11:20211215-172057.log (sys-fs:dd-rescue-1.99.11:20211215-172057.log,8.43 KB, text/plain)
2021-12-15 17:43 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,23.44 KB, application/x-bzip)
2021-12-15 17:43 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-12-15 17:43:36 UTC
#x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2   -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DGEN_DEP -msse4.2 -maes -mavx2 -mvaes -mavx2 -mrdrnd -MM ./*.c >.dep
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2   -DHAVE_CONFIG_H -I . -DHAVE_AESNI -DGEN_DEP -D__AES__ -D__SSE4_1__ -D__SSSE3__ -D__SSE3__ -D__SSE2__ -D__SSE__ -D__MMX__ -DNO_WARN_X86_INTRINSICS -I . -MM ./*.c >.dep
In file included from ./find_nonzero.h:13,
                 from ./dd_rescue.c:118:
./ffs.h:61:3: error: #error Need to define __WORDSIZE
   61 | # error Need to define __WORDSIZE
      |   ^~~~~
./dd_rescue.c:205:3: error: #error __WORDSIZE undefined
  205 | # error __WORDSIZE undefined

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-j4-20211215-000030

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.0 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Rust versions:
  [1]   rust-1.57.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)

php cli:

  HEAD of ::gentoo
commit 11b96f444b597bfed612bfdfcca730a609061c26
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 15 17:06:53 2021 +0000

    2021-12-15 17:06:50 UTC

emerge -qpvO sys-fs/dd-rescue
[ebuild  N    ] sys-fs/dd-rescue-1.99.11  USE="xattr -lzo -static" CPU_FLAGS_X86="avx2 sse4_2"
Comment 1 Toralf Förster gentoo-dev 2021-12-15 17:43:37 UTC
Created attachment 759188 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-15 17:43:38 UTC
Created attachment 759189 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-15 17:43:40 UTC
Created attachment 759190 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-15 17:43:41 UTC
Created attachment 759191 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-15 17:43:42 UTC
Created attachment 759192 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-15 17:43:43 UTC
Created attachment 759193 [details]
sys-fs:dd-rescue-1.99.11:20211215-172057.log
Comment 7 Toralf Förster gentoo-dev 2021-12-15 17:43:44 UTC
Created attachment 759194 [details]
temp.tar.bz2
Comment 8 Anard 2022-08-31 05:40:36 UTC Comment hidden (obsolete)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-31 05:43:15 UTC Comment hidden (obsolete)
Comment 10 Agostino Sarubbo gentoo-dev 2022-10-07 15:19:31 UTC
tinderbox_musl has reproduced this issue with version 1.99.12 - Updating summary.
Comment 11 Agostino Sarubbo gentoo-dev 2023-06-17 12:09:52 UTC
tinderbox_musl has reproduced this issue with version 1.99.13 - Updating summary.
Comment 12 Larry the Git Cow gentoo-dev 2023-07-23 01:52:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3669e5495eeda680246ea087408dcf85e74b9f11

commit 3669e5495eeda680246ea087408dcf85e74b9f11
Author:     brahmajit das <listout@protonmail.com>
AuthorDate: 2022-09-15 07:01:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-23 01:51:49 +0000

    sys-fs/dd-rescue: Fix building for musl.
    
    The original patch was written by gentoo developer Thomas Deutschmann
    <whissi@gentoo.org>, but the patch needed to be rebased. I've added in
    my secmem patch inside it (another musl fix for dd-rescue).
    
    Closes: https://bugs.gentoo.org/829285
    Signed-off-by: brahmajit das <listout@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26455
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/dd-rescue/dd-rescue-1.99.13-r1.ebuild       | 107 +++++++++++++++
 sys-fs/dd-rescue/dd-rescue-1.99.13.ebuild          |   6 +-
 .../dd-rescue/files/dd-rescue-1.99.13-musl.patch   | 145 +++++++++++++++++++++
 3 files changed, 257 insertions(+), 1 deletion(-)