[Bug 231260] www/chromium: compilation failure

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

            Bug ID: 231260
           Summary: www/chromium: compilation failure
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: [hidden email]
          Reporter: [hidden email]
          Assignee: [hidden email]
             Flags: maintainer-feedback?([hidden email])

Hi,

[13/31182] c++ -MMD -MF obj/components/nacl/common/switches/nacl_switches.o.d
-DV8_DEPRECATION_WARNINGS -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1
-DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD
-DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-DCR_CLANG_REVISION=\"332838-1\" -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen
-fprofile-sample-use=/usr/ports/www/chromium/work/chromium-68.0.3440.106/chrome/android/profiles/afdo.prof
-fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector
-funwind-tables -fPIC -pipe -pthread -fcolor-diagnostics -fmerge-all-constants
-no-canonical-prefixes -m64 -march=x86-64 -Wall -Wextra -Wimplicit-fallthrough
-Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter
-Wno-c++11-narrowing -Wno-covered-switch-default
-Wno-unneeded-internal-declaration -Wno-undefined-var-template
-Wno-nonportable-include-path -Wno-address-of-packed-member
-Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch
-Wno-null-pointer-arithmetic -O2 -fno-ident -fdata-sections -ffunction-sections
-fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene
-Wstring-conversion -Wtautological-overlap-compare -std=gnu++14 -fno-exceptions
-fno-rtti -fvisibility-inlines-hidden -O2 -pipe -march=sandybridge
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing  -isystem
/usr/local/include -c ../../components/nacl/common/nacl_switches.cc -o
obj/components/nacl/common/switches/nacl_switches.o
FAILED: obj/components/nacl/common/switches/nacl_switches.o
c++ -MMD -MF obj/components/nacl/common/switches/nacl_switches.o.d
-DV8_DEPRECATION_WARNINGS -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1
-DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD
-DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-DCR_CLANG_REVISION=\"332838-1\" -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen
-fprofile-sample-use=/usr/ports/www/chromium/work/chromium-68.0.3440.106/chrome/android/profiles/afdo.prof
-fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector
-funwind-tables -fPIC -pipe -pthread -fcolor-diagnostics -fmerge-all-constants
-no-canonical-prefixes -m64 -march=x86-64 -Wall -Wextra -Wimplicit-fallthrough
-Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter
-Wno-c++11-narrowing -Wno-covered-switch-default
-Wno-unneeded-internal-declaration -Wno-undefined-var-template
-Wno-nonportable-include-path -Wno-address-of-packed-member
-Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch
-Wno-null-pointer-arithmetic -O2 -fno-ident -fdata-sections -ffunction-sections
-fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene
-Wstring-conversion -Wtautological-overlap-compare -std=gnu++14 -fno-exceptions
-fno-rtti -fvisibility-inlines-hidden -O2 -pipe -march=sandybridge
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing  -isystem
/usr/local/include -c ../../components/nacl/common/nacl_switches.cc -o
obj/components/nacl/common/switches/nacl_switches.o
c++: error: unrecognized command line option
'-fprofile-sample-use=/usr/ports/www/chromium/work/chromium-68.0.3440.106/chrome/android/profiles/afdo.prof'
c++: error: unrecognized command line option '-fcolor-diagnostics'
c++: error: unrecognized command line option '-Wimplicit-fallthrough'; did you
mean '-Wno-fallthrough'?
c++: error: unrecognized command line option '-Wthread-safety'; did you mean
'-fthread-jumps'?
c++: error: unrecognized command line option '-Wheader-hygiene'
c++: error: unrecognized command line option '-Wstring-conversion'; did you
mean '-Wint-conversion'?
c++: error: unrecognized command line option '-Wtautological-overlap-compare';
did you mean '-Wtautological-compare'?
ninja: build stopped: subcommand failed.

This failure may be due to a confusion between clang and gcc at some point.
What I can not understand is that I have successfully built 68.0.3440.106_2 on
a machine and now I can neither build 68.0.3440.106_3 nor 68.0.3440.106_2 on
two newly installed systems.

• System 1: CURRENT-r338488

   # /etc/make.conf
   CPUTYPE?=sandybridge
   MAKE_JOBS_NUMBER=4

   OPTIONS_UNSET+=DOCS EXAMPLES IPV6 LPR

   OPTIONS_SET+=CUPS
   CUPS_OVERWRITE_BASE=YES


• System 2: CURRENT-r338488

   # /etc/make.conf
   CPUTYPE?=core2
   MAKE_JOBS_NUMBER=6

   OPTIONS_UNSET+=DOCS EXAMPLES IPV6 LPR

   OPTIONS_SET+=CUPS
   CUPS_OVERWRITE_BASE=YES

   # DEFAULT_VERSIONS+=ssl=openssl

   DEVELOPER=YES

   .if !empty(.CURDIR:M/usr/ports/math/sc-im)
   WITH_DEBUG=YES
   .endif

