Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124562 - lynx-2.8.5-r2 fails to build
Summary: lynx-2.8.5-r2 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Emanuele Giaquinta (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-01 13:19 UTC by Bryan Green
Modified: 2006-08-10 14:07 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 Bryan Green 2006-03-01 13:19:16 UTC
lynx is failing to build.

Here is emerge --info, followed by build errors:

Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r1 x86_64 Dual Core AMD Opteron(tm) Processor 275
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=opteron -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/bonobo-activation /etc/dev.d /etc/devfs.d /etc/esd /etc/eselect /etc/fonts /etc/foomatic /etc/gconf /etc/gnome-vfs-2.0 /etc/gtk /etc/gtk-2.0 /etc/hal /etc/imlib /etc/init.d /etc/openoffice /etc/pango /etc/ppp /etc/sgml /etc/sound /etc/ssl /etc/terminfo /etc/udev /etc/vga /etc/wget /etc/xdg /etc/xml /etc/env.d"
CXXFLAGS="-O2 -march=opteron -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
MAKEOPTS="-j"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 arts audiofile avi berkdb bitmap-fonts bzip2 cairo cdr crypt cscope cups curl dbus dvd dvdr eds emacs emboss encode exif expat f77 fam firefox font-server foomaticdb fortran gd gdbm gif glitz glut gpm gtk gtk2 hal idn imlib ipv6 jpeg kde lcms logrotate lzw lzw-tiff mad mbox mng mp3 mpeg ncurses nfs nls nptl nptlonly opengl pam pam_console pcre pdflib perl png ppds python qt quicktime readline ruby sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb userlocales vim-with-x xinerama xml2 xmms xpm xprint xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

------------------
Build errors:

cd chrtrans && make tables
make[2]: Entering directory `/var/tmp/portage/lynx-2.8.5-r2/work/lynx2-8-5/src/chrtrans'
./makeuctb ./cp1250_uni.tbl cp1250_uni.h
make[2]: execvp: ./makeuctb: Permission denied
./makeuctb ./cp1251_uni.tbl cp1251_uni.h
make[2]: execvp: ./makeuctb: Permission denied
make[2]: *** [cp1250_uni.h] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [cp1251_uni.h] Error 127
make[2]: Leaving directory `/var/tmp/portage/lynx-2.8.5-r2/work/lynx2-8-5/src/chrtrans'
make[1]: [chrtrans/cp852_uni.h] Error 2 (ignored)
cd chrtrans && make tables
make[2]: Entering directory `/var/tmp/portage/lynx-2.8.5-r2/work/lynx2-8-5/src/chrtrans'
./makeuctb ./cp1250_uni.tbl cp1250_uni.h
make[2]: execvp: ./makeuctb: Permission denied
make[2]: *** [cp1250_uni.h] Error 127
make[2]: Leaving directory `/var/tmp/portage/lynx-2.8.5-r2/work/lynx2-8-5/src/chrtrans'

The errors actually continue, at some incredible length, before finally aborting the compile.  If desired, I can attach the full output.
Comment 1 Scott Hadfield (RETIRED) gentoo-dev 2006-03-02 21:00:38 UTC
I'm having trouble reproducing this. I'm kind of confused by the output, when I build lynx I get:

cd chrtrans && make \
        SITE_DEFS="" \
        CFLAGS="-march=athlon64 -O2 -pipe -DANSI_VARARGS " \
        CPPFLAGS="-DLINUX  -D_GNU_SOURCE" \
        CC="gcc" tables

So mine has a bunch of environment vars listed, whereas yours only has "cd chrtrans && make tables".

I don't know if this will help... but can you try setting your -march=athlon64 in your CFLAGS? Also, could you try the -r3? If that one works for you I'll put it into the stable branch.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-07-22 14:34:41 UTC
Re-assign wrt Bug 50399
Comment 3 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-07-23 00:36:55 UTC
Is it still reproducible with lynx-2.8.5-r3 ?
Comment 4 Bryan Green 2006-07-26 12:09:16 UTC
(In reply to comment #3)
> Is it still reproducible with lynx-2.8.5-r3 ?
> 

Yes, it is still reproducible.
Incidentally, lynx emerges just fine on another system with identical hardware but separately administered.
Any ideas on comparisons I could do between the two?
Comment 5 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-08-02 02:21:34 UTC
seems there is a problem with the "makeuctb" binary, which is generated in src/chrtrans/ from makeuctb.c; can you check the permission bits with 
"ls -l /var/tmp/portage/lynx-2.8.5-r3/work/lynx2-8-5/src/chrtrans/makeuctb"
Comment 6 Stefan Behte (RETIRED) gentoo-dev Security 2006-08-08 09:15:54 UTC
lynx-2.8.5-r3 compiled fine here:
CFLAGS="-Os -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

USE="
-3dfx -kde -gnome -ipv6
-xinerama
gcj
mtrr mmx sse mmxext 3dnow 3dnowext nptl nptlonly acpi
nvidia dlloader directfb fbcon X svga
nsplugin network samba xinerama dga gif gpm ftp crypt curl ethereal icq imagemagick gtk gtk2 jikes mime java ncurses arts -esd bzlib cdb sockets snmp ssl tiff usb zlib png jpeg perl pcre readline
encode ffmpeg flac cdparanoia
xine xmms
cdr dvd dvdr dvdread
divx4linux aac oggvorbis a52 mjpeg divx4linux vcd win32codecs quicktime musepack asf theora x264 real xvid
xprint print
userlocales nls
bzip2"

ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"

PORTAGE_ELOG_CLASSES="warn error info"
PORTAGE_ELOG_SYSTEM="save"
PORT_LOGDIR=/var/log

MAKEOPTS="-j2"
LINGUAS="de"

INPUT_DEVICES="mouse keyboard"
VIDEO_CARDS="nv nvidia"


Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo i686)
=================================================================
System uname: 2.6.16-gentoo i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
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.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
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="x86 3dnow 3dnowext X a52 aac acpi alsa apache2 apm arts asf avi berkdb bitmap-fonts bzip2 bzlib cdb cdparanoia cdr cli crypt cups curl dga directfb divx4linux dlloader dri dvd dvdr dvdread eds emboss encode ethereal fbcon ffmpeg flac foomaticdb fortran ftp gcj gdbm gif gpm gstreamer gtk gtk2 icq imagemagick imlib isdnlog java jikes jpeg libg++ libwww mad mikmod mime mjpeg mmx mmxext motif mp3 mpeg mtrr musepack ncurses network nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pam pcre pdflib perl png pppd print python qt qt3 qt4 quicktime readline real reflection samba sdl session snmp sockets spell spl sse ssl svga tcpd theora tiff truetype truetype-fonts type1-fonts udev usb userlocales vcd vorbis win32codecs x264 xine xinerama xml xmms xorg xprint xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_de userland_GNU video_cards_nv video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 7 Stefan Behte (RETIRED) gentoo-dev Security 2006-08-08 09:19:28 UTC
Sorry for not just posting once, but I forgot to answer this:

>Any ideas on comparisons I could do between the two?
Compare the USE flags, Kernel settings (are you using some Kernel Hardening on your machine?)?
Comment 8 Thomas Dickey 2006-08-09 09:58:32 UTC
lynx's makefiles haven't been vetted for "make -j".
Comment 9 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-08-09 10:24:53 UTC
Thanks Thomas, I didn't notice he is using "-j" with no limit; I'll restrict to -j1 then.
Comment 10 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-08-10 01:53:59 UTC
Bryan, do you confirm it works if you use MAKEOPTS="-j1" ?
Comment 11 Bryan Green 2006-08-10 10:01:44 UTC
(In reply to comment #10)
> Bryan, do you confirm it works if you use MAKEOPTS="-j1" ?
> 

Okay, I compiled with MAKEOPTS=-j1 and it worked.
Then I tried again with MAKEOPTS=-j, and it worked again.
Go figure.  I dont know what changed between now and the last attempt, but at least it installs now.
Comment 12 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-08-10 14:07:41 UTC
Thanks, I have added -j1 to emake invocation.