Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2012 18:10:52 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Ports FreeBSD <freebsd-ports@freebsd.org>
Subject:   clang/llvm: /usr/local/include in port base system not standard? (port devel/freeocl)
Message-ID:  <50D88C9C.6030308@zedat.fu-berlin.de>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig5658E6985AD7AE590866D1A5
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

Some ports (devel/freeocl for instance) won't compile easily with CLANG.
I fugured out that sometimes CLANG is not by default including
/usr/local/include into the CPP search path - obviously gcc/gcc46 does!

Compiling port devel/freeocl with CLANG on FreeBSD 10 ends up in this
error (after I fixed a casting issue in src/parser/parser.h):

[...]
[ 87%] Building CXX object src/CMakeFiles/FreeOCL.dir/utils/thread.cpp.o
[ 88%] Building CXX object src/CMakeFiles/FreeOCL.dir/utils/time.cpp.o
[ 90%] Building CXX object src/CMakeFiles/FreeOCL.dir/utils/threadpool.cp=
p.o
/usr/ports/devel/freeocl/work/FreeOCL-0.3.6-Source/src/utils/threadpool.c=
pp:21:10:
fatal error: 'atomic_ops.h' file not found
#include <atomic_ops.h>
         ^
1 error generated.
*** [src/CMakeFiles/FreeOCL.dir/utils/threadpool.cpp.o] Error code 1

Stop in /usr/ports/devel/freeocl/work/FreeOCL-0.3.6-Source.
*** [src/CMakeFiles/FreeOCL.dir/all] Error code 1

Stop in /usr/ports/devel/freeocl/work/FreeOCL-0.3.6-Source.
*** [all] Error code 1

Stop in /usr/ports/devel/freeocl/work/FreeOCL-0.3.6-Source.
*** [do-build] Error code 1

Stop in /usr/ports/devel/freeocl.


The header file in question is maintained by port devel/libatomic_ops,
which is cleanly installed.

Well, I feel a bit confused, since I do not know how to manage the
intransparent port framework (intransparent to me) to force the port's
Makefile to include via "-I/usr/local/include" the path in question.

Any suggestions?

By the way, the build backend is cmake which I'm completely unfamiliar
with. Can someone give a hint?

Thanks,

Oliver


--------------enig5658E6985AD7AE590866D1A5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

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

iQEcBAEBAgAGBQJQ2IyhAAoJEOgBcD7A/5N8XyEH/jogM5t3CbRD2doGo6xOPfoy
JKDOj5ZL9hbS6ONNtcGImx9MT/xVc8y0Ie4+A1zog2sepNMk1Wcyp3YbqWorzCxm
cqHL//2c2a/+8+3tTBCBAf/zxspwunLd1zu+jNaAFCc0oMgFt5URU3LItADEEkEj
UtPs9LWWJzyHs7Lp59Kt0SnmRcXE8O7eaCN4e0aSJapXUa1LAuXvtwCyRVLZcov7
R3/Gw/3+UNrMB7xEWzNvGjjTrd88vgZMO/+pmf9dXqlvizqOPFOB2xvrqNU/9lh8
J42UcU/LbzP7iCggeF/prmG+3IlP/ST9qgcls1EJbPqHQ6VGSXTssoyBsCp0AE4=
=oemq
-----END PGP SIGNATURE-----

--------------enig5658E6985AD7AE590866D1A5--



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