Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919186 - dev-cpp/libmcpp-2.7.2_p5-r1 - expand.c: error: assignment to char from incompatible pointer type LOCATION {aka struct location } [-Wincompatible-point
Summary: dev-cpp/libmcpp-2.7.2_p5-r1 - expand.c: error: assignment to char from incomp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 936100 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-12-04 18:47 UTC by Toralf Förster
Modified: 2024-07-16 06:56 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.32 KB, text/plain)
2023-12-04 18:47 UTC, Toralf Förster
Details
dev-cpp:libmcpp-2.7.2_p5-r1:20231204-023230.log (dev-cpp:libmcpp-2.7.2_p5-r1:20231204-023230.log,10.84 KB, text/plain)
2023-12-04 18:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,240.69 KB, text/plain)
2023-12-04 18:47 UTC, Toralf Förster
Details
environment (environment,73.80 KB, text/plain)
2023-12-04 18:47 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,976 bytes, application/x-xz)
2023-12-04 18:47 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,24.32 KB, application/x-xz)
2023-12-04 18:47 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,7.15 KB, application/x-xz)
2023-12-04 18:47 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,60.63 KB, application/x-xz)
2023-12-04 18:47 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,22.45 KB, application/x-xz)
2023-12-04 18:47 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-04 18:47:42 UTC
too long lines were shrinked:

/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -fno-diagnostics-color -c -o expand.lo expand.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -pipe -march=native -fno-diagnostics-color -c directive.c  -fPIC -DPIC -o .libs/directive.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -pipe -march=native -fno-diagnostics-color -c main.c  -fPIC -DPIC -o .libs/main.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -pipe -march=native -fno-diagnostics-color -c eval.c  -fPIC -DPIC -o .libs/eval.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -pipe -march=native -fno-diagnostics-color -c expand.c  -fPIC -DPIC -o .libs/expand.o
expand.c: In function 'replace':
expand.c:713:21: error: assignment to 'char *' from incompatible pointer type 'LOCATION *' {aka 'struct location *'} [-Wincompatible-pointer-types]
  713 |         m_inf->args = m_inf->loc_args = NULL;       /* Default args */
      |                     ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd_merged_usr-20231128-165524

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
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
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

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

  HEAD of ::gentoo
commit 31c53b86617dc55e12ecf200e3033f30e326bf31
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 4 02:02:05 2023 +0000

    2023-12-04 02:02:05 UTC

emerge -qpvO dev-cpp/libmcpp
[ebuild  N    ] dev-cpp/libmcpp-2.7.2_p5-r1
Comment 1 Toralf Förster gentoo-dev 2023-12-04 18:47:43 UTC
Created attachment 876807 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-04 18:47:44 UTC
Created attachment 876808 [details]
dev-cpp:libmcpp-2.7.2_p5-r1:20231204-023230.log
Comment 3 Toralf Förster gentoo-dev 2023-12-04 18:47:45 UTC
Created attachment 876809 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-12-04 18:47:46 UTC
Created attachment 876810 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-04 18:47:47 UTC
Created attachment 876811 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-04 18:47:48 UTC
Created attachment 876812 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-04 18:47:49 UTC
Created attachment 876813 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-04 18:47:51 UTC
Created attachment 876814 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-04 18:47:51 UTC
Created attachment 876815 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2024-03-19 03:21:35 UTC
The bug has been closed via the following commit(s):

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

commit e572c88554dd14921c39809f3b780cea49ce9c56
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-03-19 00:31:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-19 03:20:51 +0000

    dev-cpp/libmcpp: add patches to build with Modern C
    
    Closes: https://bugs.gentoo.org/919186
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libmcpp-2.7.2-incompatible-pointer-types.patch | 26 ++++++++++
 dev-cpp/libmcpp/files/mcpp-c99.patch               | 59 ++++++++++++++++++++++
 dev-cpp/libmcpp/libmcpp-2.7.2_p5-r2.ebuild         | 48 ++++++++++++++++++
 3 files changed, 133 insertions(+)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-16 06:56:12 UTC
*** Bug 936100 has been marked as a duplicate of this bug. ***