https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61314
Bug ID: 61314 Summary: Building GCC 4.9.0 breaks in libbacktrace on Ubuntu Lucid Lynx Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: gk at torproject dot org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org When building gcc 4.9.0 on Ubuntu Lucid the build breaks with the following error: /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../gcc-4.9.0/libbacktrace -I ../gcc-4.9.0/libbacktrace/../include -I ../gcc-4.9.0/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=dwarf.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -g -O2 -c -o dwarf.lo ../gcc-4.9.0/libbacktrace/dwarf.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../gcc-4.9.0/libbacktrace -I ../gcc-4.9.0/libbacktrace/../include -I ../gcc-4.9.0/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=dwarf.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -g -O2 -c ../gcc-4.9.0/libbacktrace/dwarf.c -o dwarf.o ../gcc-4.9.0/libbacktrace/dwarf.c: In function 'dwarf_lookup_pc': ../gcc-4.9.0/libbacktrace/dwarf.c:2678: warning: implicit declaration of function '__atomic_load_n' ../gcc-4.9.0/libbacktrace/dwarf.c:2678: error: '__ATOMIC_ACQUIRE' undeclared (first use in this function) ../gcc-4.9.0/libbacktrace/dwarf.c:2678: error: (Each undeclared identifier is reported only once ../gcc-4.9.0/libbacktrace/dwarf.c:2678: error: for each function it appears in.) ../gcc-4.9.0/libbacktrace/dwarf.c:2738: warning: implicit declaration of function '__atomic_store_n' ../gcc-4.9.0/libbacktrace/dwarf.c:2738: error: '__ATOMIC_RELEASE' undeclared (first use in this function) ../gcc-4.9.0/libbacktrace/dwarf.c: In function 'dwarf_fileline': ../gcc-4.9.0/libbacktrace/dwarf.c:2873: error: '__ATOMIC_ACQUIRE' undeclared (first use in this function) ../gcc-4.9.0/libbacktrace/dwarf.c: In function 'backtrace_dwarf_add': ../gcc-4.9.0/libbacktrace/dwarf.c:3006: error: '__ATOMIC_ACQUIRE' undeclared (first use in this function) make[2]: Leaving directory `/home/ubuntu/build/gcc/libbacktrace' make[2]: *** [dwarf.lo] Error 1 It works fine on Ubuntu Precise. The gcc version on Lucid is 4.4.3 and on Precise 4.6.3. I configured the 4.9.0 build with --prefix=path/to/my/dir --disable-multilib --enable-languages=c,c++