Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8737339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:29:53+00:00 2026-06-13T10:29:53+00:00

How does one cross-compile Expect for ARM? It is absolutely no problem to build

  • 0

How does one cross-compile Expect for ARM?

It is absolutely no problem to build it from source on a host Ubuntu machine. But if you try to cross compile it, the configure script constantly gives the following error:

checking if WNOHANG requires _POSIX_SOURCE... configure: error: Expect can't be cross compiled

There seems to be someone who found out how to do it here (but he doesn’t elaborate):

  • https://linuxlink.timesys.com/cross_compiling_expect

I also took the source and patches from here:

  • http://repository.timesys.com/buildsources/e/expect/expect-5.43.0/

But received the same error even when patches were successfully applied!

I’d really appreciate some help here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:29:54+00:00Added an answer on June 13, 2026 at 10:29 am

    What those patches are doing is following the methodology of the explanation from the first link you provide: Find all of the AC_MSG_ERROR([Expect can't be cross compiled]) lines in configure.in, and replace them with a hard-coded line that encodes the “right” answer.

    So, there’s the first thing to do: If you’re still getting that error after applying the patches, then the patch must have missed one; you should find it and fix it too.

    Another thing to check is along the lines of “is it plugged in” — did you run the relevant autotools to properly regenerate the configure file after patching the configure.in file? It looks like those patches only patch configure.in, so if you didn’t do the regeneration you won’t have changed anything that actually runs.

    Once you get past the immediate error, there’s also the point that the patches that you found are for TimeSys Linux (as per the names), which may or may not match your system — and, in particular, may not even be for an ARM system. (I see that TimeSys now supports ARM, but my familiarity with them is for PowerPC.) Since it’s replacing automatic tests with hard-coded answers, those answers could easily be wrong. I’d recommend checking the various lines changed in the patches to confirm that the answers they hard-code in are actually correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

if one of the main benefits of jquery is cross browser javascript support, does
How does the XSS (Cross Site Scripting) support provided by ASP.net differs from AntiXss.
Does any one have any experience with those cross-platform mobile apps framework such as
I was looking at the output from my build in Eclipse. I'm cross compiling
I would like to cross-compile a simple program for ARM architecture using the arm-linux-gcc
One of our projects is a cross-platform piece of code. We build it on
Does any one know of any cross platform c/c++ libraries which will utilise the
does one perform better over the other in terms of indexing/quering etc ? e.g.
How does one wait until all of the Javascript is loaded before curling a
How does one implement a multithreaded single process model in linux fedora under c

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.