>Number: 180017 >Category: misc >Synopsis: Synopsis: erlang-runtime-16.b.01 wx build broken when using >clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 27 00:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Stefan Grundmann >Release: svn path=/head/; revision=252207 >Organization: >Environment: FreeBSD seth 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Thu Jun 20 17:07:42 UTC 2013 sg@seth:/usr/obj/usr/src/sys/GENERIC amd64 >Description: erlang-runtime-16.b.01 does not build the wx application when using clang since
otp_src_R16B01/lib/wx/configure:5137 states CXXFLAGS="$CXXFLAGS $CFLAGS $CPPFLAGS" which makes '-std=gnu89' (from USE_CSTD in Makefile) end up in the c++ command. clang fails: error: invalid argument '-std=gnu89' not allowed with 'C++/ObjC++' during configure of lib/wx. (Can not link the wx driver, wx will NOT be useable) When this is fixed (by not including CFLAGS into CXXFLAGS) the wx build failes: /usr/bin/ld: amd64-portbld-freebsd10.0/wxe_impl.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC amd64-portbld-freebsd10.0/wxe_impl.o: could not read symbols: Bad value >How-To-Repeat: build lang/erlang-runtime16 with WX enabled and clang >Fix: --- lib/wx/configure.orig 2013-06-26 23:47:25.000000000 +0000 +++ lib/wx/configure 2013-06-26 23:47:48.000000000 +0000 @@ -5134,7 +5134,7 @@ -CXXFLAGS="$CXXFLAGS $CFLAGS $CPPFLAGS" +CXXFLAGS="$CXXFLAGS -fPIC $CPPFLAGS" CFLAGS="$CFLAGS $CPPFLAGS $C_ONLY_FLAGS" DEBUG_CXXFLAGS="$CXXFLAGS $DEBUG_CFLAGS $CPPFLAGS" >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"