• System that successfully built port revision 2: CURRENT-r337705

   # /etc/make.conf
   CPUTYPE?=ivybridge
   MAKE_JOBS_NUMBER=6

   OPTIONS_UNSET+=DOCS EXAMPLES IPV6 LPR

   OPTIONS_SET+=CUPS
   CUPS_OVERWRITE_BASE=YES

   DEVELOPER=YES

   .if !empty(.CURDIR:M/usr/ports/math/sc-im)
   WITH_DEBUG=YES
   .endif

   # DEFAULT_VERSIONS+=ssl=openssl

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

maintainer-feedback requested: [Bug 231260] www/chromium: compilation failure

bugzilla-noreply
Bugzilla Automation <[hidden email]> has asked freebsd-chromium mailing
list <[hidden email]> for maintainer-feedback:
Bug 231260: www/chromium: compilation failure
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260



--- Description ---
Hi,

[13/31182] c++ -MMD -MF obj/components/nacl/common/switches/nacl_switches.o.d
-DV8_DEPRECATION_WARNINGS -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1
-DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD
-DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-DCR_CLANG_REVISION=\"332838-1\" -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen
-fprofile-sample-use=/usr/ports/www/chromium/work/chromium-68.0.3440.106/chrome
/android/profiles/afdo.prof
-fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector
-funwind-tables -fPIC -pipe -pthread -fcolor-diagnostics -fmerge-all-constants
-no-canonical-prefixes -m64 -march=x86-64 -Wall -Wextra -Wimplicit-fallthrough
-Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter
-Wno-c++11-narrowing -Wno-covered-switch-default
-Wno-unneeded-internal-declaration -Wno-undefined-var-template
-Wno-nonportable-include-path -Wno-address-of-packed-member
-Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch
-Wno-null-pointer-arithmetic -O2 -fno-ident -fdata-sections -ffunction-sections
-fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene
-Wstring-conversion -Wtautological-overlap-compare -std=gnu++14 -fno-exceptions
-fno-rtti -fvisibility-inlines-hidden -O2 -pipe -march=sandybridge
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing  -isystem
/usr/local/include -c ../../components/nacl/common/nacl_switches.cc -o
obj/components/nacl/common/switches/nacl_switches.o
FAILED: obj/components/nacl/common/switches/nacl_switches.o
c++ -MMD -MF obj/components/nacl/common/switches/nacl_switches.o.d
-DV8_DEPRECATION_WARNINGS -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1
-DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD
-DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-DCR_CLANG_REVISION=\"332838-1\" -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen
-fprofile-sample-use=/usr/ports/www/chromium/work/chromium-68.0.3440.106/chrome
/android/profiles/afdo.prof
-fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector
-funwind-tables -fPIC -pipe -pthread -fcolor-diagnostics -fmerge-all-constants
-no-canonical-prefixes -m64 -march=x86-64 -Wall -Wextra -Wimplicit-fallthrough
-Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter
-Wno-c++11-narrowing -Wno-covered-switch-default
-Wno-unneeded-internal-declaration -Wno-undefined-var-template
-Wno-nonportable-include-path -Wno-address-of-packed-member
-Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch
-Wno-null-pointer-arithmetic -O2 -fno-ident -fdata-sections -ffunction-sections
-fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene
-Wstring-conversion -Wtautological-overlap-compare -std=gnu++14 -fno-exceptions
-fno-rtti -fvisibility-inlines-hidden -O2 -pipe -march=sandybridge
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing  -isystem
/usr/local/include -c ../../components/nacl/common/nacl_switches.cc -o
obj/components/nacl/common/switches/nacl_switches.o
c++: error: unrecognized command line option
'-fprofile-sample-use=/usr/ports/www/chromium/work/chromium-68.0.3440.106/chrom
e/android/profiles/afdo.prof'
c++: error: unrecognized command line option '-fcolor-diagnostics'
c++: error: unrecognized command line option '-Wimplicit-fallthrough'; did you
mean '-Wno-fallthrough'?
c++: error: unrecognized command line option '-Wthread-safety'; did you mean
'-fthread-jumps'?
c++: error: unrecognized command line option '-Wheader-hygiene'
c++: error: unrecognized command line option '-Wstring-conversion'; did you
mean '-Wint-conversion'?
c++: error: unrecognized command line option '-Wtautological-overlap-compare';
did you mean '-Wtautological-compare'?
ninja: build stopped: subcommand failed.

This failure may be due to a confusion between clang and gcc at some point.
What I can not understand is that I have successfully built 68.0.3440.106_2 on
a machine and now I can neither build 68.0.3440.106_3 nor 68.0.3440.106_2 on
two newly installed systems.

• System 1: CURRENT-r338488

   # /etc/make.conf
   CPUTYPE?=sandybridge
   MAKE_JOBS_NUMBER=4

   OPTIONS_UNSET+=DOCS EXAMPLES IPV6 LPR

   OPTIONS_SET+=CUPS
   CUPS_OVERWRITE_BASE=YES


