gforth icon indicating copy to clipboard operation
gforth copied to clipboard

`make install` fails because of missing `reserve_code_super` and `append_jump`

Open odiferousmint opened this issue 5 years ago • 1 comments

cd engine && make DOSTRIP=true gforth-prof-noll OPT=-noll OPTDEFINES= OPTOBJECTS=dblsub.o
make[1]: Entering directory '/tmp/gforth-git/engine'
gcc  -Wl,--export-dynamic -pthread  engine-prof-noll.o main-prof-noll.o io.o signals.o support-noll.o  pub.o -ldl -lrt -lltdl -lm   libmain.o profile-noll.o -ldl -lrt -lltdl -lm   -o gforth-prof-noll
/usr/bin/ld: main-prof-noll.o: in function `optimize_rewrite.constprop.0':
main.c:(.text+0xb16): undefined reference to `reserve_code_super'
/usr/bin/ld: main-prof-noll.o: in function `compile_prim1':
main.c:(.text+0x1922): undefined reference to `append_jump'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:180: gforth-prof-noll] Error 1
make[1]: Leaving directory '/tmp/gforth-git/engine'
make: *** [Makefile:1271: gforth-prof] Error 2

To reproduce:

./autogen.sh
./configure --without-debug --enable-prof
make install

Thoughts?

Edit: Same happens with ./BUILD-FROM-SCRATCH --without-debug --enable-prof.

Edit 2: ./BUILD-FROM-SCRATCH --without-debug works, but with --enable-prof it does NOT work. Seems like --enable-prof is at fault here, with that I get the above error.

It would be nice if I could get rid of -g when compiling with --without-debug by the way. I do not know what --without-debug does exactly, if anything.

odiferousmint avatar Nov 11 '20 00:11 odiferousmint

The profiling support is incomplete and no progress for more than 10 years… yes, it doesn't work.

forthy42 avatar Sep 08 '21 14:09 forthy42