#25304: Update gcc to 6.4.0
-------------------------------------------------+-------------------------
 Reporter:  boklm                                |          Owner:  tbb-
                                                 |  team
     Type:  task                                 |         Status:  new
 Priority:  Very High                            |      Milestone:
Component:  Applications/Tor Browser             |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  tbb-rbm, TorBrowserTeam201802,       |  Actual Points:
  boklm201802                                    |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by boklm):

 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` in
 `projects/gcc/build`.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25304#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Reply via email to