Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Aug 2014 19:17:47 +0200
From:      Carlos Jacobo Puga Medina <cpm@fbsd.es>
To:        rene@freebsd.org
Cc:        freebsd-chromium@freebsd.org
Subject:   Re: porting Chromium 36 to FreeBSD
Message-ID:  <20140806191747.445474a56c72526b3f1ab41a@fbsd.es>
In-Reply-To: <20140805141624.1c32d780213293ded350d983@fbsd.es>
References:  <20140805141624.1c32d780213293ded350d983@fbsd.es>

next in thread | previous in thread | raw e-mail | index | archive | help
I'm building chromium with GCC47 (still compiling) and previous problem doesn't arise as happened with Clang 3.4.1 which breaks the build process.

> 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.g
 ooglezip.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_SOU
 RCE=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=hiddenSo it will be good if we can build chromium properly with GCC. -pipe -fPIC 
 -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -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

So it will be good if we can build chromium properly with GCC. 

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



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