Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 317167 - sys-devel/autogen-5.10* fails building documentation when no autogen is installed (test: too many arguments)
Summary: sys-devel/autogen-5.10* fails building documentation when no autogen is insta...
Status: RESOLVED DUPLICATE of bug 316583
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 318833 321381 332655 (view as bug list)
Depends on: 335703
Blocks:
  Show dependency tree
 
Reported: 2010-04-25 21:04 UTC by Maciej Piechotka
Modified: 2010-09-15 09:24 UTC (History)
11 users (show)

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


Attachments
full build log (1272228780-install-sys-devel_autogen-5.10.1:0::gentoo.out,75.23 KB, text/plain)
2010-04-28 21:05 UTC, Maciej Piechotka
Details
emerge sys-devel/autogen-5.10.1 (sys-devel:autogen-5.10.1:20100507-050942.log,74.35 KB, text/plain)
2010-05-07 08:35 UTC, taaroa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Piechotka 2010-04-25 21:04:33 UTC
+ /var/tmp/paludis/sys-devel-autogen-5.10.1/work/autogen-5.10.1/agen5/autogen --base=agdoc -t65 -L/var/tmp/paludis/sys-devel-autogen-5.10.1/work/autogen-5.10.1/doc -L/var/tmp/paludis/sys-devel-autogen-5.10.1/work/autogen-5.10.1 -L/var/tmp/paludis/sys-devel-autogen-5.10.1/work/autogen-5.10.1/autoopts /var/tmp/paludis/sys-devel-autogen-5.10.1/work/autogen-5.10.1/doc/ag-texi-16314.d/agdoc.def
/bin/sh: line 3092: test: too many arguments
hello.c:8:30: fatal error: autoopts/options.h: No such file or directory
compilation terminated.
Killing AutoGen:  cannot compile hello
AutoGen aborting on signal 15 (Terminated) in state EMITTING
processing template auto-opts.tpl
            on line 300
       for function EXPR (12)
