Hi Ben,

After reconfigure the compiler: CC=gcc , this issue is solved.  I tried to 
reproduce it and found reproducing condition is to switch default gcc version 
after running configure script.
1. default gcc is gcc-8, running the configure script.
2. change the default gcc to gcc-6
3. building  <--- compiling error

4. specific C compiler by configure script: compiler CC=gcc  <--  building 
success
5. change default gcc to gcc-8 and running the configure script
6  change default gcc to gcc-6 & building <-- compiling error

In the config.log after step 3, the detected gcc version is 8.2, so it choose 
some unsupported compiler option for gcc-6.
configure:4038: checking for C compiler version
configure:4047: gcc --version >&5
gcc (GCC) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.

So I think it should not be a bug.  It is a configure issue. Thanks for your 
support.

Best Regards,
Wei Yanqin

-----Original Message-----
From: Ben Pfaff <[email protected]>
Sent: Tuesday, June 4, 2019 7:11 AM
To: Yanqin Wei (Arm Technology China) <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [ovs-dev] OVS compiling issue(gcc version 6.5.0 )

On Mon, Jun 03, 2019 at 11:18:23AM +0000, Yanqin Wei (Arm Technology China) 
wrote:
> I am trying to compile OVS(master branch) via gcc 6.5.0, but there is gcc 
> option error.
> gcc: error: unrecognized command line option '-Wmultistatement-macros'; did 
> you mean '-Wunused-macros'?

What's in config.log?

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to