Skip to contentSkip to conversation

Configure doesn't honour CC variable

Qemu-devel Nigel Horne 2 participants 3 messages Jun 4, 2006

lore
Share & tools
lore
#0 lore raw

When running "configure" I get

'ERROR: "gcc" looks like gcc 4.x'

even though I've set the CC environment variable to point to my copy of gcc version 3.2.2

-Nigel

Signature · 4 lines
Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor,
Typesetter.
NJH Music, Barnsley, UK.  ICQ#20252325
[email protected] http://www.bandsman.co.uk

begin:vcard
fn:Nigel Horne
n:Horne;Nigel
org:NJH Music
email;internet:[email protected]
tel;fax:+44 870 705 9334
note:Skype: nigelhorne
x-mozilla-html:FALSE
version:2.1
end:vcard

#1 lore raw
Quoted 6 lines · Nigel Horne

When running "configure" I get

'ERROR: "gcc" looks like gcc 4.x'

even though I've set the CC environment variable to point to my copy of gcc version 3.2.2

Qemu's configure is not like most other configure scripts.

You have to use the --cc="$CC" command line option to Qemu's configure, to get it to use a different compiler.

You might need to use the --host-cc="$CC" option as well.

-- Jamie

#2 lore raw
Quoted 9 lines · Jamie Lokier
Quoted 6 lines · Nigel Horne

When running "configure" I get

'ERROR: "gcc" looks like gcc 4.x'

even though I've set the CC environment variable to point to my copy of gcc version 3.2.2

Qemu's configure is not like most other configure scripts.

Tut tut ;-)

Quoted 4 lines

You have to use the --cc="$CC" command line option to Qemu's configure, to get it to use a different compiler.

You might need to use the --host-cc="$CC" option as well.

Nope, that didn't work:

[njh@njh qemu]$ ./configure --cc=/home/njh/build_3.2.2_dir/gcc/xgcc
ERROR: "/home/njh/build_3.2.2_dir/gcc/xgcc" either does not exist or does not work
[njh@njh qemu]$ ls -l /home/njh/build_3.2.2_dir/gcc/xgcc
-rwxrwxr-x 1 njh njh 85636 Aug 28 2005 /home/njh/build_3.2.2_dir/gcc/xgcc
[njh@njh qemu]$ ./configure --cc=/home/njh/build_3.2.2_dir/gcc/xgcc --host-cc=/home/njh/build_3.2.2_dir/gcc/xgcc
ERROR: "/home/njh/build_3.2.2_dir/gcc/xgcc" either does not exist or does not work

And before your say, yes, I am sure that my 3.2.2 build works.

Quoted 1 line

-- Jamie

-Nigel

begin:vcard
fn:Nigel Horne
n:Horne;Nigel
org:NJH Music
email;internet:[email protected]
tel;fax:+44 870 705 9334
note:Skype: nigelhorne
x-mozilla-html:FALSE
version:2.1
end:vcard