[cfe-dev] compiling plugins

Thiago Farina tfarina at chromium.org
Fri Jul 13 06:33:15 PDT 2012


On Fri, Jul 13, 2012 at 10:06 AM, Thiago Farina <tfarina at chromium.org> wrote:
> On Fri, Jul 13, 2012 at 6:10 AM, Thiago Farina <tfarina at chromium.org> wrote:
>>> you can use tools/clang/scripts/update.sh --force-local-build
>>
>>
>> For some reason that I do not know, this does not produce a good clang
>> executable in my 32bit laptop. Hence I'm building clang directly from the
>> official git mirror, outside of chromium tree.
>
> Looks like I was mistaken, I think the problem was with my
> configuration and/or ninja, not chromium or clang.
>
Got it now.

But...

[3/109] clang++ -B/usr/local/gold/bin -MMD -MF
obj/base/debug/base.trace_event.o.d -D_FILE_OFFSET_BITS=64
-DCHROMIUM_BUILD -DUSE_NSS=1 -DENABLE_ONE_CLICK_SIGNIN
-DGTK_DISABLE_SINGLE_INCLUDES=1 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1
-DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH
-DENABLE_NOTIFICATIONS -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1
-DENABLE_TASK_MANAGER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_EXTENSIONS=1
-DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PROTECTOR_SERVICE=1
-DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1
-DENABLE_PROMO_RESOURCE_SERVICE=1 -DENABLE_AUTOMATION=1
-DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1
-DUSE_SYMBOLIZE -D__STDC_FORMAT_MACROS -DBASE_IMPLEMENTATION
-DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1
-D_DEBUG -I../.. -Werror -pthread -fno-exceptions -fno-strict-aliasing
-Wall -Wno-unused-parameter -Wno-missing-field-initializers
-fvisibility=hidden -pipe -fPIC -Wheader-hygiene -Wno-unused-function
-Wno-char-subscripts -Wno-unnamed-type-template-args
-Wno-c++11-extensions -Wno-covered-switch-default -Xclang -load
-Xclang /home/tfarina/chromium/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-Xclang -add-plugin -Xclang find-bad-constructs -Xclang
-plugin-arg-find-bad-constructs -fcolor-diagnostics -Wno-write-strings
-pthread -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include -pthread
-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pixman-1
-Wexit-time-destructors -m32 -mmmx -march=pentium4 -msse2 -O0 -g
-fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden
-Wsign-compare  -c ../../base/debug/trace_event.cc -o
obj/base/debug/base.trace_event.o
Unknown argument: -o
Unknown argument: -o

Just wondering why it's saying "unknown argument".

$ clang --version # it's in ./third_party/llvm-build/Release+Asserts/bin/
clang version 3.2 (trunk 159409)
Target: i386-pc-linux-gnu
Thread model: posix

So instead of putting the .o file in out/Debug/obj/base/files/, they
are in base/*.o

The way I compiled was:

$ ninja -v -C out/Debug/ base

-- 
Thiago



More information about the cfe-dev mailing list