#1862 Source build fails if --disable-r2k or --disable-gbz80

closed-fixed
5
2011-10-18
2011-10-17
No

Whilst trying to build sdcc-src-20111015-6966, I found that if I specified --disable-r2k-port, then my build would fail in sdas/ trying to build asrab. I only want the Z80 port, so I disable all the others.

My build settings are:
% setenv PATH /usr/gcc/4.3/bin:${PATH}
% setenv CXXFLAGS "-I/build/boost_1_46_1"
% ./configure ./configure --prefix=/opt/tools --disable-mcs51-port --disable-z180-port --disable-r2k-port --disable-gbz80-port --disable-ds390-port --disable-ds400-port --disable-pic16-port --disable-pic14-port --disable-hc08-port --disable-ucsim --disable-sdcdb --disable-device-lib
% gmake

(I've temporarily added the --disable-device-lib as _printf_large.c takes >20 minutes for sdcc to compile).
This eventually fails with:

gmake[1]: Leaving directory `/build/sdcc/sdas/asz80'
gmake[1]: Entering directory `/build/sdcc/sdas/asrab'
gmake[1]: *** No targets specified and no makefile found. Stop.
gmake[1]: Leaving directory `/build/sdcc/sdas/asrab'
gmake[1]: Entering directory `/build/sdcc/sdas/asgb'
gmake[1]: *** No targets specified and no makefile found. Stop.
gmake[1]: Leaving directory `/build/sdcc/sdas/asgb'
gmake: *** [sdcc-as] Error 2

If I take out the --disable-r2k-port, then it proceeds past this point, but then gets stuck at asgbz80:

gmake[1]: Leaving directory `/build/sdcc/sdas/asrab'
gmake[1]: Entering directory `/build/sdcc/sdas/asgb'
gmake[1]: *** No targets specified and no makefile found. Stop.
gmake[1]: Leaving directory `/build/sdcc/sdas/asgb'
gmake: *** [sdcc-as] Error 2

Finally, removing the --disable-gbz80-port option as well allows the compilation to proceed.

It would appear that configure is doing the right thing by not generating a Makefile under sdas/asrab, but then there is a Makefile somewhere which assumes all the sdas/* subdirectories contain a Makefile.

Compile environment is Solaris/i386, GCC 4.3 with Boost 1.46.1 headers.

Discussion

  • Philipp Klaus Krause

    Fixed in sdcc revision #6977.

    Philipp

     
  • Philipp Klaus Krause

    • assigned_to: nobody --> spth
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks