I have been working on getting a working pcsx2-0.9.3 ebuild (see Bug #141626), and it needs this plugin. So I wrote an ebuild for it.
Created attachment 127830 [details] ps2emu-ZeroGS-0.96.2.ebuild
Created attachment 127841 [details, diff] ps2emu-ZeroGS-0.96.2-custom-cflags.patch This patch enables custom cflags in the ZeroGS plugin.
Created attachment 129544 [details] ps2emu-ZeroGS-0.96.2.ebuild Fixed a typo in the doexe line.
There are a problem compile this without the devbuild useflag install: no se puede efectuar `stat' sobre «libZeroGSogl.so.0.96.2»: No existe el fichero o el directorio * * ERROR: games-emulation/ps2emu-ZeroGS-0.96.2 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_install * ebuild.sh, line 1089: Called qa_call 'src_install' * ebuild.sh, line 44: Called src_install * ps2emu-ZeroGS-0.96.2.ebuild, line 50: Called die * * newexe failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/games-emulation/ps2emu-ZeroGS-0.96.2/temp/build.log'. * This ebuild is from an overlay: '/usr/local/overlay/' doing ln -s libZeroGSoglr.so.0.96.2 libZeroGSogl.so.0.96.2 and FEATURES=keepwork emerge ps2emu-ZeroGS seems to work
Created attachment 129622 [details] ps2emu-ZeroGS-0.96.2.ebuild This should fix the problem you were having. I also added the fetch restriction that was always there, but previously would just fail w/o reason.
Created attachment 144849 [details] ps2emu-zerogs-0.96.7.ebuild Here's a new ebuild that uses SourceForge and doesn't require 7zip to unpack. It also has, to be the best of my knowledge, all the right dependencies. Although the resulting binaries have 0.96.2 in the filename, the plugin actually advertises itself as 0.96.7, hence the version change. The plugin segfaults if you try to configure the plugin before the rest of the plugins are configured. You should hit OK first and then configure it. I think this has something to do with the log file.
The plugin keeps segfaulting on me. Log output: ----------- ... GIF reset NTSC Framelimiter rate updated (UpdateVSyncRate): 60 fps ZeroGS: creating ZeroGS: Only Singlebuffered Visual! ZeroGS: glX-Version 1.2 Segmentation fault dmesg: ------- pcsx2.bin[5529]: segfault at 10 ip 7f89794b40e4 sp 7fff91127ba0 error 4 in libZeroGSogl.so.0.96.2[7f8979466000+61000] emerge --info: --------------- Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r2 x86_64) ================================================================= System uname: 2.6.25-gentoo-r2 x86_64 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz Timestamp of tree: Fri, 09 May 2008 10:00:03 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu"
Created attachment 155381 [details, diff] Fixes compilation with gcc 4.3
Created attachment 155671 [details] ps2emu-zerogs-0.96.7.ebuild This ebuild fixes a install phase error when USE="debug"
Created attachment 156167 [details] ps2emu-zerogs-9999.ebuild
Created attachment 156169 [details] ps2emu-zerogs-0.96.7.ebuild
Created attachment 156171 [details, diff] ps2emu-zerogs-consistent-naming.patch
Created attachment 156175 [details, diff] ps2emu-zerogs-devbuild-paths.patch
I finally got not lazy and made an overlay. You can fetch it with: layman -o http://github.com/eatnumber1/pcsx2-overlay/tree/master%2Flayman-local.cfg?raw=true -a pcsx2-overlay This is where I will be commiting all my changes from now on. I will not be posting any more ebuilds here. I will still however use this as a semi-bugtracker, so report problems here.
Can't Compile games-emulation/ps2emu-zerogs-0.96.7 nocona -O2 -pipe -O3 -fomit-frame-pointer -MT zerogsshaders.o -MD -MP -MF .deps/zerogsshaders.Tpo -c -o zerogsshaders.o zerogsshaders.cpp mv -f .deps/zpipe.Tpo .deps/zpipe.Po mv -f .deps/zerogsshaders.Tpo .deps/zerogsshaders.Po x86_64-pc-linux-gnu-gcc -march=nocona -O2 -pipe -O3 -fomit-frame-pointer -Wl,-O1 -Wl,--no-as-needed -o zgsbuild zpipe.o zerogsshaders.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lGL -lGLU -lGLEW -ljpeg -lpthread -lstdc++ -lz -ldl -lXxf86vm -lCg -lCgGL make: Leaving directory `/var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7/work/pcsx2-0.9.4/plugins/gs/zerogs/opengl/ZeroGSShaders' usage: [src] [dst] [opts] /var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7/temp/environment: line 3117: 21589 Segmentation fault ./ZeroGSShaders/zgsbuild ps2hw.fx ps2hw.dat * * ERROR: games-emulation/ps2emu-zerogs-0.96.7 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3123: Called die * The specific snippet of code: * ./ZeroGSShaders/zgsbuild ps2hw.fx ps2hw.dat || die "Unable to compile shaders"; * The die message: * Unable to compile shaders * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7/temp/environment'. * This ebuild is from an overlay: '/usr/local/portage/layman/pcsx2-overlay/' Any Ideas?
compile with USE="-shaders"
Thanks it works :P
Created attachment 206198 [details] Shaders compilation error I'm running: LANG=C USE="-shaders" ACCEPT_KEYWORDS="~amd64" emerge -1 games-emulation/ps2emu-zerogs And i receive an error. Even if i do not want shaders, error is still present.
(In reply to comment #18) > Created an attachment (id=206198) [details] > Shaders compilation error > > I'm running: > LANG=C USE="-shaders" ACCEPT_KEYWORDS="~amd64" emerge -1 > games-emulation/ps2emu-zerogs > > And i receive an error. Even if i do not want shaders, error is still present. > I just pushed a change that might fix it. If not, do you have media-gfx/nvidia-cg-toolkit-2.1.0017[multilib] installed?
(In reply to comment #19) > I just pushed a change that might fix it. If not, do you have > media-gfx/nvidia-cg-toolkit-2.1.0017[multilib] installed? > Yes, i have installed nvidia-cg-toolkit, but somewhat in version 2.1.0016 and 2.1.0017 installation links /usr/lib64/libCg.so , /usr/lib64/libCgGL.so and /usr/include/Cg (that all in /opt/) isn't installed. After manual installing ZeroGS is compiled well, but still it is many errors with shaders compilation. Shaders is not working at all. Some facts: I have x86_64 and GeForce 6600GS. =============================== games-emulation/ps2emu-zerogs-0.96.7 + media-gfx/nvidia-cg-toolkit-2.1.0012 + shaders = make: Leaving directory `/var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7/work/pcsx2-0.9.4/plugins/gs/zerogs/opengl/ZeroGSShaders' usage: [src] [dst] [opts] /var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7/temp/environment: line 3463: 30812 Segmentation fault ./ZeroGSShaders/zgsbuild ps2hw.fx ps2hw.dat ---------Can't install. USE="-shaders" helped to fix this ===================================== games-emulation/ps2emu-zerogs-0.96.7 + media-gfx/nvidia-cg-toolkit-2.1.0016 + shaders = targets.cpp:20:19: error: Cg/cg.h: No such file or directory targets.cpp:21:21: error: Cg/cgGL.h: No such file or directory after manual installing links to /opt/ for libCg.so , libCgGL.so and /usr/include/Cg : ...many errorz... Failed to load shader TextureFog0_tex32to16PS: ps2hw.fx(372) : error C5210: assignment among incompatible concrete types (864) : fatal error C9999: unable to generate code, no legal types for program. Failed to load shader TextureFog0_tex16to8hPS: ps2hw.fx(372) : error C5210: assignment among incompatible concrete types (864) : fatal error C9999: unable to generate code, no legal types for program. wrote ps2hw.dat >>> Source compiled. ------installed, but shaders isn't working ========================== games-emulation/ps2emu-zerogs-0.96.7 + media-gfx/nvidia-cg-toolkit-2.1.0016 + shaders = Same problem with links to libs and include files for compilation... (ld: cannot find -lCg) After manual fixing: Same bunch of errors with "ps2hw.fx" ... Failed to load shader TextureFog0_tex16to8hPS: ps2hw.fx(372) : error C5210: assignment among incompatible concrete types (864) : fatal error C9999: unable to generate code, no legal types for program. ... ------installed too, but same issue - shaders is not working (I mean games are running, but, for example, in some games i see just squares in place of characters... If i switch on anti-aliasing, then games isn't running at all, with no errors) Please fix this. Without shaders pcsx2 is useless for me, and for many peoples too.
I was mistaken a little: ================== games-emulation/ps2emu-zerogs-0.96.7 + media-gfx/nvidia-cg-toolkit-2.1.0017 + shaders = Installed, but can't run any game. Crashing without any errors. Without shaders use-flag - working. With media-gfx/nvidia-cg-toolkit-2.1.0016 same situation.
You should be using nvidia-cg-toolkit-2.1.0017 with USE=multilib. The shaders USE flag is very experimental and will not work for most people. The only configuration that i'm really supporting is games-emulation/ps2emu-zerogs-0.96.7 + media-gfx/nvidia-cg-toolkit-2.1.0017 with USE="-shaders"
I'm having issues building this plugin. I've never enabled shaders, but to be sure, I set the use flag -shaders. This is what it fails with each time: USE=-shaders emerge -uv games-emulation/ps2emu-zerogs zerogs.cpp:4653: warning: deprecated conversion from string constant to 'char*' zerogs.cpp:4751: error: 'struct FRAGMENTSHADER' has no member named 'fTexAlpha' zerogs.cpp:4751: error: 'cgGLSetParameter4fv' was not declared in this scope zerogs.cpp:4752: error: 'struct FRAGMENTSHADER' has no member named 'fTexAlpha2' zerogs.cpp:4754: error: 'struct FRAGMENTSHADER' has no member named 'fTestBlack' zerogs.cpp:4817: error: 'struct FRAGMENTSHADER' has no member named 'fTexWrapMode' zerogs.cpp:4818: error: 'struct FRAGMENTSHADER' has no member named 'fTexWrapMode' zerogs.cpp:4819: error: 'struct FRAGMENTSHADER' has no member named 'fClampExts' zerogs.cpp:4820: error: 'struct FRAGMENTSHADER' has no member named 'fClampExts' zerogs.cpp: In function 'void ZeroGS::SetTexVariablesInt(int, int, const tex0Info&, ZeroGS::CMemoryTarget*, FRAGMENTSHADER*, int)': zerogs.cpp:4856: warning: deprecated conversion from string constant to 'char*' zerogs.cpp:4870: error: 'struct FRAGMENTSHADER' has no member named 'fRealTexDims' zerogs.cpp:4871: error: 'struct FRAGMENTSHADER' has no member named 'fRealTexDims' zerogs.cpp:4871: error: 'cgGLSetParameter4fv' was not declared in this scope zerogs.cpp:4873: error: 'struct FRAGMENTSHADER' has no member named 'prog' zerogs.cpp:4873: error: 'cgGetNamedParameter' was not declared in this scope zerogs.cpp:4873: error: 'cgGLSetParameter4fv' was not declared in this scope zerogs.cpp:4919: error: 'struct FRAGMENTSHADER' has no member named 'fTexDims' zerogs.cpp:4919: error: 'cgGLSetParameter4fv' was not declared in this scope zerogs.cpp:4920: error: 'struct FRAGMENTSHADER' has no member named 'fTexBlock' zerogs.cpp:4921: error: 'struct FRAGMENTSHADER' has no member named 'fTexOffset' zerogs.cpp:4938: error: 'struct FRAGMENTSHADER' has no member named 'fPageOffset' zerogs.cpp: In function 'void ZeroGS::SetFogColor(u32)': zerogs.cpp:5236: error: 'g_fparamFogColor' was not declared in this scope zerogs.cpp:5236: error: 'cgGLSetParameter4fv' was not declared in this scope targets.cpp: In member function 'virtual void ZeroGS::CDepthTarget::Update(int, ZeroGS::CRenderTarget*)': targets.cpp:918: error: 'struct FRAGMENTSHADER' has no member named 'sMemory' targets.cpp:918: error: 'cgGLSetTextureParameter' was not declared in this scope targets.cpp:919: error: 'struct FRAGMENTSHADER' has no member named 'sFinal' targets.cpp:919: error: 'cgGLEnableTextureParameter' was not declared in this scope targets.cpp:922: error: 'struct VERTEXSHADER' has no member named 'sBitBltTex' targets.cpp:922: error: 'cgGLSetParameter4fv' was not declared in this scope targets.cpp:926: error: 'struct VERTEXSHADER' has no member named 'sBitBltPos' targets.cpp:932: error: 'struct FRAGMENTSHADER' has no member named 'sOneColor' targets.cpp:938: error: 'struct FRAGMENTSHADER' has no member named 'sBitBltZ' targets.cpp:957: error: 'struct VERTEXSHADER' has no member named 'prog' targets.cpp:957: error: 'g_vsprog' was not declared in this scope targets.cpp:957: error: 'struct VERTEXSHADER' has no member named 'prog' targets.cpp:957: error: 'cgGLBindProgram' was not declared in this scope targets.cpp:957: error: 'struct VERTEXSHADER' has no member named 'prog' targets.cpp:958: error: 'struct FRAGMENTSHADER' has no member named 'prog' targets.cpp:958: error: 'g_psprog' was not declared in this scope targets.cpp:958: error: 'struct FRAGMENTSHADER' has no member named 'prog' targets.cpp:958: error: 'cgGLBindProgram' was not declared in this scope targets.cpp:958: error: 'struct FRAGMENTSHADER' has no member named 'prog' zerogs.cpp: In function 'bool ZeroGS::SaveTGA(const char*, int, int, void*)': zerogs.cpp:5950: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result zerogs.cpp:5951: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result targets.cpp: In member function 'ZeroGS::CMemoryTarget* ZeroGS::CMemoryTargetMngr::GetMemoryTarget(const tex0Info&, int)': targets.cpp:1630: warning: deprecated conversion from string constant to 'char*' targets.cpp:1723: warning: deprecated conversion from string constant to 'char*' make[1]: *** [libZeroGSogl_a-Mem.o] Error 1 make[1]: *** [libZeroGSogl_a-zerogs.o] Error 1 targets.cpp: In function 'void ZeroGS::TransferHostLocal(const void*, u32)': targets.cpp:2596: warning: deprecated conversion from string constant to 'char*' make[1]: *** [libZeroGSogl_a-targets.o] Error 1 mv -f .deps/libZeroGSogl_a-x86.Tpo .deps/libZeroGSogl_a-x86.Po make[1]: Leaving directory `/var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7-r1/work/rc_0.9.6/plugins/zerogs/opengl' make: *** [all-recursive] Error 1 * ERROR: games-emulation/ps2emu-zerogs-0.96.7-r1 failed:
post your emerge --info
(In reply to comment #24) > post your emerge --info > d'oh. That would help, wouldn't it? Portage 2.1.7.1 (default/linux/amd64/2008.0/desktop, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 19 Oct 2009 05:30:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.0_p33 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.5.4-r3, 2.6.3, 3.1.1-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.1-r1 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en en_US" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages/demon-xanth" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=180" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/jokey /usr/local/portage/layman/sunrise /usr/local/portage/layman/x11 /usr/local/portage/layman/pcsx2 /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dirac dri dts dv dvd dvdr dvdread eds emboss encode evo exif fam ffmpeg flac fortran gdbm gif gnome gnome-keyring gpm gstreamer gtk hal iconv iee1394 ipv6 isdnlog jpeg ldap libnotify lm_sensors logrotate mad matroska mikmod mmx modules mp3 mp4 mpeg mtp mudflap multilib mysql ncurses nls nptl nptlonly ntpl ntplonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session snmp spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
I just pushed a fix for a different, but possibly related problem. Try it again and see if it is fixed.
(In reply to comment #26) > I just pushed a fix for a different, but possibly related problem. Try it again > and see if it is fixed. > Yup. It works for me now, thanks!
error when building plug this error with all versions of the plugin where the problem is and how to fix it ? LANG=C USE="-shaders" emerge -1 ps2emu-zerogs mv -f .deps/libZeroGSogl_a-x86-32.Tpo .deps/libZeroGSogl_a-x86-32.Po mv -f .deps/libZeroGSogl_a-zerogs.Tpo .deps/libZeroGSogl_a-zerogs.Po rm -f libZeroGSogl.a ar cru libZeroGSogl.a libZeroGSogl_a-GSmain.o libZeroGSogl_a-memcpy_amd.o libZeroGSogl_a-Regs.o libZeroGSogl_a-x86.o libZeroGSogl_a-zpipe.o libZeroGSogl_a-Mem.o libZeroGSogl_a-rasterfont.o libZeroGSogl_a-targets.o libZeroGSogl_a-zerogs.o libZeroGSogl_a-x86-32.o i686-pc-linux-gnu-ranlib libZeroGSogl.a i686-pc-linux-gnu-gcc -I/opt/nvidia-cg-toolkit/include -L/opt/nvidia-cg-toolkit/lib32 -shared -Wl,-soname,libZeroGSogl.so.0.96.2 -Wl,-O1 -o libZeroGSogl.so.0.96.2 libZeroGSogl_a-GSmain.o libZeroGSogl_a-memcpy_amd.o libZeroGSogl_a-Regs.o libZeroGSogl_a-x86.o libZeroGSogl_a-zpipe.o libZeroGSogl_a-Mem.o libZeroGSogl_a-rasterfont.o libZeroGSogl_a-targets.o libZeroGSogl_a-zerogs.o libZeroGSogl_a-x86-32.o Linux/libZeroGSLinux.a -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lGL -lGLU -lGLEW -ljpeg -lpthread -lstdc++ -lz -ldl -lXxf86vm -lCg -lCgGL /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lCg collect2: ld returned 1 exit status make[1]: *** [libZeroGSogl.so.0.96.2] Error 1 make[1]: Leaving directory `/var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7-r1/work/rc_0.9.6/plugins/zerogs/opengl' make: *** [all-recursive] Error 1 * ERROR: games-emulation/ps2emu-zerogs-0.96.7-r1 failed: * emake failed * * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3436: Called default * ebuild.sh, line 1482: Called _eapi2_src_compile * ebuild.sh, line 647: Called die * The specific snippet of code: * emake || die "emake failed" * * If you need support, post the output of 'emerge --info =games-emulation/ps2emu-zerogs-0.96.7-r1', * the complete build log and the output of 'emerge -pqv =games-emulation/ps2emu-zerogs-0.96.7-r1'. * This ebuild is from an overlay named 'pcsx2-overlay': '/usr/local/portage/layman/pcsx2/' * The complete build log is located at '/var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7-r1/temp/environment'. * S: '/var/tmp/portage/games-emulation/ps2emu-zerogs-0.96.7-r1/work/rc_0.9.6/plugins/zerogs/opengl' ====================================================================================== emerge --info Portage 2.2_rc46 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-v3-smp i686) ================================================================= System uname: Linux-2.6.31-v3-smp-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-1.12.11.1 Timestamp of tree: Thu, 29 Oct 2009 14:20:01 +0000 app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/files/gentoo/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://linuxarchive.nnov.ru/Unix/Gentoo ftp://gentoo.zxc.nnov.ru/gentoo" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1" LINGUAS="ru" MAKEOPTS="-j2" PKGDIR="/files/gentoo/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/zugaina /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/Spring /usr/local/portage/layman/pcsx2 /usr/local/portage" SYNC="rsync://rsync.gentoo.nnov.ru/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac acl acpi aiglx alsa amr archive audio automount bash-completion berkdb binary-drivers bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt ctype cups dbus dri dts dvd dvdr dvdread eds emboss encode evo fam fbcondecor ffmpeg fglrx firefox flac fortran gdbm gif glib gpm gstreamer hal iconv isdnlog jpeg kde ldap libnotify lm_sensors mad mikmod mmx mmxext modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime rcc readline reflection samba sdl session spell spl sse ssl startup-notification svg svga sysfs tcpd thunar tiff truetype unicode usb vcd vorbis win32codecs wmf x264 x86 xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="fglrx" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS