chromium 36 almost there ...

Carlos Jacobo Puga Medina cpm at fbsd.es
Tue Aug 12 11:27:31 UTC 2014


On Tue, 12 Aug 2014 13:11:52 +0200
René Ladan <rene at freebsd.org> wrote:

> 2014-08-12 13:03 GMT+02:00 Carlos Jacobo Puga Medina <cpm at fbsd.es>:
> 
> > I'm testing it on 11-CURRENT/i386. It's building fine so far.
> >
> > # cd /usr/ports/www/chromium && make -V GYP_DEFINES
> > clang_use_chrome_plugins=0  linux_breakpad=0  linux_use_heapchecker=0
> >  linux_strip_binary=1  test_isolation_mode=noop  disable_nacl=1
> >  enable_one_click_signin=1  enable_openmax=1  enable_webrtc=1  werror=
> >  no_gc_sections=1  os_ver=1100028  prefix_dir=/usr/local  python_ver=2.7
> >  use_allocator=none  use_cups=1  use_gnome_keyring=1
> >  linux_link_gnome_keyring=1  linux_link_gsettings=1  linux_link_libpci=1
> >  linux_link_libspeechd=1  libspeechd_h_prefix=speech-dispatcher/
> >  usb_ids_path=/usr/local/share/usbids/usb.ids  want_separate_host_toolset=0
> >  use_system_bzip2=1  use_system_flac=1  use_system_harfbuzz=1
> >  use_system_icu=1  use_system_jsoncpp=1  use_system_libevent=1
> >  use_system_libexif=1  use_system_libjpeg=1  use_system_libpng=1
> >  use_system_libusb=1  use_system_libwebp=1  use_system_libxml=1
> >  use_system_libxslt=1  use_system_minizip=1  use_system_nspr=1
> >  use_system_openssl=1  use_system_protobuf=1  use_system_re2=1
> >  use_system_snappy=1  use_system_speex=1  use_system_xdg_utils=1  use_sys
> >  tem_yasm=1  use_system_zlib=1
> > flapper_version_h_file='/usr/ports/www/chromium/work/chromium-36.0.1985.125/flapper_version.h'
> > google_api_key=AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8
> >  google_default_client_id=996322985003.apps.googleusercontent.com
> >  google_default_client_secret=IR1za9-1VK0zZ0f_O8MVFicn
> > ffmpeg_branding=Chrome proprietary_codecs=1 use_gconf=1 use_pulseaudio=0
> > disable_sse2=1 gcc_version=48
> >
> > Why not use the native compiler (clang) ? But since you're using gcc 4.8
> anyway, feel free to post any hacks needed to get it compiling.

If I build chromium with clang 3.4.1 fails for me due to typedef redefinition errors:

<snip>
[6455/14373] CXX obj/gpu/command_buffe...ommand_buffer_service.buffer_manager.o
FAILED: c++ -MMD -MF obj/gpu/command_buffer/service/command_buffer_service.buffer_manager.o.d -DV8_DEPRECATION_WARNINGS -DBLINK_SCALE_FILTERS_AT_RECORD_TIME -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=206824 -DTOOLKIT_VIEWS=1 -DUSE_AURA=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DUSE_XI2_MT=2 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.goo
 glezip.net:80/"' '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' -DGL_GLEXT_PROTOTYPES -DPROTOBUF_USE_DLLS -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DSK_ENABLE_INST_COUNT=0 -DSK_SUPPORT_GPU=1 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' -DSK_ENABLE_LEGACY_API_ALIASING=1 -DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1 -DGR_GL_IGNORE_ES3_MSAA=0 -DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT -DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1 -DSK_SUPPORT_LEGACY_GETTOPDEVICE -DSK_SUPPORT_LEGACY_N32_NAME -DSK_SUPPORT_LEGACY_BLURMASKFILTER_STYLE -DSK_SUPPORT_LEGACY_GETTOTALCLIP -DSK_USE_POSIX_THREADS -DSK_DEFERRED_CANVAS_USES_FACTORIES=1 -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DUSE_NSS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DOFFICIAL_BUILD -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURC
 E=2 -I../.. -I../../third_party/khronos -I../../gpu -I/usr/local/include -I../../skia/config -Igen/protoc_out -I../../net/third_party/nss/ssl -I../../third_party/protobuf -I../../third_party/protobuf/src -I../../third_party/re2 -I../../third_party/skia/src/core -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../skia/ext -I../../third_party/icu/source/i18n -I../../third_party/icu/source/common -Igen/ui/gl -I../../third_party/mesa/src/include -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-exceptions -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-dec
 laration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-reserved-user-defined-literal -Wno-deprecated-register -Wno-absolute-value -momit-leaf-frame-pointer -fcolor-diagnostics -pthread -I/usr/local/include/glib-2.0 -I/usr/local/include -I/usr/local/include/nss -I/usr/local/include/nss/nss -I/usr/local/include/nspr -Wno-header-guard -msse2 -mmmx -m32 -O2 -fdata-sections -ffunction-sections -funwind-tables -O2 -pipe -fno-stack-protector -Wno-unknown-warning-option -fno-strict-aliasing -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -std=gnu++11  -c ../../gpu/command_buffer/service/buffer_manager.cc -o obj/gpu/command_buffer/service/command_buffer_service.buffer_manager.o
In file included from ../../gpu/command_buffer/service/buffer_manager.cc:10:
In file included from ../../gpu/command_buffer/service/context_state.h:14:
In file included from ../../gpu/command_buffer/service/query_manager.h:16:
In file included from ../../gpu/command_buffer/service/feature_info.h:14:
In file included from ../../gpu/command_buffer/service/gles2_cmd_validation.h:13:
../../gpu/command_buffer/common/gles2_cmd_format.h:41:26: error: typedef redefinition with different types ('khronos_intptr_t' (aka 'long') vs 'ptrdiff_t' (aka 'int'))
typedef khronos_intptr_t GLintptr;
                         ^
/usr/local/include/GL/glext.h:6152:19: note: previous definition is here
typedef ptrdiff_t GLintptr;
                  ^
In file included from ../../gpu/command_buffer/service/buffer_manager.cc:10:
In file included from ../../gpu/command_buffer/service/context_state.h:14:
In file included from ../../gpu/command_buffer/service/query_manager.h:16:
In file included from ../../gpu/command_buffer/service/feature_info.h:14:
In file included from ../../gpu/command_buffer/service/gles2_cmd_validation.h:13:
../../gpu/command_buffer/common/gles2_cmd_format.h:42:26: error: typedef redefinition with different types ('khronos_ssize_t' (aka 'long') vs 'ptrdiff_t' (aka 'int'))
typedef khronos_ssize_t  GLsizeiptr;
                         ^
/usr/local/include/GL/glext.h:6153:19: note: previous definition is here
typedef ptrdiff_t GLsizeiptr;
                  ^
2 errors generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/chromium
*** Error code 1

> 
> Regards,
> René
> 
> -- 
> http://www.rene-ladan.nl/

-- 
Carlos Jacobo Puga Medina <cpm at fbsd.es>


More information about the freebsd-chromium mailing list