Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895370 - dev-util/codeblocks-20.03-r6: emerge fails with wx-related compile errors
Summary: dev-util/codeblocks-20.03-r6: emerge fails with wx-related compile errors
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-19 10:47 UTC by Klaus Kusche
Modified: 2023-02-21 08:11 UTC (History)
3 users (show)

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


Attachments
emerge info (emerge.info,9.32 KB, text/plain)
2023-02-19 10:47 UTC, Klaus Kusche
Details
emerge log (dev-util:codeblocks-20.03-r6:20230219-102454.log,933.38 KB, text/x-log)
2023-02-19 10:48 UTC, Klaus Kusche
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Kusche 2023-02-19 10:47:55 UTC
Created attachment 852818 [details]
emerge info

See attached log and emerge.info.

Installed wx: wxGTK-3.2.2.1 and wxGTK-3.0.5.1-r1 
(codeblocks uses the 3.0 one)
Comment 1 Klaus Kusche 2023-02-19 10:48:48 UTC
Created attachment 852820 [details]
emerge log
Comment 2 Sergey Torokhov 2023-02-21 05:18:03 UTC
Unfortunately I have no success to quick reproduce issue with both wxGTK:3.0-gtk3 and wxGTK:3.2-gtk3 being installed with installed codeblocks and removed it before emerge again.

Additionally I could recheck with autoconf-1.13 installed together with 1.17.

Did you touch "eselect wxwidgets" before trying to build codeblocks? I never switch it and left it as 3.0-gtk3.
Comment 3 Klaus Kusche 2023-02-21 08:11:32 UTC
Fixed. Mainly a local problem.

A combination of two problems:

* On the wx and codeblocks side, the use of #include <...> versus #include "..."
is at least strange. And codeblocks uses that to substitute wx include files,
i.e. header files with identical names exist both in the codeblocks build tree and in the system wx include directory.

* On my side, there was a misunderstanding of how eselect wxwidgets works w.r.t. emerge:

I believed that emerge is completely independent of eselect wxwidgets
(that's what the documentation of eselect wxwidgets says).
This is only partly true: emerge is independent of the *version* selected 
in eselect wxwidgets (i.e. emerge will always use the correct wx version,
no matter what version is selected in eselect wxwidgets).

However, emerge *does* use the wx configuration scripts of eselect wxwidgets,
which means that local changes to the eselect wxwidgets configuration scripts
will influence emerge (I did not expect that).

My eselect wxwidgets configuration scripts have several "-I" compiler options replaced with "-isystem" (I need that for some local wxwidgets projects).

This had been the case for many years, 
and it never made any difference up to now, but now it makes a difference:
The compiler searched the same include directories, 
but it did so in a different order, choosing the wrong header 
in cases where several headerfiles with the same name exist.