error: expat is missing or unusable

Benoît Thébaudeau benoit.thebaudeau@advansee.com
Thu May 24 23:12:00 GMT 2012


> Good afternoon.
> 
> I am attempting to build crosstool-ng 1.15.2 on Ubuntu 11.04.
>   WHenever I build the program, it gets to a point and fails with the
> following log:
> 
> [INFO ]
>   =================================================================
> [INFO ]  Installing binutils for target
> [EXTRA]    Configuring binutils for target
> [EXTRA]    Building binutils' libraries (libiberty bfd) for target
> [EXTRA]    Installing binutils' libraries (libiberty bfd) for target
> [INFO ]  Installing binutils for target: done in 106.43s (at 27:11)
> [INFO ]
>   =================================================================
> [INFO ]  Installing cross-gdb
> [EXTRA]    Configuring cross-gdb
> [EXTRA]    Building cross-gdb
> [ERROR]    configure: error: expat is missing or unusable
> [ERROR]    make[2]: *** [configure-gdb] Error 1
> [ERROR]    make[1]: *** [all] Error 2
> [ERROR]
> [ERROR]  >>
> [ERROR]  >>  Build failed in step 'Installing cross-gdb'
> [ERROR]  >>        called in step '(top-level)'
> [ERROR]  >>
> [ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@172]
> [ERROR]  >>        called from:
> do_debug_gdb_build[scripts/build/debug/300-gdb.sh@159]
> [ERROR]  >>        called from: do_debug[scripts/build/debug.sh@35]
> [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@598]
> [ERROR]  >>
> [ERROR]  >>  For more info on this error, look at the file:
> 'build.log'
> [ERROR]  >>  There is a list of known issues, some with workarounds,
> in:
> [ERROR]  >>      'docs/B - Known issues.txt'
> [ERROR]
> [ERROR]  (elapsed: 28:45.09)
> [28:45] / make: *** [build] Error 2
> wws@wws-HP-Compaq-nc8430-EY685AW-ABA:~/crosstool-ng-1.15.2$ cat
> /etc/issue
> Ubuntu 11.04 \n \l
> 
> I've looked in build.log, and I see the following relevant info:
> [ALL  ]    checking for library containing waddstr... no
> [ALL  ]    configure: WARNING: no enhanced curses library found;
> disabling TUI
> [ALL  ]    checking for library containing tgetent... -ltermcap
> [ALL  ]    checking whether to use expat... yes
> [ALL  ]    checking for ld used by GCC... ld -static
> [ALL  ]    checking if the linker (ld -static) is GNU ld... yes
> [ALL  ]    checking for shared library run path origin... done
> [ALL  ]    checking for libexpat... no
> [ERROR]    configure: error: expat is missing or unusable
> [ERROR]    make[2]: *** [configure-gdb] Error 1
> [ALL  ]    make[2]: Leaving directory
> `/home/wws/crosstool-ng-1.15.2/.build/arm-unknown-linux-uclibcgnueabi/build/build-gdb-cross'
> [ERROR]    make[1]: *** [all] Error 2
> [ALL  ]    make[1]: Leaving directory
> `/home/wws/crosstool-ng-1.15.2/.build/arm-unknown-linux-uclibcgnueabi/build/build-gdb-cross'
> [ERROR]
> [ERROR]  >>
> [ERROR]  >>  Build failed in step 'Installing cross-gdb'
> [ERROR]  >>        called in step '(top-level)'
> 
> However, when I run sudo apt-get install expat, it shows that expat
> is already installed.
> 
> Any suggestions.  I'm oh so close to being done with the cross build
> (I think).

Hi Walter,

I think it's because you need the expat-dev stuff, not only expat.

Regards,
Benoît

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list