New issue
Advanced search Search tips

Issue 775812 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Nov 1
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Problem compiling chromium on gcc 4.9.2 slackware current

Reported by jmp...@gmail.com, Oct 18 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0

Steps to reproduce the problem:
1. Try to compile chromium using slackbuild script from
http://www.slackware.com/~alien/slackbuilds/chromium/build/
but using gcc 4.9.2 and cannot build finishing with
ninja: build stopped: subcommand failed.

What is the expected behavior?
Compile and finish correctly

What went wrong?
When I compiled chromium version 61.0.3163.79.tar.xz  on slackware 32 bit (intel architecture), occurs following error:

[14752/29018] CXX obj/services/resource_coordinator/lib/process_map.o
[14753/29018] CXX obj/services/resource_coordinator/lib/resource_coordinator_service.o
FAILED: obj/services/resource_coordinator/lib/resource_coordinator_service.o 
g++ -MMD -MF obj/services/resource_coordinator/lib/resource_coordinator_service.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DWTF_USE_WEBAUDIO_FFMPEG=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -I../.. -Igen -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../third_party/protobuf/src -Igen/protoc_out -Igen/components/metrics/proto -I../../third_party/protobuf/src -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/WebKit/Source -I../../third_party/WebKit -Igen/blink -Igen/third_party/WebKit -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -pthread -fno-builtin-abs -m32 -msse2 -mfpmath=sse -mmmx -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g0 -fvisibility=hidden -std=gnu++11 -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include -Wno-narrowing -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -c ../../services/resource_coordinator/resource_coordinator_service.cc -o obj/services/resource_coordinator/lib/resource_coordinator_service.o
../../services/resource_coordinator/resource_coordinator_service.cc: In static member function 'static std::__1::unique_ptr<service_manager::Service> resource_coordinator::ResourceCoordinatorService::Create()':
../../services/resource_coordinator/resource_coordinator_service.cc:20:10: error: cannot bind 

'std::__1::unique_ptr<resource_coordinator::ResourceCoordinatorService, std::__1::default_delete<resource_coordinator::ResourceCoordinatorService> >' lvalue 
to 'std::__1::unique_ptr<resource_coordinator::ResourceCoordinatorService, std::__1::default_delete<resource_coordinator::ResourceCoordinatorService> >&&'
   return resource_coordinator_service;
          ^
In file included from ../../services/resource_coordinator/resource_coordinator_service.h:8:0,
                 from ../../services/resource_coordinator/resource_coordinator_service.cc:5:
