Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133429 - [PATCH] sys-apps/texinfo cross-compile make dependency error
Summary: [PATCH] sys-apps/texinfo cross-compile make dependency error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
: 151587 (view as bug list)
Depends on:
Blocks: 133882
  Show dependency tree
 
Reported: 2006-05-15 17:38 UTC by Arcanux
Modified: 2006-10-16 07:41 UTC (History)
1 user (show)

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


Attachments
texinfo-4.8-xcompile-fix.patch (texinfo-4.8-xcompile-fix.patch,413 bytes, patch)
2006-05-15 17:39 UTC, Arcanux
Details | Diff
texinfo-4.8-xcompile-fix.patch (texinfo-4.8-xcompile-fix.patch,499 bytes, patch)
2006-05-20 03:02 UTC, Arcanux
Details | Diff
texinfo-4.8-xcompile.patch (texinfo-4.8-xcompile.patch,492 bytes, patch)
2006-05-22 09:31 UTC, Arcanux
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arcanux 2006-05-15 17:38:46 UTC
Patch fixes the following make dependency error that occurs when cross-compiling sys-apps/texinfo-4.8*:

=======================================

make: Entering directory `/var/tmp/portage/texinfo-4.8-r2/work/texinfo-4.8/lib'
if powerpc-softfloat-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -Os -pipe -MT getopt.o -MD -MP -MF ".deps/getopt.Tpo" -c -o getopt.o getopt.c; \        then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f ".deps/getopt.Tpo"; exit 1; fi
if powerpc-softfloat-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -Os -pipe -MT getopt1.o -MD -MP -MF ".deps/getopt1.Tpo" -c -o getopt1.o getopt1.c; \
        then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f ".deps/getopt1.Tpo"; exit 1; fi
if powerpc-softfloat-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -Os -pipe -MT substring.o -MD -MP -MF ".deps/substring.Tpo" -c -o substring.o substring.c; \
        then mv -f ".deps/substring.Tpo" ".deps/substring.Po"; else rm -f ".deps/substring.Tpo"; exit 1; fi
if powerpc-softfloat-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -Os -pipe -MT xexit.o -MD -MP -MF ".deps/xexit.Tpo" -c -o xexit.o xexit.c; \
        then mv -f ".deps/xexit.Tpo" ".deps/xexit.Po"; else rm -f ".deps/xexit.Tpo"; exit 1; fi
if powerpc-softfloat-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -Os -pipe -MT xmalloc.o -MD -MP -MF ".deps/xmalloc.Tpo" -c -o xmalloc.o xmalloc.c; \
        then mv -f ".deps/xmalloc.Tpo" ".deps/xmalloc.Po"; else rm -f ".deps/xmalloc.Tpo"; exit 1; fi
if powerpc-softfloat-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -Os -pipe -MT xstrdup.o -MD -MP -MF ".deps/xstrdup.Tpo" -c -o xstrdup.o xstrdup.c; \
        then mv -f ".deps/xstrdup.Tpo" ".deps/xstrdup.Po"; else rm -f ".deps/xstrdup.Tpo"; exit 1; fi
if powerpc-softfloat-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -Os -pipe -MT mkstemp.o -MD -MP -MF ".deps/mkstemp.Tpo" -c -o mkstemp.o mkstemp.c; \
        then mv -f ".deps/mkstemp.Tpo" ".deps/mkstemp.Po"; else rm -f ".deps/mkstemp.Tpo"; exit 1; fi
if powerpc-softfloat-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -Os -pipe -MT tempname.o -MD -MP -MF ".deps/tempname.Tpo" -c -o tempname.o tempname.c; \
        then mv -f ".deps/tempname.Tpo" ".deps/tempname.Po"; else rm -f ".deps/tempname.Tpo"; exit 1; fi
rm -f libtxi.a
ar cru libtxi.a getopt.o getopt1.o substring.o xexit.o xmalloc.o xstrdup.o mkstemp.o tempname.o
powerpc-softfloat-linux-uclibc-ranlib libtxi.a
make: Leaving directory `/var/tmp/portage/texinfo-4.8-r2/work/texinfo-4.8/lib'
make: Entering directory `/var/tmp/portage/texinfo-4.8-r2/work/texinfo-4.8/info'if powerpc-softfloat-linux-uclibc-gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DINFODIR=\"/usr/share/info\" -DINFODIR2=\"/usr/share/info\" -I. -I. -I.. -I. -I../lib -I../intl -I.. -I.    -Os -pipe -MT makedoc.o -MD -MP -MF ".deps/makedoc.Tpo" -c -o makedoc.o makedoc.c; \
        then mv -f ".deps/makedoc.Tpo" ".deps/makedoc.Po"; else rm -f ".deps/makedoc.Tpo"; exit 1; fi
powerpc-softfloat-linux-uclibc-gcc  -Os -pipe  -L/root/ROOT-powerpc-softfloat-linux-uclibc/lib -L/root/ROOT-powerpc-softfloat-linux-uclibc/usr/lib -o makedoc  makedoc.o ../lib/libtxi.a -lncurses
make: Leaving directory `/var/tmp/portage/texinfo-4.8-r2/work/texinfo-4.8/info'
make: Entering directory `/var/tmp/portage/texinfo-4.8-r2/work/texinfo-4.8/info'rm -f doc.c key.c funs.h
../tools/info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c ./nodemenu.c ./footnotes.c ./variables.c
make: ../tools/info/makedoc: Command not found
make: *** [funs.h] Error 127
make: Leaving directory `/var/tmp/portage/texinfo-4.8-r2/work/texinfo-4.8/info'

