----CUT---- Copying . done! ./linux-gnu/en/rs/tools/postproc linux-gnu/en/rs/arj/arj POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found make[1]: *** [linux-gnu/en/rs/arj/arj] Error 3 make[1]: Leaving directory `/var/tmp/portage/arj-3.10.20/work/arj-3.10.20' make: *** [all] Error 2 !!! ERROR: app-arch/arj-3.10.20 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! make package failed
I too have had problems building all versions of ARJ in portage as well as the current version at sourceforge arj-3.10.21. All versions fail to build with a similar result as mentioned by the previous poster. This is where it fails on arj-3.10.18 : Creating archive : ./linux-gnu/en/rs/help.arj Adding ./resource/en/arjl.txt 37.4% Adding ./resource/en/arjs.txt 47.3% Testing arjl.txt OK Testing arjs.txt OK 2 file(s) ./linux-gnu/en/rs/tools/join ./linux-gnu/en/rs/arj/arj ./linux-gnu/en/rs/help.arj JOIN v 1.30 [26/04/2003] Not a part of any binary package! Copying . done! ./linux-gnu/en/rs/tools/postproc linux-gnu/en/rs/arj/arj POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found make[1]: *** [linux-gnu/en/rs/arj/arj] Error 3 make[1]: Leaving directory `/var/tmp/portage/arj-3.10.18/work/arj' make: *** [all] Error 2 !!! ERROR: app-arch/arj-3.10.18 failed. !!! Function src_compile, Line 37, Exitcode 2 !!! make package failed This is the result from arj-3.10.20 which is exactly the same: Creating archive : ./linux-gnu/en/rs/help.arj Adding ./resource/en/arjl.txt 37.4% Adding ./resource/en/arjs.txt 47.3% Testing arjl.txt OK Testing arjs.txt OK 2 file(s) ./linux-gnu/en/rs/tools/join ./linux-gnu/en/rs/arj/arj ./linux-gnu/en/rs/help.arj JOIN v 1.30 [26/04/2003] Not a part of any binary package! Copying . done! ./linux-gnu/en/rs/tools/postproc linux-gnu/en/rs/arj/arj POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found make[1]: *** [linux-gnu/en/rs/arj/arj] Error 3 make[1]: Leaving directory `/var/tmp/portage/arj-3.10.20/work/arj-3.10.20' make: *** [all] Error 2 !!! ERROR: app-arch/arj-3.10.20 failed. !!! Function src_compile, Line 28, Exitcode 2 !!! make package failed arj-3.10g fails like this: Creating archive : ./linux-gnu/en/rs/help.arj Adding ./resource/en/arjl.txt 37.4% Adding ./resource/en/arjs.txt 47.3% Testing arjl.txt OK Testing arjs.txt OK 2 file(s) ./linux-gnu/en/rs/tools/join ./linux-gnu/en/rs/arj/arj ./linux-gnu/en/rs/help.arj JOIN v 1.30 [26/04/2003] Not a part of any binary package! Copying . done! ./linux-gnu/en/rs/tools/postproc linux-gnu/en/rs/arj/arj POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found make[1]: *** [linux-gnu/en/rs/arj/arj] Error 3 make[1]: Leaving directory `/var/tmp/portage/arj-3.10g/work/arj' make: *** [all] Error 2 !!! ERROR: app-arch/arj-3.10g failed. !!! Function src_compile, Line 28, Exitcode 2 !!! make package failed And finally under the most recent stable version in sourceforge arj-3.10.21 it fails here: Copying . done! rm -f ./linux-gnu/en/rs/help.arj ./linux-gnu/en/rs/arj/arj a ./linux-gnu/en/rs/help.arj -+ -t1f -2e -e -jm -jh65535 -jt ./resource/en/arj?.txt ARJ32 v 3.10, Copyright (c) 1998-2004, ARJ Software Russia. [28 Jul 2004] Creating archive : ./linux-gnu/en/rs/help.arj Adding ./resource/en/arjl.txt 37.2% Adding ./resource/en/arjs.txt 47.3% Testing arjl.txt OK Testing arjs.txt OK 2 file(s) ./linux-gnu/en/rs/tools/join ./linux-gnu/en/rs/arj/arj ./linux-gnu/en/rs/help.arj JOIN v 1.30 [26/04/2003] Not a part of any binary package! Copying . done! ./linux-gnu/en/rs/tools/postproc linux-gnu/en/rs/arj/arj POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found make[1]: *** [linux-gnu/en/rs/arj/arj] Error 3 make[1]: Leaving directory `/var/tmp/portage/arj-3.10.21/work/arj-3.10.21' make: *** [all] Error 2 !!! ERROR: app-arch/arj-3.10.21 failed. !!! Function src_compile, Line 28, Exitcode 2 !!! make package failed As you can see they all fail with similar results. I'm using GCC-3.4.1-r1 (but it also fails with the same results with GCC-3.4.0 as well). And I'm using 2.3.4.20040619. My USE=aac acl acpi acpi4linux aim audiofile bidi bonobo bzlib cap caps cddb \ cdinstall cdrom chroot cpdflib cscope curl curlwrappers devfs26 dga \ dio divx4linux djbfft dnd dv dvb dvd dvdr emacs erandom evms2 exif \ faac faad fbcon ffmpeg fftw flac flash fmod ftp gd gimp gimpprint \ glade glgd glut gs gstreamer gtkhtml iconv icq icu idea ieee1394 \ image imagemagick imlib2 innodb jabber jack jack-tmpfs java \ javascript jbig jce joystick jp2 justify kerberos krb4 ladcca lcms \ leim libcaca libsamplerate live lzw lzw-tiff matroska md5sum ming \ mixer mmx mng monkey mozcalendar mozdomi mozp3p mozsvg mozxmlterm \ mpeg4 mpi mplayer msn music mysqli net neXt nocardbus nocd nowin nptl \ nvidia odbc offensive ooo-kde oscar pcre physfs pic plotutils pnp \ posix ppds pwdb rogue S3TC samba sasl sdk shared silc simplexml slp \ sndfile sockets speex sse stencil-buffer svg sysvipc szip theora tiff \ timidity transcode unicode usb uudeview v4l v4l2 videos vim-with-x \ wmf wsconvert X509 xatrix Xaw3d xinerama xml xosd xvid yahoo yv12 \ zvbi" Hope you folks can find the problem. Ciao
Also I'd like to add as I may not have been clear, I'm also running kernel-headers 2.6.6-r1, Kernel 2.6.7-gentoo-r11, and Glibc-2.3.4.20040619. I hope this helps Ciao
*** Bug 64442 has been marked as a duplicate of this bug. ***
gcc 3.4?
I had this same problem and I could emerge arj-3.10g by using gcc-config to change gcc profile from 3.4.2 to 3.3.3.
Same problem here. Doing a fresh amd64 install from a 2004.3 stage2. After the emerge fails I can go in ${S}, then do a "make all" a few times and after the 3rd or 4th "make" the compilation succeeds. Furthermore, it seems that a "make package" is not necessary, since "make all" does the job. Not really sure about that, but the packager is always giving errors.
Borrowed some code to make arj only compile with gcc 3.3.x, Please test 3.10.21.
It didn't fix it here. It is failing, just as before, but if I go in ${S} and run "make all" a few times, it manages to finish. I can also do this instead: # ebuild arj-3.10.21 compile a few times, until it manages to complete without error. Using gcc-3.4.3, which is the latest stable on amd64. I cannot reopen the bug, so if somebody could, please.
Builds fine here with gcc 3.4.3. But it tells me that 3.10.21 is a downgrade from 3.10g ? Is 3.10g newer that 3.10.21 ?
It's still not fixed! Please reopen! Copying . done! rm -f ./linux-gnu/en/rs/help.arj ./linux-gnu/en/rs/arj/arj a ./linux-gnu/en/rs/help.arj -+ -t1f -2e -e -jm -jh65535 -jt ./resource/en/arj?.txt ARJ32 v 3.10g, Copyright (c) 1998-2003, ARJ Software Russia. [03 Jan 2005] Creating archive : ./linux-gnu/en/rs/help.arj Adding ./resource/en/arjl.txt 37.4% Adding ./resource/en/arjs.txt 47.3% Testing arjl.txt OK Testing arjs.txt OK 2 file(s) ./linux-gnu/en/rs/tools/join ./linux-gnu/en/rs/arj/arj ./linux-gnu/en/rs/help.arj JOIN v 1.30 [26/04/2003] Not a part of any binary package! Copying . done! ./linux-gnu/en/rs/tools/postproc linux-gnu/en/rs/arj/arj POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found make[1]: *** [linux-gnu/en/rs/arj/arj] Error 3 make[1]: Leaving directory `/vol1/.gentoo/build/portage/arj-3.10g/work/arj' make: *** [all] Error 2 !!! ERROR: app-arch/arj-3.10g failed. !!! Function src_compile, Line 28, Exitcode 2 !!! make package failed !!! If you need support, post the topmost build error, NOT this status message.
It still fails on my system in default config. I managed to build it with gcc 3.3.3, but that build seems to be unable to correctly extract .arj archives.
can confirm that, i also use gcc-3.4, as nearly every amd64 system. i've changed the keyword to -amd64, could you please re-add ~amd64 to 3.10g when this is fixed or bug me again? $ emerge info Portage 2.0.51-r12 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r10 x86_64) ================================================================= System uname: 2.6.9-gentoo-r10 x86_64 AMD Opteron(tm) Processor 242 Gentoo Base System version 1.6.8 Python: dev-lang/python-2.4,dev-lang/python-2.3.4 [2.4 (#1, Jan 10 2005, 22:42:13)] ccache version 2.3 [enabled] dev-lang/python: 2.4, 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.4_p6, 1.9.4, 1.8.5-r2, 1.6.3, 1.7.9 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -march=k8" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/env.d" CXXFLAGS="-O3 -pipe -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache cvs distlocks sandbox userpriv" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/blubb/gentoo/gentoo-x86 /usr/local/portage" SYNC="rsync://buggy/gentoo-portage" USE="amd64 X aalib acpi alsa bitmap-fonts bonobo bzlib cdr chroot crypt cups divx4linux dvd emul-linux-x86 encode esd f77 fam flac font-server ftp gdbm gif gimp glx gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib java jp2 jpeg libwww lzw lzw-tiff mad mikmod mng motif mozdomi mozilla moznoirc moznomail moznoxft mozp3p mozsvg mp3 mpeg msn multilib mysql ncurses network nls nptl oggvorbis opengl pam perl png posix python readline samba sdl sematicfix speex sqlite ssl svg tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts usb userlocales utf8 xinerama xml xml2 xmms xpm xrandr xsl xv zlib" Unset: LDFLAGS
A little insight. The build fails with: ./linux-gnu/en/rs/tools/postproc linux-gnu/en/rs/arj/arj POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found make[1]: *** [linux-gnu/en/rs/arj/arj] Error 3 make[1]: Leaving directory `/var/tmp/portage/arj-3.10.21/work/arj-3.10.21' make: *** [all] Error 2 Now, I edit GNUMakefile in ${S} and remove my CFLAGS from there (that is -O2 -march=k8). Then, I do this: # make clean; make CFLAGS="-O2"; cp linux-gnu/en/rs/arj/arj arj.-O2 # make clean; make CFLAGS="-O1"; cp linux-gnu/en/rs/arj/arj arj.-O1 # make clean; make CFLAGS="-Os"; cp linux-gnu/en/rs/arj/arj arj.-Os Then: # ./linux-gnu/en/rs/tools/postproc arj.-O2 POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found # ./linux-gnu/en/rs/tools/postproc arj.-O1 POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Done # ./linux-gnu/en/rs/tools/postproc ./arj.-Os POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found I decided the error is somewhere in the optimizations. After some trial-and-error: # make clean; make "CFLAGS="-O1 -funit-at-a-time" ... ./linux-gnu/en/rs/tools/postproc linux-gnu/en/rs/arj/arj POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found However, -O1 works. So, it's obviously that -funit-at-a-time optimization... I tried turning all other optimizations turned on by -O2 that are listed in the man page, and it worked OK.
Yay, adding "append-flags -O1" to the ebuild fixed it for me.
A better solution seems to be append-flags "-fno-unit-at-a-time" This should probably be turned on for gcc-3.4 only.
From the changelog: 01 Jan 2005; Daniel Ahlberg <aliz@gentoo.org> arj-3.10.21.ebuild: Borrowed some gcc checking code from openoffice to automatically use gcc-3.3 when compiling arj, should close #52311.
Well, for one that fix does nothing on my system, because: if [ -x /usr/sbin/gcc-config ] returns always false. gcc-config is in /usr/bin/gcc-config # equery b /usr/bin/gcc-config [ Searching for file(s) /usr/bin/gcc-config in *... ] sys-devel/gcc-config-1.3.9 (/usr/bin/gcc-config)
Created attachment 52316 [details, diff] Better solution Better solution, works for people without <gcc3.4 also replaces gcc.eclass by toolchain-funcs.eclass, as is requested in the gcc.eclass. Ideally there should be a patch for the program itself, so it can compile with -funit-at-a-time, but this seems non-trivial.
The solution posted by Jan Jitse Venselaar works perfectly for me.