Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2013 21:06:16 +0200
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        Beeblebrox <zaphod@berentweb.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: devel/json-c build fails
Message-ID:  <20130509190616.GH15016@gahrfit.gahr.ch>
In-Reply-To: <1367859303386-5809185.post@n5.nabble.com>
References:  <1367859303386-5809185.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--WkfBGePaEyrk4zXB
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2013-May-06, 09:55, Beeblebrox wrote:
> Breaks with below Error Message. If ccache is enabled, breaks sooner.
>=20
> WITH CCACHE:
> =3D=3D=3D>  Building for json-c-0.9
> gmake  all-am
> gmake[1]: Entering directory
> `/wrkdirs/usr/ports/devel/json-c/work/json-c-0.9'
> /bin/sh ./libtool --tag=3DCC   --mode=3Dcompile cc -DHAVE_CONFIG_H -I.   =
 -Wall
> -Wwrite-strings -Werror -std=3Dgnu99 -D_GNU_SOURCE -D_REENTRANT -O2 -pipe
> -march=3Dk8 -fno-strict-aliasing -MT arraylist.lo -MD -MP -MF
> .deps/arraylist.Tpo -c -o arraylist.lo arraylist.c
> libtool: compile:  cc -DHAVE_CONFIG_H -I. -Wall -Wwrite-strings -Werror
> -std=3Dgnu99 -D_GNU_SOURCE -D_REENTRANT -O2 -pipe -march=3Dk8
> -fno-strict-aliasing -MT arraylist.lo -MD -MP -MF .deps/arraylist.Tpo -c
> arraylist.c  -fPIC -DPIC -o .libs/arraylist.o
> cc: error: argument unused during compilation: '-I .'
> gmake[1]: *** [arraylist.lo] Error 1
> gmake[1]: Leaving directory

Try to add -Qunused-arguments to your CFLAGS. Also, see
/usr/local/share/doc/ccache/ccache-howto-freebsd.txt

--=20
Pietro Cerutti
The FreeBSD Project
gahr@FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

--WkfBGePaEyrk4zXB
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlGL86cACgkQwMJqmJVx9466cACgrP7eY7A8V+IN6VEgkFXvL0fa
JxYAn0mP0++0LHd0MyVu13nj7xn3nwhj
=sMdz
-----END PGP SIGNATURE-----

--WkfBGePaEyrk4zXB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130509190616.GH15016>