http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912
Bug #: 53912 Summary: bootstrap fails at stage 2 with error: cast from 'void*' to 'long int' loses precision in ggc-common.c Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: rai...@emrich-ebersheim.de bootstrap native x86_64-w64-mingw32 fails at stage 2: /SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/./prev-gcc/g++ -B/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/./prev-gcc/ -B/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-4.7.2/x86_64-w64-mingw32/bin/ -nostdinc++ -B/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs -B/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -I/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32 -I/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/include -I/SCRATCH/tmp.pBPKMqodMC/src/gcc-4.7.2/libstdc++-v3/libsupc++ -L/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs -L/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/prev-x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -c -g -O2 -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../../src/gcc-4.7.2/gcc -I../../../src/gcc-4.7.2/gcc/. -I../../../src/gcc-4.7.2/gcc/../include -I./../intl -I../../../src/gcc-4.7.2/gcc/../libcpp/include -I/SCRATCH/tmp.pBPKMqodMC/install/include -I/SCRATCH/tmp.pBPKMqodMC/install/include -I/SCRATCH/tmp.pBPKMqodMC/install/include -I../../../src/gcc-4.7.2/gcc/../libdecnumber -I../../../src/gcc-4.7.2/gcc/../libdecnumber/bid -I../libdecnumber -I/SCRATCH/tmp.pBPKMqodMC/install/include -I/SCRATCH/tmp.pBPKMqodMC/install/include ../../../src/gcc-4.7.2/gcc/ggc-common.c -o ggc-common.o ../../../src/gcc-4.7.2/gcc/ggc-common.c: In function 'int gt_pch_note_object(void*, void*, gt_note_pointers, gt_types_enum)': ../../../src/gcc-4.7.2/gcc/ggc-common.c:326:49: error: cast from 'void*' to 'long int' loses precision [-fpermissive] ../../../src/gcc-4.7.2/gcc/ggc-common.c: In function 'void gt_pch_note_reorder(void*, void*, gt_handle_reorder)': ../../../src/gcc-4.7.2/gcc/ggc-common.c:359:44: error: cast from 'void*' to 'long int' loses precision [-fpermissive] ../../../src/gcc-4.7.2/gcc/ggc-common.c: In function 'hashval_t saving_htab_hash(const void*)': ../../../src/gcc-4.7.2/gcc/ggc-common.c:370:10: error: cast from 'void*' to 'long int' loses precision [-fpermissive] ../../../src/gcc-4.7.2/gcc/ggc-common.c: In function 'void relocate_ptrs(void*, void*)': ../../../src/gcc-4.7.2/gcc/ggc-common.c:443:45: error: cast from 'void*' to 'long int' loses precision [-fpermissive] ../../../src/gcc-4.7.2/gcc/ggc-common.c: In function 'void write_pch_globals(const ggc_root_tab* const*, traversal_state*)': ../../../src/gcc-4.7.2/gcc/ggc-common.c:472:42: error: cast from 'void*' to 'long int' loses precision [-fpermissive] make[3]: *** [ggc-common.o] Error 1 make[3]: Leaving directory `/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/SCRATCH/tmp.pBPKMqodMC/gcc-4.7.2/gcc-4.7.2' make: *** [all] Error 2 If configured with --disable-build-poststage1-with-cxx bootstrap succeeds.