./mk-agen-texi.sh: line 221: 16467 Aborted                 ${cmd}
+ die could not regenerate doc
+ exec
+ trap : EXIT
+ kill -TERM 16314
++ :
make[2]: *** [agdoc.texi] Terminated
make[2]: *** Deleting file `agdoc.texi'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

Both gcc-4.4 and 4.5



Reproducible: Always




paludis 0.46.0
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.5.0
        CXXFLAGS:               -O2 -pipe -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
        LDFLAGS:               -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
        DATE:                  2010-04-23T10:25:17+0200

    Libraries:
        C++ Library:           GNU libstdc++ 20100414

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

System:
    Linux localhost 2.6.33-gentoo-r1 #1 SMP PREEMPT Sat Apr 24 00:02:53 CEST 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz GenuineIntel GNU/Linux

Reduced Privs:
    reduced_uid:               250
    reduced_uid->name:         portage
    reduced_uid->dir:          /var/tmp/portage
    reduced_gid:               250
    reduced_gid->name:         portage

Environment:
    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/db/pkg/world

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       4.1_p5
        dev-java/java-config:  2.1.10
        dev-lang/python:       2.6.5-r1 3.1.2-r2
        dev-python/pycrypto:   (none)
        dev-util/ccache:       2.4-r8
        dev-util/cmake:        2.8.1-r1
        dev-util/confcache:    (none)
        sys-apps/baselayout:   2.0.1
        sys-apps/openrc:       0.6.1-r1
        sys-apps/sandbox:      2.2
        sys-devel/autoconf:    2.13 2.65
        sys-devel/automake:    1.10.3 1.11.1 1.9.6-r3
        sys-devel/binutils:    2.20.1
        sys-devel/gcc:         4.3.4 4.4.3 4.5.0
        sys-devel/gcc-config:  1.4.1
        sys-devel/libtool:     2.2.6b
        virtual/os-headers:    2.6.33 (for sys-kernel/linux-headers::installed)


Package sys-devel/autogen-5.10.1:0::gentoo:

        >>> Running ebuild phase killold as portage:portage...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars as portage:portage...
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT= 
        CONFIG_PROTECT_MASK= 
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-O2 -pipe -ggdb -march=native -msahf -mcx16 -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -floop-interchange -floop-strip-mine -floop-block
        DISTDIR=/var/tmp/distfiles
        FEATURES=
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common
        LINGUAS=en en_GB pl
        MAKEOPTS=-j2
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/usr/portage
        PORTDIR_OVERLAY=
        SYNC=
        USE=amd64 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en linguas_en_GB linguas_pl ruby_targets_jruby ruby_targets_ruby18 userland_GNU video_cards_intel amd64 
        >>> Done builtin_infovars
        >>> Completed ebuild phases initmisc infovars
        >>> Running ebuild phase tidyup as portage:portage...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/sys-devel-autogen-5.10.1-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup
Comment 1 Rafał Mużyło 2010-04-25 23:38:46 UTC
Chances are this is another incompatibility with gcc 4.5
- the changes of handling missing headers in C family.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-04-28 20:27:34 UTC
Please attach a complete build log.
Comment 3 Maciej Piechotka 2010-04-28 21:05:11 UTC
Created attachment 229579 [details]
full build log
Comment 4 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-04-30 11:50:04 UTC
I tried to reproduce this error, and I confirm it. It affects both =autogen-5.10.1 and =autogen-5.10.2_pre1 versions. The stable 5.9.7 version can be emerged flawlessly. I believe that it didn't affect people who had already installed a previous version of autogen because autoopts/options.h already existed for them in /usr/include/autoopts/options.h (eg. if you emerge 5.9.7 and try to reemerge a 5.10* version, it won't fail)
Comment 5 taaroa 2010-05-07 08:35:15 UTC
Created attachment 230653 [details]
emerge sys-devel/autogen-5.10.1

Confirm.
Comment 6 David Watzke 2010-05-09 18:45:47 UTC
bug #318833 is a duplicate of this one...

PS: thanks for the info about how to get it to work
Comment 7 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-05-09 18:55:06 UTC
*** Bug 318833 has been marked as a duplicate of this bug. ***
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2010-05-26 02:34:16 UTC
*** Bug 321381 has been marked as a duplicate of this bug. ***
Comment 9 Peter Volkov (RETIRED) gentoo-dev 2010-06-29 09:39:46 UTC
CC'ing upstream.

Guys could you check if 5.10.2 works for you?
Comment 10 Matt 2010-06-29 14:14:49 UTC
built fine for me:


emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.5.0, glibc-2.11.2-r0, 2.6.34-zen2 x86_64)
=================================================================
System uname: Linux-2.6.34-zen2-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 29 Jun 2010 13:15:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3, 2.20.1, 2.20.51.0.8, 2.20.51.0.9
sys-devel/gcc:       4.3.4, 4.4.3-r3, 4.4.4-r2, 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @EULA skype-eula PUEL dlj-1.1 sun-bcla-java-vm googleearth AdobeFlash-10"
CBUILD="x86_64-pc-linux-gnu"

thanks !
Comment 11 Bruce Korb 2010-06-29 14:30:26 UTC
Needs re-titling the bug because the first error is likely the real cause.

I'll look into this some more when I get home.
The problem is on line 300 of auto-opts.tpl.
Full context:

+ /var/tmp/paludis/sys-devel-autogen-5.10.1/work/autogen-5.10.1/agen5/autogen --base=agdoc -t60 -L/var/tmp/paludis/sys-devel-autogen-5.10.1/work/autogen-5.10.1/doc -L/var/tmp/paludis/sys-devel-autogen-5.10.1/work/autogen-5.10.1 -L/var/tmp/paludis/sys-devel-autogen-5.10.1/work/autogen-5.10.1/autoopts /var/tmp/paludis/sys-devel-autogen-5.10.1/work/autogen-5.10.1/doc/ag-texi-9256.d/agdoc.def
/bin/sh: line 3092: test: too many arguments
hello.c:8:30: fatal error: autoopts/options.h: No such file or directory
compilation terminated.
Killing AutoGen:  cannot compile hello
AutoGen aborting on signal 15 (Terminated) in state EMITTING
processing template auto-opts.tpl
            on line 300
       for function EXPR (12)
./mk-agen-texi.sh: line 221:  9409 Aborted  ${cmd}
Comment 12 Peter Volkov (RETIRED) gentoo-dev 2010-07-01 09:55:11 UTC
Based on comment #10 this bug was fixed. Thank you guys.
Comment 13 Zeev Tarantov 2010-07-02 05:02:04 UTC
It isn't fixed. The workaround works - first build version 5.9.7 and then version 5.10 builds. Building 5.10 without a version of autogen installed does _not_ work. Not 5.10.1, nor 5.10.2, nor even 5.11.pre2. The problem is exactly as stated in comment #11: a test of hello.c can't #include autoopts/options.h, probably because autogen messes up the -L flags somehow.
Comment 14 Peter Volkov (RETIRED) gentoo-dev 2010-07-02 10:01:29 UTC
reopening per comment #13.
Comment 15 Bruce Korb 2010-07-03 17:17:12 UTC
This is actually a duplicate of Bug 316583 and will be
resolved with autogen 5.11.
Comment 16 Ryan Hill (RETIRED) gentoo-dev 2010-08-15 19:56:46 UTC
*** Bug 332655 has been marked as a duplicate of this bug. ***
Comment 17 niogic 2010-09-02 16:47:27 UTC
(In reply to comment #15)
> This is actually a duplicate of Bug 316583 and will be
> resolved with autogen 5.11.
> 

Hem 5.11 is out since 25 Jul.
Please bump and fix this and #316583
Comment 18 Bruce Korb 2010-09-02 16:51:56 UTC
``Hem 5.11 is out since 25 Jul''
Yeah, but it has an ugly bug:  a shell process is left abandoned.
I have a fix in a pre-release, but I have little time to put it
through my "qa".  It _is_ a one-person project:

  http://autogen.sourceforge.net/data/index.html
Comment 19 niogic 2010-09-02 16:57:15 UTC
(In reply to comment #18)
> ``Hem 5.11 is out since 25 Jul''
> Yeah, but it has an ugly bug:  a shell process is left abandoned.
> I have a fix in a pre-release, but I have little time to put it
> through my "qa".  It _is_ a one-person project:
> 
>   http://autogen.sourceforge.net/data/index.html
> 

Well but grub-9999 depends on it, while your ugly bug is .. what?
Memory leak?
Some a little bigger problem but if it "works" for grub-9999 i think that's more important.

Since grub-9999 doesn't accept 5.9 and this is actually a blocker for that package.

Anyways #335703 to talk about 5.11 maybe better..
Comment 20 Bruce Korb 2010-09-02 18:38:57 UTC
(In reply to comment #19)
> Well but grub-9999 depends on it, while your ugly bug is .. what?
> Memory leak?

A process table leak.  Every time it implements a template that includes
shell processing, an orphaned shell will be left waiting for input on
a floating pipe.  I should have time to deal with it Monday (a US holiday).
Comment 21 SpanKY gentoo-dev 2010-09-02 18:55:24 UTC
building texi/info/man/etc... pages on end systems is lame anyways.  the upstream package should be including these in their dist target.
Comment 23 Bruce Korb 2010-09-08 01:51:08 UTC
(In reply to comment #21)
> building texi/info/man/etc... pages on end systems is lame anyways.  the
> upstream package should be including these in their dist target.

It should be easier to say that C depends on A but cannot be built
without target B.  As it stands, "C" transitively depends upon
the predecessors of "B" (i.e., docs depend upon executables)
Comment 24 Peter Volkov (RETIRED) gentoo-dev 2010-09-15 09:24:40 UTC
Yup, this is duplicate.

*** This bug has been marked as a duplicate of bug 316583 ***