Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830081 - net-fs/nfs-utils-2.5.4-r3 - ../.../junction.h: error: expected ; before char
Summary: net-fs/nfs-utils-2.5.4-r3 - ../.../junction.h: error: expected ; before char
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: 2021-12-27 10:19 UTC by Toralf Förster
Modified: 2024-01-19 05:22 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.03 KB, text/plain)
2021-12-27 10:19 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,217.87 KB, text/plain)
2021-12-27 10:19 UTC, Toralf Förster
Details
environment (environment,99.75 KB, text/plain)
2021-12-27 10:19 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,16.47 KB, application/x-bzip)
2021-12-27 10:19 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,17.54 KB, application/x-bzip)
2021-12-27 10:19 UTC, Toralf Förster
Details
net-fs:nfs-utils-2.5.4-r3:20211226-223709.log (net-fs:nfs-utils-2.5.4-r3:20211226-223709.log,46.59 KB, text/plain)
2021-12-27 10:19 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,32.40 KB, application/x-bzip)
2021-12-27 10:19 UTC, Toralf Förster
Details
0001-Fix-musl-clang-compile.patch (0001-Fix-musl-clang-compile.patch,2.85 KB, patch)
2023-06-21 23:47 UTC, David Carlos Manuelda
Details | Diff
0001-Fix-musl-clang-compile.patch (0001-Fix-musl-clang-compile.patch,2.90 KB, patch)
2023-06-22 00:00 UTC, David Carlos Manuelda
Details | Diff
build.log (2.6.3-r2) (nfs-utils-2.6.3-r2:20240118-094855.log,139.32 KB, text/plain)
2024-01-18 10:11 UTC, ernsteiswuerfel
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-27 10:19:38 UTC
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../../support/include  -I/usr/include/tirpc  -I/usr/include/libxml2   -Wall  -Wextra  -Werror=strict-prototypes  -fno-strict-aliasing  -pipe -march=native -fno-diagnostics-color -O2 -c -o auth.o auth.c
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../../support/include  -I/usr/include/tirpc  -I/usr/include/libxml2   -Wall  -Wextra  -Werror=strict-prototypes  -fno-strict-aliasing  -pipe -march=native -fno-diagnostics-color -O2 -c -o v4root.o v4root.c
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../../support/include  -I/usr/include/tirpc  -I/usr/include/libxml2   -Wall  -Wextra  -Werror=strict-prototypes  -fno-strict-aliasing  -pipe -march=native -fno-diagnostics-color -O2 -c -o fsloc.o fsloc.c
In file included from cache.c:1071:
../../support/include/junction.h:128:21: error: expected ';' before 'char'
  128 | __attribute_malloc__
      |                     ^

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
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 Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.57.0 *
php cli:

  HEAD of ::gentoo
commit 4e3fc3ba96ec93688afc2308b7264752c55aed9e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Dec 26 21:21:48 2021 +0000

    2021-12-26 21:21:46 UTC

emerge -qpvO net-fs/nfs-utils
[ebuild  N    ] net-fs/nfs-utils-2.5.4-r3  USE="ipv6 junction libmount nfsidmap nfsv4 tcpd uuid -caps -kerberos -ldap -nfsdcld -nfsv41 -sasl (-selinux)"
Comment 1 Toralf Förster gentoo-dev 2021-12-27 10:19:39 UTC
Created attachment 760449 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-27 10:19:40 UTC
Created attachment 760450 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-27 10:19:42 UTC
Created attachment 760451 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-27 10:19:43 UTC
Created attachment 760452 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-27 10:19:44 UTC
Created attachment 760453 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-27 10:19:45 UTC
Created attachment 760454 [details]
net-fs:nfs-utils-2.5.4-r3:20211226-223709.log
Comment 7 Toralf Förster gentoo-dev 2021-12-27 10:19:46 UTC
Created attachment 760455 [details]
temp.tar.bz2
Comment 8 David Carlos Manuelda 2023-06-21 23:46:58 UTC
This happens also with CLang+musl so I created a patch that makes it compile at least with clang only, gcc tests should be required also.
Comment 9 David Carlos Manuelda 2023-06-21 23:47:59 UTC
Created attachment 864383 [details, diff]
0001-Fix-musl-clang-compile.patch
Comment 10 David Carlos Manuelda 2023-06-21 23:48:20 UTC
Tested in 2.6.3
Comment 11 David Carlos Manuelda 2023-06-22 00:00:06 UTC
Created attachment 864384 [details, diff]
0001-Fix-musl-clang-compile.patch
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-22 01:06:48 UTC
Can you send the patch upstream please?
Comment 13 David Carlos Manuelda 2023-06-22 01:09:28 UTC
(In reply to Sam James from comment #12)
> Can you send the patch upstream please?

Sent it to mailing list https://patchwork.kernel.org/project/linux-nfs/patch/c8926a74-3a4f-9922-b064-3810fbb539ba@gmail.com/ (don't know if it is the correct place)
Comment 14 ernsteiswuerfel archtester 2024-01-18 10:11:40 UTC
Created attachment 882525 [details]
build.log (2.6.3-r2)

I think this can be closed.

2.6.3-r2 builds fine on musl-clang.