GCC 4.8 Build Error 2 gcc/nm: exec: line -89: -pg not found

Cyd Haselton chaselton@gmail.com
Fri Oct 3 18:41:00 GMT 2014


I switched to trying to bootstrap GCC 4.8.0 on my android device using
a ported GCC 4.7.0 that had all of the components I
wanted...specifically g++.

I used the same configure parameters as my previous post, which are as follows

 ../gcc-4.7.0/configure --prefix=/usr/gcc --host=arm-linux-androideabi
--build=arm-linux-androideabi --target=arm-linux-androideabi
--enable-ppl=no --enable-ld=no --enable-libquadmath=no
--enable-libada=no --enable-cloog=no --disable-bootstrap
--enable-multilib=no --enable-multiarch=no --enable-nls=no
--disable-dependency-tracking --enable-languages=c,c++
--with-sysroot=/usr/local/sysroot --with-ld=/usr/local/bin/ld
--with-build-time-tools=/usr/local/bin --enable-languages=c,c++
"LIBS=-lc -ldl -lm -lgcc -lstdc++" "CFLAGS=-marm -mandroid -mbionic"
"CXXFLAGS=-mandroid -mbionic" "CPPFLAGS=-mandroid -mbionic"
LDFLAGS=-Wl,--dynamic-linker=/system/bin/linker "LIB_PATHS=/lib
/usr/lib" "SHELL=/system/bin/sh" "CONFIG_SHELL=/system/bin/sh"

and added

"CC=/user/lib/gcc/path/to/binary
--sysroot=/user/lib/gcc/path/to/binary"
"AR=/usr/lib/gcc/path/to/ar/binary" NM=/user/lib/gcc/path/to/nm/binary

The make fails at stage 1 with the following error
gcc/nm: exec: line 89: -pg not found
No symbols seen --broken or mis-installed nm?

I've confirmed that nm is indeed there, and there are no symbols...but
I can't figure out why/how this occurs...or if the build should be
using a different nm at this point.



More information about the Gcc-help mailing list