• System 2: CURRENT-r338488

   # /etc/make.conf
   CPUTYPE?=core2
   MAKE_JOBS_NUMBER=6

   OPTIONS_UNSET+=DOCS EXAMPLES IPV6 LPR

   OPTIONS_SET+=CUPS
   CUPS_OVERWRITE_BASE=YES

   # DEFAULT_VERSIONS+=ssl=openssl

   DEVELOPER=YES

   .if !empty(.CURDIR:M/usr/ports/math/sc-im)
   WITH_DEBUG=YES
   .endif

• System that successfully built port revision 2: CURRENT-r337705

   # /etc/make.conf
   CPUTYPE?=ivybridge
   MAKE_JOBS_NUMBER=6

   OPTIONS_UNSET+=DOCS EXAMPLES IPV6 LPR

   OPTIONS_SET+=CUPS
   CUPS_OVERWRITE_BASE=YES

   DEVELOPER=YES

   .if !empty(.CURDIR:M/usr/ports/math/sc-im)
   WITH_DEBUG=YES
   .endif

   # DEFAULT_VERSIONS+=ssl=openssl
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

Carlos J. Puga Medina <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
                 CC|                            |[hidden email],
                   |                            |[hidden email]

--- Comment #1 from Carlos J. Puga Medina <[hidden email]> ---
The issue has started to happen after the clang update to 7.0. I'm sure that
Dimitry will shed some light on the current issue.

Can you reproduce this issue with the latest revision?

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

--- Comment #2 from Samy Mahmoudi <[hidden email]> ---
I used to program in Ada so I had gcc6-aux installed by default on my systems,
as well as PATH=/usr/local/gcc6-aux/bin:$PATH set in my shell configurations.

The system which built chromium successfully was missing gcc6-aux (I had
previously deleted it to save disk space) so that default c++ was not
overridden by gcc6-aux's c++.

I think the failure is reproducible by installing gcc6-aux and granting
/usr/local/gcc6-aux/bin a higher priority than /usr/bin in PATH.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

--- Comment #3 from Samy Mahmoudi <[hidden email]> ---
I can confirm the issue is reproducible with r338586 (see Comment 2 for how to
reproduce).

gcc6 and gcc7 use c++6 and c++7 (respectively) as program names which prevents
c++ from being overridden. In contrast, gcc6-aux uses c++ as program name which
might cause such issues.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

--- Comment #4 from Dimitry Andric <[hidden email]> ---
(In reply to Samy Mahmoudi from comment #3)
> I can confirm the issue is reproducible with r338586 (see Comment 2 for how
> to reproduce).
>
> gcc6 and gcc7 use c++6 and c++7 (respectively) as program names which
> prevents c++ from being overridden. In contrast, gcc6-aux uses c++ as
> program name which might cause such issues.

Since clang 7.0.0 hasn't landed yet in head, and this now appears to be a
gcc6-aux issue, can I assume that you won't need my help anymore? :)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

--- Comment #5 from Samy Mahmoudi <[hidden email]> ---
Your assumption is correct. Thank you for your reply though.

Similarly to gcc6 and gcc7, binaries of gcc6-aux should be renamed. I will try
to submit a patch to the maintainer of gcc6-aux. If I am not successful, I will
file a bug report without patch.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

Samy Mahmoudi <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |Closed
         Resolution|---                         |Works As Intended

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

--- Comment #6 from Jan Beich <[hidden email]> ---
www/chromium assumes cc/c++ (from PATH) is Clang thus sets is_clang=true
disegarding CHOSEN_COMPILER_TYPE, CC/CXX variables are obviously ignored and on
10.4/11.1 it also hardcodes clang60 instead of using USES=compiler:c++17-lang.
Not surprising that GCC build fails.

https://www.freebsd.org/doc/en/books/porters-handbook/dads-cc.html

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

Jamie Landeg-Jones <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email],
                   |                            |[hidden email]

--- Comment #7 from Jamie Landeg-Jones <[hidden email]> ---
(In reply to Samy Mahmoudi from comment #5)

I disagree. gcc6-aux installs specifically into /usr/local/gcc6-aux/bin - the
filenames are preserved to match what would be expected.

To put /usr/local/gcc6-aux/bin in your more general path - especially above the
other paths is the error here, not the gcc6-aux naming scheme.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

--- Comment #8 from Samy Mahmoudi <[hidden email]> ---
(In reply to Jan Beich from comment #6)

Comprehensive description.

I have read the part of the handbook you included as a link: if we add
"NO_PACKAGE=ignores cc cxx" as suggested, then the port would not be packaged
so I assume the best thing to do is to respect both cc and cxx or else not to
follow this suggestion...

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 231260] www/chromium: compilation failure

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231260

--- Comment #9 from Samy Mahmoudi <[hidden email]> ---
(In reply to Jamie Landeg-Jones from comment #7)

I thought about renaming more to align with the gcc6/gcc7 naming scheme than to
build with my bad PATH (I corrected it since Comment 2).

However, I understand that ports may have their own constraints and
requirements which go beyond standardization.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-chromium
To unsubscribe, send any mail to "[hidden email]"