Update gcc to 6.4.0 (Linux)
We should build Tor Browser using gcc 6.4.0.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
After updating gcc to 6.4.0, gcc fails to build with this error:
g++ -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wm issing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I. ./.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/.. /libbacktrace -o insn-attrtab.o -MT insn-attrtab.o -MMD -MP -MF ./.deps/insn-attrtab.TPo insn-attrtab.c g++ -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wm issing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I. ./.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/.. /libbacktrace -o insn-automata.o -MT insn-automata.o -MMD -MP -MF ./.deps/insn-automata.TPo insn-automata.c g++ -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wm issing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I. ./.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/.. /libbacktrace -o insn-dfatab.o -MT insn-dfatab.o -MMD -MP -MF ./.deps/insn-dfatab.TPo insn-dfatab.c g++ -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wm issing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I. ./.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber -I../.././gcc/.. /libbacktrace -o insn-latencytab.o -MT insn-latencytab.o -MMD -MP -MF ./.deps/insn-latencytab.TPo insn-latencytab.c g++ -std=gnu++98 -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-form at-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc gc ov.o \ hash-table.o ggc-none.o libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -o gcov /usr/bin/ld.bfd.real: gcov.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC gcov.o: could not read symbols: Bad value collect2: error: ld returned 1 exit status make[3]: *** [gcov] Error 1
The gcc build is fixed when setting
DEB_BUILD_HARDENING_PIE=0
inprojects/gcc/build
.Replying to boklm:
After updating gcc to 6.4.0, gcc fails to build with this error: ... The gcc build is fixed when setting
DEB_BUILD_HARDENING_PIE=0
inprojects/gcc/build
. This is #20301 (moved).Trac:
Parent: N/A to #24631 (moved)I created a separate ticket for the Windows gcc update (#25420 (moved)), to do the Linux and Windows gcc updates separately, as we might not need the Windows one if we switch to clang-cl with #21777 (moved).
Trac:
Summary: Update gcc to 6.4.0 to Update gcc to 6.4.0 (Linux)
Keywords: TorBrowserTeam201802, boklm201802 deleted, boklm201803, TorBrowserTeam201803 addedThere is a patch for review in branch
bug_25304_v6
: https://gitweb.torproject.org/user/boklm/tor-browser-build.git/commit/?h=bug_25304_v6&id=049196094eeb5a64b6504defaf12e1ab3e2546c3I checked that the i686, x86_64 and debug builds are running, and their build is reproducible on 2 machines.
Trac:
Keywords: TorBrowserTeam201803 deleted, TorBrowserTeam201804R added
Status: new to needs_reviewLooks good. Applied to
master
(commit 049196094eeb5a64b6504defaf12e1ab3e2546c3).Trac:
Resolution: N/A to fixed
Status: needs_review to closed- Trac closed
closed