Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154116 - dev-lang/gpc:path problem
Summary: dev-lang/gpc:path problem
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-05 03:01 UTC by Riccardo
Modified: 2008-01-13 15:37 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo 2006-11-05 03:01:00 UTC
I unmasked gpc 20051104 for me on ppc and tried to build it (the new version, without dependencies). The build ends fine.
Unfortunately some path is not set correctly and the gpcpp precompiler could not be found.

I looked for it and found it in:

/usr/libexec/gpc/powerpc-unknown-linux-gnu/3.4/gpcpp

temporarily adding
/usr/libexec/gpc/powerpc-unknown-linux-gnu/3.4/

to my PATH variable yelded a working pascal compiler, I could successfully build and execute the program I needed.
Maybe this small problem can be fixed in the ebuild and the package can be unmasked, at least for ~ppc ?

Portage 2.1.1-r1 (default-linux/ppc/ppc32/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 ppc)
=================================================================
System uname: 2.6.17-gentoo-r8 ppc 7400, altivec supported
Gentoo Base System version 1.12.6
Last Sync: Sat, 04 Nov 2006 21:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=7400 -mtune=7400 -maltivec -mabi=altivec -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=7400 -mtune=7400 -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa apache2 berkdb bitmap-fonts bonobo cdr cli cracklib crypt cups dlloader dri dvd eds elibc_glibc emboss encode esd firefox gdbm gif gpm gstreamer gtkhtml iconv input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux ldap libg++ libwww mad mikmod motif mozilla mp3 mpeg ncurses nls nptl nptlonly nptonly ogg opengl pam pcre perl png pppd python qt3 qt4
quicktime readline reflection ruby sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales video_cards_imstt video_cards_mach64 video_cards_mga vorbis xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 M. Edward Borasky 2006-12-09 18:46:49 UTC
also happens on x86 -- looks like an easy fix, though ... just add a link to gpcpp in /usr/bin
Comment 2 M. Edward Borasky 2006-12-09 19:21:24 UTC
Yeah ... after the install, if you do the following:

ln -s /usr/libexec/gpc/i686-pc-linux-gnu/3.4/gpcpp /usr/bin/
ln -s /usr/libexec/gpc/i686-pc-linux-gnu/3.4/gpc1 /usr/bin/
ln -s /usr/libexec/gpc/i686-pc-linux-gnu/3.4/collect2 /usr/bin/

stuff works. I think you need all three; I had to do the first two to get a compile to go, and I did the third because it looked like the right thing to do. :)
Comment 3 Tobias Scherbaum (RETIRED) gentoo-dev 2007-05-06 17:33:02 UTC
Added ~ppc.

Reassigning to lang-misc.
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2007-05-06 18:37:10 UTC
gpc installs a file /etc/env.d/56gpc which should make sure your PATH gets set correctly. Did you make sure to log out and in again, or to run `source /etc/profile`? If you did, and it still didn't work, would you please attach that file?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-01-13 15:37:47 UTC
Get back to us please...