!!! ERROR: sys-apps/texinfo-4.8-r2 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  texinfo-4.8-r2.ebuild, line 47:   Called die

!!! emake doc.c
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Arcanux 2006-05-15 17:39:30 UTC
Created attachment 86833 [details, diff]
texinfo-4.8-xcompile-fix.patch
Comment 2 Arcanux 2006-05-16 19:00:47 UTC
Hold off on that patch, it breaks non-cross-compiled builds:

=======================================

>>> Emerging (1 of 15) sys-apps/texinfo-4.8-r4 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking texinfo-4.8.tar.bz2 ;-)
>>> Unpacking source...
>>> Unpacking texinfo-4.8.tar.bz2 to /var/tmp/portage/texinfo-4.8-r4/work
 * Applying texinfo-4.8-freebsd.patch ...                                 [ ok ] * Applying texinfo-4.8-tempfile.patch ...                                [ ok ]>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/texinfo-4.8-r4/work/texinfo-4.8 ...
 * econf: updating texinfo-4.8/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating texinfo-4.8/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking whether i686-pc-linux-gnu-gcc needs -traditional... no
checking for a BSD-compatible install... /bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking for library containing strerror... none required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for sigblock... yes
checking whether stat file-mode macros are broken... no
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/ttold.h usability... no
checking sys/ttold.h presence... no
checking for sys/ttold.h... no
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for sys/ptem.h... no
checking POSIX termios... yes
checking whether termios.h defines TIOCGWINSZ... no
checking whether sys/ioctl.h defines TIOCGWINSZ... yes
checking for off_t... yes
checking return type of signal handlers... void
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether memchr is declared... yes
checking whether strcoll is declared... yes
checking whether strerror is declared... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for working strcoll... yes
checking for vprintf... yes
checking for _doprnt... no
checking for bzero... yes
checking for getcwd... yes
checking for memset... yes
checking for setvbuf... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigsetmask... yes
checking for strchr... yes
checking for memcpy... yes
checking for memmove... yes
checking for strdup... yes
checking for strerror... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking build system type... i686-pc-linux-gnu
checking for tgetent in -lncurses... yes
checking for library with termcap variables...
checking ncurses/termcap.h usability... no
checking ncurses/termcap.h presence... no
checking for ncurses/termcap.h... no
checking for fcntl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking whether getenv is declared... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for mkstemp... yes
checking for mkstemp limitations... no
checking host system type... i686-pc-linux-gnu
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for signed... yes
checking for inline... inline
checking for size_t... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for stdint.h... (cached) yes
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for ptrdiff_t... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking for limits.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for asprintf... yes
checking for fwprintf... yes
checking for getcwd... (cached) yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for snprintf... yes
checking for stpcpy... yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for strtoul... yes
checking for tsearch... yes
checking for wcslen... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for __fsetlocking... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether feof_unlocked is declared... yes
checking whether fgets_unlocked is declared... no
checking whether getc_unlocked is declared... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.1, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating info/Makefile
config.status: creating intl/Makefile
config.status: creating lib/Makefile
config.status: creating m4/Makefile
config.status: creating makeinfo/Makefile
config.status: creating makeinfo/tests/Makefile
config.status: creating po/Makefile.in
config.status: creating util/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
make: *** tools: No such file or directory.  Stop.

!!! ERROR: sys-apps/texinfo-4.8-r4 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  texinfo-4.8-r4.ebuild, line 45:   Called die

!!! emake tools
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 3 Arcanux 2006-05-20 03:02:14 UTC
New workaround, checks for cross-compiler. Works for non-cross builds this time. :)
Comment 4 Arcanux 2006-05-20 03:02:55 UTC
Created attachment 87108 [details, diff]
texinfo-4.8-xcompile-fix.patch
Comment 5 solar (RETIRED) gentoo-dev 2006-05-20 10:31:13 UTC
Fixed InCVS. Thanks for the patch 
Comment 6 SpanKY gentoo-dev 2006-05-21 20:54:07 UTC
that change isnt really correct
Comment 7 Arcanux 2006-05-21 23:08:58 UTC
(In reply to comment #6)
> that change isnt really correct

And that critique isn't really helpful. :)

What's wrong with it, and what's your recommendation?
Comment 8 Arcanux 2006-05-22 09:30:29 UTC
Comment on attachment 87108 [details, diff]
texinfo-4.8-xcompile-fix.patch

Should be using toolchain-funcs.eclass facilities
Comment 9 Arcanux 2006-05-22 09:31:58 UTC
Created attachment 87259 [details, diff]
texinfo-4.8-xcompile.patch

Now with proper cross-compiler check
Comment 10 Danny van Dyk (RETIRED) gentoo-dev 2006-05-22 12:25:24 UTC
Committed last patch, as previous patch broke on systems where CBUILD is empty.
Comment 11 Arcanux 2006-05-22 13:14:01 UTC
That was also SpanKY's concern. Resolving fixed, thanks.
Comment 12 solar (RETIRED) gentoo-dev 2006-05-22 13:18:51 UTC
(In reply to comment #10)
> Committed last patch, as previous patch broke on systems where CBUILD is empty.

Hrmm when/where would CBUILD be empty these days?
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-10-16 07:41:21 UTC
*** Bug 151587 has been marked as a duplicate of this bug. ***