Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871363 - net-misc/dahdi-3.1.0-r4 - clang-15: error: unknown argument: -fconserve-stack
Summary: net-misc/dahdi-3.1.0-r4 - clang-15: error: unknown argument: -fconserve-stack
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jaco Kroon
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-18 13:16 UTC by Toralf Förster
Modified: 2023-05-12 03:53 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.39 KB, text/plain)
2022-09-18 13:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,216.19 KB, text/plain)
2022-09-18 13:16 UTC, Toralf Förster
Details
environment (environment,118.63 KB, text/plain)
2022-09-18 13:16 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,14.81 KB, application/x-bzip)
2022-09-18 13:16 UTC, Toralf Förster
Details
net-misc:dahdi-3.1.0-r4:20220918-112218.log (net-misc:dahdi-3.1.0-r4:20220918-112218.log,23.47 KB, text/plain)
2022-09-18 13:16 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,30.75 KB, application/x-bzip)
2022-09-18 13:16 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 2022-09-18 13:16:26 UTC
too long lines were shrinked:

need-modorder=1
  printf '%s\n'   octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o 
  clang -Wp,-MMD,/var/tmp/portage/net-misc/dahdi-3.1.0-r4/work/dahdi-linux-3.1.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/.oct6100_adpcm_chan.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi 
  clang -Wp,-MMD,/var/tmp/portage/net-misc/dahdi-3.1.0-r4/work/dahdi-linux-3.1.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/.oct6100_channel.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I.
clang-15: error: unknown argument: '-fconserve-stack'
clang-15: error: unsupported option '-mrecord-mcount' for target 'x86_64-unknown-linux-gnu'
clang-15: error: unknown argument: '-fconserve-stack'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20220915-203738

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 242cd1a84f2a8e702a79f513d0ae26ce7648d849
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 18 09:46:48 2022 +0000

    2022-09-18 09:46:48 UTC

emerge -qpvO net-misc/dahdi
[ebuild  N    ] net-misc/dahdi-3.1.0-r4  USE="-dist-kernel -flash -oslec"
Comment 1 Toralf Förster gentoo-dev 2022-09-18 13:16:27 UTC
Created attachment 811192 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-18 13:16:28 UTC
Created attachment 811195 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-18 13:16:30 UTC
Created attachment 811198 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-18 13:16:31 UTC
Created attachment 811201 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-18 13:16:32 UTC
Created attachment 811204 [details]
net-misc:dahdi-3.1.0-r4:20220918-112218.log
Comment 6 Toralf Förster gentoo-dev 2022-09-18 13:16:33 UTC
Created attachment 811207 [details]
temp.tar.bz2
Comment 7 Jaco Kroon 2023-05-11 13:23:50 UTC
I think this is invalid.

Other errors crops up when compiling with CC=clang, but the only way I can reproduce this specific issue is by doing "make modules_prepare" using CC=gcc and then CC=clang for the ebuild.

I've fixed the memcpy that should be a __dev_addr_set() call ... which is what clang chokes on otherwise.
Comment 8 Larry the Git Cow gentoo-dev 2023-05-12 03:53:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=069bd8848f9792e74c67268e9302e84d2acceabf

commit 069bd8848f9792e74c67268e9302e84d2acceabf
Author:     Jaco Kroon <jaco@uls.co.za>
AuthorDate: 2023-05-11 14:18:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-12 03:53:21 +0000

    net-misc/dahdi: add 3.2.0
    
    Closes: https://bugs.gentoo.org/896396
    Closes: https://bugs.gentoo.org/855554
    Closes: https://bugs.gentoo.org/871363
    Signed-off-by: Jaco Kroon <jaco@uls.co.za>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/dahdi/Manifest           |   3 +
 net-misc/dahdi/dahdi-3.2.0.ebuild | 120 ++++++++++++++++++++++++++++++++++++++
 net-misc/dahdi/metadata.xml       |   3 +
 3 files changed, 126 insertions(+)