[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #19003] need q2c to work while cross-compiling

From: John C. McCabe-Dansted
Subject: PSPP-BUG: [bug #19003] need q2c to work while cross-compiling
Date: Sat, 17 Feb 2007 00:36:45 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

Follow-up Comment #10, bug #19003 (project pspp):

On 2/16/07, Ben Pfaff <address@hidden> wrote:
> Here's my proposed solution.  Comments?

It works, basically, but I have to be quite careful what I set CC_FOR_BUILD

*  On my setup I set up the PATH for cross-compiling. Thus if I do not set
CC_FOR_BUILD, I get the cc from my cross-compiling path. This only results in
an error long after q2c has been built. Perhaps there should be no fallback if
CC_FOR_BUILD does not exist, or even better if configure checks that
CC_FOR_BUILD  builds binaries that can actually be run on the build host.

My second problem was that if I simply set CC_FOR_BUILD to /usr/bin/gcc, gcc
picks up the "as" on the cross-compiling path, which leads to the error:

  /usr/bin/gcc ./src/language/lexer/q2c.c -o ./src/language/lexer/q2c
  as: unrecognized option `-Qy'

Thus I had to set CC_FOR_BUILD to cc_for_build.sh 

---- cc_for_build.sh ---
export PATH=$HOST_PATH && $HOST_CC "$@"
---- END ---

In my cross.env I have

export CC_FOR_BUILD=`which \`pwd\`/cc_for_build.sh \`pwd\`/../cc_for_build.sh
export HOST_CC=`which gcc`


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]