Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919822 - media-gfx/librecad-2.2.0 - [clang] lib/.../rs_debug.h: error: unknown type name FILE
Summary: media-gfx/librecad-2.2.0 - [clang] lib/.../rs_debug.h: error: unknown type na...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-13 20:41 UTC by Toralf Förster
Modified: 2024-06-09 06:24 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.85 KB, text/plain)
2023-12-13 20:41 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,225.33 KB, text/plain)
2023-12-13 20:41 UTC, Toralf Förster
Details
environment (environment,85.25 KB, text/plain)
2023-12-13 20:41 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-13 20:41 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,29.04 KB, application/x-xz)
2023-12-13 20:41 UTC, Toralf Förster
Details
media-gfx:librecad-2.2.0:20231212-231312.log (media-gfx:librecad-2.2.0:20231212-231312.log,92.92 KB, text/plain)
2023-12-13 20:41 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,53.51 KB, application/x-xz)
2023-12-13 20:41 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.46 KB, application/x-xz)
2023-12-13 20:41 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 2023-12-13 20:41:04 UTC
   73 |     virtual void removeUndoable(RS_Undoable* u) {
      |                  ^
lib/engine/rs_undo.h:68:18: note: overridden virtual function is here
   68 |     virtual void removeUndoable(RS_Undoable* u) = 0;
      |                  ^
In file included from lib/debug/rs_debug.cpp:28:
lib/debug/rs_debug.h:91:20: error: unknown type name 'FILE'
   91 |     void setStream(FILE* s) {
      |                    ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd_clang-20231210-041514

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6+libcxx
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit 503158a3cbdefed5254bba8375e19fa2f7520e48
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 12 22:48:56 2023 +0000

    2023-12-12 22:48:56 UTC

emerge -qpvO media-gfx/librecad
[ebuild  N    ] media-gfx/librecad-2.2.0  USE="-debug -doc -tools"
Comment 1 Toralf Förster gentoo-dev 2023-12-13 20:41:05 UTC
Created attachment 879029 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-13 20:41:07 UTC
Created attachment 879030 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-13 20:41:08 UTC
Created attachment 879031 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-13 20:41:09 UTC
Created attachment 879032 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-13 20:41:10 UTC
Created attachment 879033 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-13 20:41:11 UTC
Created attachment 879034 [details]
media-gfx:librecad-2.2.0:20231212-231312.log
Comment 7 Toralf Förster gentoo-dev 2023-12-13 20:41:12 UTC
Created attachment 879035 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-13 20:41:13 UTC
Created attachment 879036 [details]
temp.tar.xz
Comment 9 Denis Pronin 2024-05-23 19:49:22 UTC
See PR https://github.com/gentoo/gentoo/pull/35423

Please, close the issue by merging changes in
Comment 10 Larry the Git Cow gentoo-dev 2024-06-09 06:24:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=308ef54ee21bbaf93f9d3c17c2809c660f580942

commit 308ef54ee21bbaf93f9d3c17c2809c660f580942
Author:     Denis Pronin <dannftk@yandex.ru>
AuthorDate: 2024-02-19 12:23:42 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-06-09 06:24:01 +0000

    media-gfx/librecad: add a patch to fix building with clang
    
    fix missing FILE declaration in lib/debug/rs_debug.h
    
    Closes: https://bugs.gentoo.org/919822
    Signed-off-by: Denis Pronin <dannftk@yandex.ru>
    Closes: https://github.com/gentoo/gentoo/pull/35423
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../files/librecad-2.2.0-fix-missing-header.patch  | 29 ++++++++++++++++++++++
 media-gfx/librecad/librecad-2.2.0.ebuild           |  6 ++++-
 2 files changed, 34 insertions(+), 1 deletion(-)