Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712824 - sys-libs/libutempter-1.1.6-r2 : utempter.c: error: #error Unsupported platform
Summary: sys-libs/libutempter-1.1.6-r2 : utempter.c: error: #error Unsupported platform
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-16 13:21 UTC by Toralf Förster
Modified: 2022-03-27 19:22 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.84 KB, text/plain)
2020-03-16 13:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,155.10 KB, text/plain)
2020-03-16 13:21 UTC, Toralf Förster
Details
environment (environment,102.96 KB, text/plain)
2020-03-16 13:21 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.60 KB, application/x-bzip)
2020-03-16 13:21 UTC, Toralf Förster
Details
sys-libs:libutempter-1.1.6-r2:20200315-235101.log (sys-libs:libutempter-1.1.6-r2:20200315-235101.log,2.50 KB, text/plain)
2020-03-16 13:21 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,23.56 KB, application/x-bzip)
2020-03-16 13:21 UTC, Toralf Förster
Details
Remove-GLIBC-Defines.patch (0001-Remove-__GLIBC__-define.patch,2.47 KB, patch)
2020-05-04 18:37 UTC, Max Tottenham
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-16 13:21:12 UTC
make -j1 LDLIBS= 
x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -std=gnu99 -W -Wall -Waggregate-return -Wcast-align -Wconversion -Wdisabled-optimization -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -DLIBEXECDIR=\/usr/lib/misc\ -Wl,-O1 -Wl,--as-needed  -Wl,-z,now  utempter.c -o utempter
utempter.c:42:3: error: #error Unsupported platform
   42 | # error Unsupported platform
      |   ^~~~~
utempter.c: In function write_uwtmp_record:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200311-204810

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.2.0 *
 [2] x86_64-gentoo-linux-musl-9.3.0
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.41.1
  [2]   rust-1.41.1 *
The following VMs are available for generation-2:

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 15 Mar 2020 22:38:22 +0000
emerge -qpvO sys-libs/libutempter
[ebuild  N    ] sys-libs/libutempter-1.1.6-r2  USE="-static-libs"
Comment 1 Toralf Förster gentoo-dev 2020-03-16 13:21:14 UTC
Created attachment 620214 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-16 13:21:17 UTC
Created attachment 620216 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-16 13:21:20 UTC
Created attachment 620218 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-16 13:21:23 UTC
Created attachment 620220 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-16 13:21:25 UTC
Created attachment 620222 [details]
sys-libs:libutempter-1.1.6-r2:20200315-235101.log
Comment 6 Toralf Förster gentoo-dev 2020-03-16 13:21:28 UTC
Created attachment 620224 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-16 16:12:38 UTC
The first attempt to tinderbox a musl image failed at all.

I'll mass close therefore all filed bug reports of the last days related to this tinderbox image.

Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
Comment 8 Max Tottenham 2020-05-04 18:37:16 UTC
Created attachment 636038 [details, diff]
Remove-GLIBC-Defines.patch

Attached is a patch that fixes the build for musl based systems.

There is nothing GLIBC specific here, and libutempter does not actually use any definitions from pty.h. I've sent the patch upstream too.
Comment 9 Max Tottenham 2020-05-07 18:29:28 UTC
The upstream maintainer has accepted the proposed patch,

Changes made their way into 1.2.0. 

I believe fixing this bug would be as simple as bumping the package version,

The upstream source tarball is now available here:

ftp://ftp.altlinux.org/pub/people/ldv/libutempter-1.2.0.tar.gz
Comment 10 Conrad Kostecki gentoo-dev 2022-03-27 19:22:34 UTC
Seems fixed, as 1.2.1 is in tree. Closing.