Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 43588

Summary: emerge app-text/htmltidy error
Product: Gentoo Linux Reporter: Antenore <agatta>
Component: Current packagesAssignee: Text-Markup Team (OBSOLETE) <text-markup+disabled>
Status: RESOLVED DUPLICATE    
Severity: normal CC: magnet
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for htmltidy-3.10.29 to correct ./configure's behavior

Description Antenore 2004-03-03 04:16:47 UTC
Hi,
Trying to emerge app-text/htmltidy and it's fails, make exit with an error "can only configure for one host and one target at a time"
Next You can see the detailed Error

Reproducible: Always
Steps to Reproduce:
1.emerge app-text/htmltidy


Actual Results:  
Only last line...

running /bin/sh ./configure --prefix=/usr --host= --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --disable-debug CC=gcc CFLAGS=-march=pentium3 -O3 -pipe
-fomit-frame-pointer CXXFLAGS=-march=pentium3 -O3 -pipe -fomit-frame-pointer
CXX=g++ host_alias= --no-create --no-recursion
configure: warning: CC=gcc: invalid host type
configure: warning: CFLAGS=-march=pentium3 -O3 -pipe -fomit-frame-pointer:
invalid host type
configure: error: can only configure for one host and one target at a time
make: *** [config.status] Error 1

!!! ERROR: app-text/htmltidy-3.10.29 failed.
!!! Function src_compile, Line 55, Exitcode 2
!!! (no error message)

Expected Results:  
>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.

:-)

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r5)
=================================================================
System uname: 2.4.22-gentoo-r5 i686 Intel(R) Celeron(TM) CPU                1066MHz
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/fenris /etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi apm arts avi berkdb crypt cups directfb encode esd fbcon
foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww
mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl
png python qt quicktime readline samba sandbox sdl slang spell ssl svga tcltk
tcpd truetype video_cards_i830 x86 xml2 xmms xv zlib"
Comment 1 Antenore 2004-03-03 04:31:22 UTC
This is the complete output...

hpgenxe3 linux # emerge htmltidy
Calculating dependencies ...done!
>>> emerge (1 of 1) app-text/htmltidy-3.10.29 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/tidy_src_031029.tgz
Initializing download: http://gentoo.oregonstate.edu/distfiles/tidy_src_031029.tgz
Doing search...
Testing speeds, this can take a while...
1 usable servers found, will use these URLs:
URL                                                                    Speed
http://gentoo.oregonstate.edu/distfiles/tidy_src_031029.tgz             5681

Opening output file /usr/portage/distfiles/tidy_src_031029.tgz
Server unsupported, starting from scratch with one connection.
Starting download

Connection 0 finished
pthread error!!!

Downloaded 233.6 kilobytes in 2:10 seconds. (1.78 KB/s)
>>> md5 src_uri ;-) tidy_src_031029.tgz
>>> md5 src_uri ;-) tidy_docs.tgz
>>> Unpacking source...
>>> Unpacking tidy_src_031029.tgz to /var/tmp/portage/htmltidy-3.10.29/work
>>> Unpacking tidy_docs.tgz to /var/tmp/portage/htmltidy-3.10.29/work
 * Setting up autotools for source build
automake-1.5: configure.in: installing `./install-sh'
automake-1.5: configure.in: installing `./mkinstalldirs'
automake-1.5: configure.in: installing `./missing'
automake-1.5: configure.in: installing `./depcomp'
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
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 for i686-pc-linux-gnu-gcc... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for i686-pc-linux-gnu-g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking for a sed that does not truncate output... /bin/sed
checking how to recognise dependent libraries... pass_all
checking command to parse nm output... ok
checking for egrep... grep -E
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking whether make sets $(MAKE)... (cached) yes
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating console/Makefile
config.status: creating include/Makefile
config.status: executing default-1 commands
cd . && /bin/sh /var/tmp/portage/htmltidy-3.10.29/work/tidy/missing --run aclocal
cd . && \
  /bin/sh /var/tmp/portage/htmltidy-3.10.29/work/tidy/missing --run automake --foreign  Makefile
cd . && /bin/sh /var/tmp/portage/htmltidy-3.10.29/work/tidy/missing --run autoconf
/bin/sh ./config.status --recheck
running /bin/sh ./configure  --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-debug CC=gcc CFLAGS=-march=pentium3 -O3 -pipe -fomit-frame-pointer CXXFLAGS=-march=pentium3 -O3 -pipe -fomit-frame-pointer CXX=g++ host_alias=i686-pc-linux-gnu  --no-create --no-recursion
configure: warning: CC=gcc: invalid host type
configure: warning: CFLAGS=-march=pentium3 -O3 -pipe -fomit-frame-pointer: invalid host type
configure: error: can only configure for one host and one target at a time
make: *** [config.status] Error 1

!!! ERROR: app-text/htmltidy-3.10.29 failed.
!!! Function src_compile, Line 55, Exitcode 2
!!! (no error message)
Comment 2 Minati jean michel 2004-03-03 07:10:15 UTC
Created attachment 26770 [details, diff]
Patch for htmltidy-3.10.29 to correct ./configure's behavior

hello,

this seems to be a autoconf/automake trouble.I'm not an expert with those
tools, so I solved the problem by unsetting some env vars,that were making the
./configure fail.
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-03-03 08:21:14 UTC
This bug is a dup of bug #42796. Please make sure you run `emerge sync`
and `head -n 3 /usr/portage/app-text/htmltidy/htmltidy-3.10.29.ebuild`
shows 

# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/app-text/htmltidy/htmltidy-3.10.29.ebuild,v 1.7 2004/02/27 21:19:42 usata Exp $

If you have htmltidy-3.10.29.ebuild v1.7 and still have the problem,
please reopen bug #42796.

We don't want to unset CC/CXX/CFLAGS/CXXFLAGS because if we unset
these flags we cannot support cross compiling and tuning anymore.
If it isn't actually solved, I'll recreate configure script locally
and put it on files directory.


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