Skip to content

Build errors #25

@smdjeff

Description

@smdjeff

Platform
Mac OS X build 15.1.1 (24B91)

Native tools

gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin24.1.0

Prerequisites

brew tap tgtakaoka/m6809
brew install libc-m6809 gdb-m6809

dot config
https://pastebin.com/mhW33WdP

errors

  • when building machine 'tz'
Makefile:72: build/mach-Makefile: No such file or directory
Regenerating build/mach-Makefile if necessary...
Can't locate machine/tz/leff.pl in @INC (@INC contains: /Library/Perl/5.34/darwin-thread-multi-2level /Library/Perl/5.34 /Network/Library/Perl/5.34/darwin-thread-multi-2level /Network/Library/Perl/5.34 /Library/Perl/Updates/5.34.1 /System/Library/Perl/5.34/darwin-thread-multi-2level /System/Library/Perl/5.34 /System/Library/Perl/Extras/5.34/darwin-thread-multi-2level /System/Library/Perl/Extras/5.34) at tools/genmachine line 470, <FH> line 652.
make: *** [build/mach-Makefile] Error 2
  • when building machine 'tester'
Makefile:72: build/mach-Makefile: No such file or directory
Making build directory...
Regenerating build/mach-Makefile if necessary...
Can't locate machine/tz/leff.pl in @INC (@INC contains: /Library/Perl/5.34/darwin-thread-multi-2level /Library/Perl/5.34 /Network/Library/Perl/5.34/darwin-thread-multi-2level /Network/Library/Perl/5.34 /Library/Perl/Updates/5.34.1 /System/Library/Perl/5.34/darwin-thread-multi-2level /System/Library/Perl/5.34 /System/Library/Perl/Extras/5.34/darwin-thread-multi-2level /System/Library/Perl/Extras/5.34) at tools/genmachine line 470, <FH> line 652.
make: *** [build/mach-Makefile] Error 2

additional observations

  • build fails to follow symbolic links for intended MACHINE_DIR abstraction. don't use 'ln -s' in makefile

  • several build issues related to platform dependencies. for example fastram noreturn pthread_t arpa/inet.h

  • font.c fails to build because of warnings treated as errors, a C std issue?

  • imgld- makefile imgld.make looks incomplete. Seems to be a major issue with CONFIG_NATIVE. freewpc.h and platform have some strange assumptions, like datatypes, system includes/libraries, etc

recommendations

  • use standard platform datatypes.
  • rewrite to remove perl and bash dependencies
  • consider a simple monolithic build without all the libraries
  • consider cmake build system or similar
  • consider industry standard ./configure && make process
  • build unit tests / integration sim by default
  • right at checkout, make should result in something runnable without modification

I'm starting a fork.
https://github.com/smdjeff/freewpc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions