#2276 Can't build on OpenBSD

closed
None
Build
5
2014-06-03
2014-06-02
No

I just tried to install sdcc from trunk on a fresh install of OpenBSD 5.5.

Once the necessary dependencies are installed,
CPPFLAGS=-I/usr/local/include ./configure
runs, but the follwoing
make fails:
*** Parse error in /home/philipp/sdcc: Missing dependency operator (Makefile:29)
[more errors]

Philipp

Discussion

  • Using MAKE=gmake gmake instead of make fixed this issue. Changing CXXFLAGS to remove -g -ggdb was necessary to reduce memory usage during compilation (otherwise I got an out-of-virtual-memory error message on a system with 4GB of RAM and 4GB of swap).

     
  • There is a remaining issue with the
    if grep '^mcs51>'
    etc lines in device/lib/Makefile.in. Resulting in libraries notbeing built. Changing them to
    if grep '^mcs51$$'
    etc worked, but I do not know if this breaks something else on some other system.

    Philipp

     
  • I fixed the remaining issue in revision #9030.

    Philipp

     
  • I'm closing this now; it is not as straigthforward as I'd wish to build sdcc on OpenBSD yet though. But I don't see a bug on our side anymore.

    Philipp

     
    • status: open --> closed
    • assigned_to: Philipp Klaus Krause