Reported by Frank Storm Frank.Storm@gmx.net
If or1ksim is configured with the option --enable-profiling then gcc complains about the unknown option -a
gcc -DHAVE_CONFIG_H -I. -I.. -I../cpu/or32 -I.. -I../cpu/common -I../cpu/or1k -I../cache -I../mmu -I../bpb -I../peripheral -I../tick -I../peripheral/channels -I../pm -I../pic -I../debug -I../vapi -I../support -I../cuc -I../port -I../argtable2 -g -O2 -pg -a -MT argtable2.lo -MD -MP -MF .deps/argtable2.Tpo -c argtable2.c -fPIC -DPIC -o .libs/argtable2.o cc1: error: unrecognized command line option "-a" make2: argtable2.lo Fehler 1 make2: Leaving directory `/home/frank/projects/or1k/or1ksim-0.3.0rc1/argtable2' make1: all-recursive Fehler 1
Used gcc version is 4.3.1 (Linux OpenSuse 11.0).
This appears to be a long standing error in the main configure.ac file, which adds the flags "-pg -a" to the C compilations if this option is specified. Clearly only "-pg" is needed.<br> <br> The workaround is to edit the configure.ac file. Look for the line<br> <br> AC_ARG_ENABLE(profiling,<br> <br> Three lines below, change it to read:<br> <br> yes) profile="-pg" ;; <br>
Fixed in Or1ksim 0.3.0rc2.<br> <br> Marked as CLOSED.