Subject: Re: gcc -V causes ubuntu 14.04 compile failure?

Re: gcc -V causes ubuntu 14.04 compile failure?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 4 Dec 2014 20:54:18 +0100

On Thu, Dec 04, 2014 at 08:36:06PM +0100, Niels Larsen wrote:
> Libssh2 people,
>
> On stock Ubuntu 14.04 (Linux 64 bit) I get:
>
> ~/BION/Software/Package_sources/Utilities/libssh2-1.4.3> ./configure
> checking whether to enable maintainer-specific portions of Makefiles...
> no
> checking for sed... /bin/sed
[...]
> and config.log is attached. It looks as if gcc is given the -V argument,
> which
> gcc does not understand anymore.

That doesn't seem to be the issue. The issue is

> configure:3449: checking whether the C compiler works
> configure:3471: gcc -arch x86_64 -arch x86_64 conftest.c >&5
> gcc: error: x86_64: No such file or directory
> gcc: error: x86_64: No such file or directory
> gcc: error: unrecognized command line option '-arch'
> gcc: error: unrecognized command line option '-arch'
> configure:3475: $? = 1
> configure:3513: result: no

There is an unsupported option -arch being specified somewhere, and not once,
but twice. It's likely to be in a CFLAGS environment variable. Try cleaning
that variable and related ones (like CPPFLAGS, LDFLAGS, LIBS) and try again.

>>> Dan
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2014-12-04