This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygport woes: CHOST not defined.


    Hi list,

  Attempting to rebuild gcc4-4.3.4-3 from source, I got a bunch of error
messages during the install stage of cygport:

> Fixing libtool modules:
> /usr/lib/cygport/src_postinst.cygpart: line 763: test: i686-pc-cygwin: unary operator expected
    [ ... snip several more ... ]
> Stripping executables:
> /usr/lib/cygport/syntax.cygpart: line 191: test: i686-pc-cygwin: unary operator expected
> /usr/lib/cygport/syntax.cygpart: line 191: test: !=: unary operator expected
>         usr/bin/c++-4.exe
> /usr/lib/cygport/syntax.cygpart: line 191: test: i686-pc-cygwin: unary operator expected
> /usr/lib/cygport/syntax.cygpart: line 191: test: !=: unary operator expected
    [ ... snip several more ... ]

  Looking at the context, I infer that CHOST must be undefined:

> 760 # would otherwise be CHOST, but gcc ships $target libraries
> 761 case ${CTARGET} in
> 762 *-*-cygwin*|*-*-mingw*)
> 763     if test ${CTARGET} != ${CHOST} # cross-compiler, use sysroot
> 764     then
> 765         dodir /usr/${CTARGET}/sys-root/$(__target_prefix)/bin
> 766         mv ${ltlibdir}/${dlname} ${D}/usr/${CTARGET}/sys-root/$(__target_prefix)/bin/
> 767     else
> 768         origdlname=${dlname}

... and quite likely CBUILD as well:

> 190  __cross_compiling() {
> 191          return $(test ${CBUILD} != ${CHOST} || test ${CHOST} != ${CTARGET})
> 192  }

  This is basically a clean build - I renumbered the -3 extensions to -4, but
the cygport script is unchanged(*) so maybe there's something wrong in my
src_install override, to do with cygport's new cross-compiling features?

  I'll be grepping away trying to find out where these variables are supposed
to come from, but any hints that could speed up my debugging would be appreciated!

    cheers,
      DaveK
-- 
(*) -
http://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/release/gcc4/gcc4-4.3.4-1-src.tar.bz2/gcc4-4.3.4-1.cygport?extract=true


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]