../../buildtools/third_party/libc++/trunk/include/memory:2436:3: note: initializing argument 1 of 'std::__1::unique_ptr<_Tp, _Dp>::unique_ptr(std::__1::unique_ptr<_Up, _Ep>&&) [with _Up = resource_coordinator::ResourceCoordinatorService; _Ep = std::__1::default_delete<resource_coordinator::ResourceCoordinatorService>; <template-parameter-2-3> = void; <template-parameter-2-4> = void; _Tp = service_manager::Service; _Dp = std::__1::default_delete<service_manager::Service>]'
   unique_ptr(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT
   ^
../../services/resource_coordinator/resource_coordinator_service.cc:21:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[14754/29018] CXX obj/services/resource_coordinator/lib/tab_signal_generator_impl.o
ninja: build stopped: subcommand failed.

gcc version:
root@wifislax~ # gcc -v
\Reading specs from /usr/lib/gcc/i486-slackware-linux/4.9.2/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i486-slackware-linux/4.9.2/lto-wrapper
Target: i486-slackware-linux
Configured with: ../gcc-4.9.2/configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib/python2.7/site-packages --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --enable-install-libiberty --with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib/jvm/jre --with-jvm-root-dir=/usr/lib/jvm --with-jvm-jar-dir=/usr/lib/jvm/jvm-exports --with-arch-directory=i386 --with-antlr-jar=/root/slackware-current/source/d/gcc/antlr-runtime-3.4.jar --enable-java-awt=gtk --disable-gtktest --with-arch=i486 --target=i486-slackware-linux --build=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.9.2 (GCC)When I compiled chromium version 61.0.3163.79.tar.xz  on slackware 32 bit (intel architecture), occurs following error:

[14752/29018] CXX obj/services/resource_coordinator/lib/process_map.o
[14753/29018] CXX obj/services/resource_coordinator/lib/resource_coordinator_service.o
FAILED: obj/services/resource_coordinator/lib/resource_coordinator_service.o 
g++ -MMD -MF obj/services/resource_coordinator/lib/resource_coordinator_service.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DWTF_USE_WEBAUDIO_FFMPEG=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -I../.. -Igen -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../third_party/protobuf/src -Igen/protoc_out -Igen/components/metrics/proto -I../../third_party/protobuf/src -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/WebKit/Source -I../../third_party/WebKit -Igen/blink -Igen/third_party/WebKit -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -pthread -fno-builtin-abs -m32 -msse2 -mfpmath=sse -mmmx -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g0 -fvisibility=hidden -std=gnu++11 -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include -Wno-narrowing -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -c ../../services/resource_coordinator/resource_coordinator_service.cc -o obj/services/resource_coordinator/lib/resource_coordinator_service.o
../../services/resource_coordinator/resource_coordinator_service.cc: In static member function 'static std::__1::unique_ptr<service_manager::Service> resource_coordinator::ResourceCoordinatorService::Create()':
../../services/resource_coordinator/resource_coordinator_service.cc:20:10: error: cannot bind 

'std::__1::unique_ptr<resource_coordinator::ResourceCoordinatorService, std::__1::default_delete<resource_coordinator::ResourceCoordinatorService> >' lvalue 
to 'std::__1::unique_ptr<resource_coordinator::ResourceCoordinatorService, std::__1::default_delete<resource_coordinator::ResourceCoordinatorService> >&&'
   return resource_coordinator_service;
          ^
In file included from ../../services/resource_coordinator/resource_coordinator_service.h:8:0,
                 from ../../services/resource_coordinator/resource_coordinator_service.cc:5:
../../buildtools/third_party/libc++/trunk/include/memory:2436:3: note: initializing argument 1 of 'std::__1::unique_ptr<_Tp, _Dp>::unique_ptr(std::__1::unique_ptr<_Up, _Ep>&&) [with _Up = resource_coordinator::ResourceCoordinatorService; _Ep = std::__1::default_delete<resource_coordinator::ResourceCoordinatorService>; <template-parameter-2-3> = void; <template-parameter-2-4> = void; _Tp = service_manager::Service; _Dp = std::__1::default_delete<service_manager::Service>]'
   unique_ptr(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT
   ^
../../services/resource_coordinator/resource_coordinator_service.cc:21:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[14754/29018] CXX obj/services/resource_coordinator/lib/tab_signal_generator_impl.o
ninja: build stopped: subcommand failed.

gcc version:
root@wifislax~ # gcc -v
\Reading specs from /usr/lib/gcc/i486-slackware-linux/4.9.2/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i486-slackware-linux/4.9.2/lto-wrapper
Target: i486-slackware-linux
Configured with: ../gcc-4.9.2/configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib/python2.7/site-packages --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --enable-install-libiberty --with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib/jvm/jre --with-jvm-root-dir=/usr/lib/jvm --with-jvm-jar-dir=/usr/lib/jvm/jvm-exports --with-arch-directory=i386 --with-antlr-jar=/root/slackware-current/source/d/gcc/antlr-runtime-3.4.jar --enable-java-awt=gtk --disable-gtktest --with-arch=i486 --target=i486-slackware-linux --build=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.9.2 (GCC)

Did this work before? N/A 

Chrome version: chromium-61.0.3163.79  Channel: n/a
OS Version: Slackware current (close to 14.2)
Flash Version: 

Initially compilation was stopping at step [5228/29018] due to  bug 746767  (https://bugs.chromium.org/p/chromium/issues/detail?id=746767)
but after applying that patch compilation could continue, now is stopping at step [14753/29018] with this new error
 
error.txt
4.1 KB View Download

Comment 1 Deleted

Comment 2 by jmp...@gmail.com, Oct 18 2017

This seems to be an error with using std::bind from libstdc++
Cc: kebalaji@chromium.org
Components: Build
Labels: Needs-Milestone
Cc: kkaluri@chromium.org
Labels: TE-NeedsTriageHelp
Unable to test this issue from TE-End, hence adding TE-NeedsTriageHelp label for further triage
Project Member

Comment 5 by sheriffbot@chromium.org, Nov 1

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment