Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232406 - faild to build texlive-core-2007-r13
Summary: faild to build texlive-core-2007-r13
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-20 04:20 UTC by Yang Wenpeng
Modified: 2008-08-01 03:21 UTC (History)
0 users

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 Yang Wenpeng 2008-07-20 04:20:18 UTC
My i686 machines failed to build app-text/texlive-core-2007-r13 with the keywords 86, however, my amd64 successed building the package with keywords amd64. These to PC used the same USE flags. 

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge --update --newuse --deep world
3. emerge texlive-core

Actual Results:  

/bin/sh ./texc.script ./tex.lpro texc.lpro
./texc.script: line 12: 26246 Segmentation fault      ed $1  <<edscriptend
/% begin code for uncompressed fonts only/d
.,/% end code for uncompressed fonts only/d
.,/% end of code for unpacking compressed fonts/s/% //
w $2
edscriptend

make[2]: *** [texc.lpro] Error 139
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/app-text/texlive-core-2007-r13/work/texk/dvipsk'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-text/texlive-core-2007-r13/work/texk'
make: *** [all] Error 1
 
and my emerge --info is
Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Celeron(TM) CPU 1000MHz
Timestamp of tree: Sat, 19 Jul 2008 21:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -ftracer -funit-at-a-time -fforce-addr -fpeel-loops -funswitch-loops"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -ftracer -funit-at-a-time -fforce-addr -fpeel-loops -funswitch-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://61.135.158.199 ftp://ftp.sjtu.edu.cn/sites/gentoo ftp://gg3.net/pub/linux/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all"
LINGUAS="zh zh_CN"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://61.135.158.199/gentoo-portage"
USE="3dnow X a52 aac aalib acc acl alsa bash-completion bzip2 chardet cjk cli cracklib crypt dri encode fbcon font-server fontconfig fortran ftp gd gdbm ggi gif gpm graphics gtk gtk2 iconv imlib isdnlog jpeg latex lcms libcaca lm_sensors lyrics mmx mng mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nvidia opengl openmp pam pcre pdf perl plotutils png postscript pppd preview-latex pstricks python quicktime readline real reflection screenshot sdl session softquota spell spl srt sse ssl stroke svg svga symlink tcpd tex4ht tiff truetype unicode vim-syntax win32codecs wma wmf x86 xetex xml xorg xpm xv xvid xvmc 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 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="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh zh_CN" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS




Expected Results:  
A successful build.
Comment 1 Alexis Ballier gentoo-dev 2008-07-20 14:24:57 UTC
what version of sys-apps/ed are you using ?
Comment 2 Yang Wenpeng 2008-07-21 02:35:47 UTC
The sys-apps/ed was not installed.
Comment 3 Yang Wenpeng 2008-07-21 03:14:00 UTC
Alexis Ballier, thank you for your reply. 
I installed the sys-apps/ed-0.9 and have tried to emerge texlive-core-2007-r13, but It failed again :-(
Comment 4 Alexis Ballier gentoo-dev 2008-07-21 12:56:01 UTC
can you try to go in the /var/tmp/portage/app-text/texlive-core-2007-r13/work/texk/dvipsk and run the command:

ed tex.lpro <<edscriptend
/% begin code for uncompressed fonts only/d
.,/% end code for uncompressed fonts only/d
.,/% end of code for unpacking compressed fonts/s/% //
w texc.lpro
edscriptend


and see if it works?

If it segfaults I'll probably need a backtrace: http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 5 Yang Wenpeng 2008-07-22 09:25:05 UTC
I went in /var/tmp/portage/app-text/texlive-core-2007-r13/work/texk/dvipsk and run the command:

ed tex.lpro <<edscriptend
/% begin code for uncompressed fonts only/d
.,/% end code for uncompressed fonts only/d
.,/% end of code for unpacking compressed fonts/s/% //
w texc.lpro
edscriptend
and got the information:
Segmentation fault
 
I have read the article "how to get meaningful backtraces in gentoo":
http://www.gentoo.org/proj/en/qa/backtraces.xml
Because I am not good at programming,therefore I can understand it afond:-(.
But I did a try:
1.CFLAGS="-march=pentium3 -O2 -ggdb" CXXFLAGS="${CFLAGS}"
2.$gdb emerge
and got some error :
"/usr/bin/emerge": not in executable format: File format not recognized
Now, what I shall do next step, could you give me some details in the present situation? Thank you!


Comment 6 Alexis Ballier gentoo-dev 2008-07-22 09:27:52 UTC
(In reply to comment #5)

> 1.CFLAGS="-march=pentium3 -O2 -ggdb" CXXFLAGS="${CFLAGS}"
> 2.$gdb emerge

No, you need to install sys-apps/ed with these C{,XX}FLAGS and with FEATURES=nostrip or splitdebug and then run:
gdb ed
$ run tex.lpro <<edscriptend
/% begin code for uncompressed fonts only/d
.,/% end code for uncompressed fonts only/d
.,/% end of code for unpacking compressed fonts/s/% //
w texc.lpro
edscriptend


if you get a segmentation fault, gdb will catch it, and typing 'bt full' will give you the information needed.
Comment 7 Yang Wenpeng 2008-07-23 07:36:40 UTC
Alexis Ballier ,
Thank you for your patient. I run the commands as your instruction. But there are some errors:
This GDB was configured as "i686-pc-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run tex.lpro <<edscriptend
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /bin/ed tex.lpro <<edscriptend
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
0x0804c183 in ?? ()

I don't know whether the relsusts are that you want or I did something wrong?

Thank you again!
Comment 8 Alexis Ballier gentoo-dev 2008-07-27 07:41:41 UTC
(In reply to comment #7)
> Alexis Ballier ,
> Thank you for your patient. I run the commands as your instruction. But there
> are some errors:
> This GDB was configured as "i686-pc-linux-gnu"...
> (no debugging symbols found)
> Using host libthread_db library "/lib/libthread_db.so.1".
> (gdb) run tex.lpro <<edscriptend
> The program being debugged has been started already.
> Start it from the beginning? (y or n) y
> Starting program: /bin/ed tex.lpro <<edscriptend
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0804c183 in ?? ()
> 
> I don't know whether the relsusts are that you want or I did something wrong?

not really ;) You should have installed sys-apps/ed with debug information (like explained on the backtrace guide, dont strip it and build it with -ggdb) and then typed "bt" or "bt full" in gdb to get a backtrace.
Comment 9 Yang Wenpeng 2008-08-01 03:21:17 UTC
Alexis Ballier,  I built the sys-apps/ed with CFLAGS="-march=pentium3 -O2" and CXXFLAGS="${CFLAGS}", then the texlive-core emerged successfully. 

Thank you very much!