Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791034 - games-emulation/pcsxr-1.9.94_p20190306 fails to compile
Summary: games-emulation/pcsxr-1.9.94_p20190306 fails to compile
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-19 06:41 UTC by Agostino Sarubbo
Modified: 2021-09-23 20:56 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,127.73 KB, text/plain)
2021-05-19 06:41 UTC, Agostino Sarubbo
Details
patch for harfbuzz dependency (pango-harfbuzz.patch,2.04 KB, patch)
2021-09-23 20:56 UTC, Alexander Litvinov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-05-19 06:41:56 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-emulation/pcsxr-1.9.94_p20190306 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-19 06:41:59 UTC
Created attachment 709755 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-05-19 06:42:00 UTC
Possible context of error(s):

/usr/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: hb.h: No such file or directory
/usr/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: hb.h: No such file or directory
Comment 3 David Duchesne 2021-06-05 14:57:59 UTC
Hi,
Just stumbled upon the same error on two gentoo boxes (core2 & bdver2) with GCC 10.3.0.

This might be of interest,

https://bbs.archlinux.org/viewtopic.php?id=248498

https://aur.archlinux.org/cgit/aur.git/commit/?h=pcsxr-git&id=b71f5af1153a5f3f0a09955bd33ecb014d1f60a4
Comment 4 d.thuerrigl 2021-06-14 09:36:43 UTC
I encountered the same problem and tried this:

in file /etc/portage/package.env add:

games-emulation/pcsxr pcsxr.conf

in file /etc/portage/env/pcsxr.conf add:

CFLAGS="-O2 -DNDEBUG -mtune=native -pipe -I/usr/include/harfbuzz/ -lGLU -lGL"
CXXFLAGS="-O2 -DNDEBUG -mtune=native -pipe -I/usr/include/harfbuzz/ -lGLU -lGL"

It compiled and seems to run. I tested only one game but it seems to work nicely.

BTW: I tried the pulseaudio use flag first for the pulseaudio sound plugin and got stuttering sound during gameplay, you might want to use -pulseaudio and use sdl in use flags to get rid of that.
Comment 5 Thomas Capricelli 2021-08-10 15:05:22 UTC
i can confirm with uptodate portage and system, using gcc 11.2.0
Comment 6 Raymond Jennings 2021-09-05 07:04:14 UTC
I can confirm as well.

The problematic line from the build log appears to be this:

FAILED: gui/CMakeFiles/pcsxr.dir/ConfDlg.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -DDEF_PLUGIN_DIR=\"/usr/lib64/games/psemu\" -DENABLE_NLS -DENABLE_SIO1API -DGETTEXT_PACKAGE=\"pcsxr\" -DLOCALE_DIR=\"/usr/share/locale/\" -DPACKAGE_NAME=\"PCSXr\" -DPACKAGE_STRING="\"PCSXr 1.9.94\"" -DPACKAGE_VERSION=\"1.9.94\" -DPSEMU_DATA_DIR=\"/usr/share/psemu\" -I/var/tmp/portage/games-emulation/pcsxr-9999/work/pcsxr-9999 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0  -O2 -march=x86-64 -pipe -MD -MT gui/CMakeFiles/pcsxr.dir/ConfDlg.c.o -MF gui/CMakeFiles/pcsxr.dir/ConfDlg.c.o.d -o gui/CMakeFiles/pcsxr.dir/ConfDlg.c.o -c /var/tmp/portage/games-emulation/pcsxr-9999/work/pcsxr-9999/gui/ConfDlg.c
In file included from /usr/include/pango-1.0/pango/pango-font.h:25,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-3.0/gdk/gdktypes.h:35,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from /var/tmp/portage/games-emulation/pcsxr-9999/work/pcsxr-9999/gui/ConfDlg.c:27:
/usr/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: hb.h: No such file or directory
   28 | #include <hb.h>
      |          ^~~~~~
compilation terminated.

Looks like pango is choking on a missing "hb.h"
Comment 7 Raymond Jennings 2021-09-05 07:09:16 UTC
(In reply to d.thuerrigl from comment #4)
> I encountered the same problem and tried this:
> 
> in file /etc/portage/package.env add:
> 
> games-emulation/pcsxr pcsxr.conf
> 
> in file /etc/portage/env/pcsxr.conf add:
> 
> CFLAGS="-O2 -DNDEBUG -mtune=native -pipe -I/usr/include/harfbuzz/ -lGLU -lGL"
> CXXFLAGS="-O2 -DNDEBUG -mtune=native -pipe -I/usr/include/harfbuzz/ -lGLU
> -lGL"
> 
> It compiled and seems to run. I tested only one game but it seems to work
> nicely.
> 
> BTW: I tried the pulseaudio use flag first for the pulseaudio sound plugin
> and got stuttering sound during gameplay, you might want to use -pulseaudio
> and use sdl in use flags to get rid of that.

I can also confirm that this workaround worked.

I removed the -mtune=native part, my hunches say that it's a header file issue and the -I/usr/include/harfbuzz bit did the trick
Comment 8 Alexander Litvinov 2021-09-23 20:56:53 UTC
Created attachment 740940 [details, diff]
patch for harfbuzz dependency

There's a pull request in upstream which fixes the issue https://github.com/iCatButler/pcsxr/pull/24
I created a patch from that PR and it works for me