#35145 closed defect (fixed)
firefox-x11 @7.0.1_2: error: non-constant-expression cannot be narrowed from type 'int' to 'SInt8' (aka 'signed char') in initializer list [-Wc++11-narrowing]
Reported by: | cubranic@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.1 |
Keywords: | Cc: | cooljeanius (Eric Gallager), ryandesign (Ryan Carsten Schmidt) | |
Port: | firefox-x11 |
Description
There is a build error with OS X 10.7.4, Xcode 4.3.3, Clang 3.1:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_tarballs_ports_www_firefox-x11/firefox-x11/work/mozilla-release/ipc/chr omium/src/base/process_util_mac.mm:189:53: error: non-constant-expression cannot be narrowed from type 'uid_t' (aka 'unsigned int') to 'int' in initializer list [-Wc++11-narrowing] int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, geteuid() }; ^~~~~~~~~
Attachments (2)
Change History (14)
Changed 12 years ago by cubranic@…
Attachment: | firefox-x11.log added |
---|
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Changed 12 years ago by cubranic@…
Attachment: | firefox-x11-llvm-gcc-4.2.log added |
---|
comment:2 Changed 12 years ago by cubranic@…
Building with llvm-gcc-4.2 also fails: see attached log.
comment:3 Changed 12 years ago by cubranic@…
I succeeded with Apple's gcc-4.2 (from http://r.research.att.com/tools, not the apple-gcc-42 port, but it's the essentially the same compiler).
Compiler version info: i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
comment:4 Changed 12 years ago by amake (Aaron Madlon-Kay)
I can confirm that building firefox-x11 7.0.1 fails on OS X 10.8.1 (Xcode 4.4) with the default compiler and with llvm-gcc-4.2, but succeeds with apple-gcc-4.2 (as provided by the apple-gcc-42 port).
comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | cdcooke@… added |
---|---|
Summary: | firefox-x11 @7.0.1: build error → firefox-x11 @7.0.1_2: error: non-constant-expression cannot be narrowed from type 'int' to 'SInt8' (aka 'signed char') in initializer list [-Wc++11-narrowing] |
Has duplicate #37806.
comment:6 Changed 12 years ago by cooljeanius (Eric Gallager)
Besides this, the firefox-x11 port probably needs to be updated, too:
gl00b05044:~ root# port livecheck firefox-x11 firefox-x11 seems to have been updated (port version: 7.0.1, new version: 489)
Maybe after being updated this error will disappear?
comment:8 follow-up: 9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
The previous maintainer dropped maintenance of the port because updating it was such a pain, so I'm certainly not going to try. Others are welcome to.
Forced the use of apple-gcc-4.2 in r102099.
comment:9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign@…:
The previous maintainer dropped maintenance of the port because updating it was such a pain, so I'm certainly not going to try. Others are welcome to.
....which is #33068
Try building with a different compiler.