Build kanjitalk755 code under Mojave & Xcode 10?

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
emendelson
Forum All-Star
Posts: 1231
Joined: Tue Oct 14, 2008 12:12 am

Build kanjitalk755 code under Mojave & Xcode 10?

Post by emendelson »

I can build kanjitalk755's excellent BasiliskII code under High Sierra and Xcode 9.4. Under Mojave and Xcode 10.1, the genpcu module produces this error:
error: Build input file cannot be found: '/Users/edward/Library/Developer/Xcode/DerivedData/BasiliskII-bnefkqahrmhuywchlwzfrqstsman/Build/Products/Release/build68k_output/defs68k.c'
Is there an obvious solution to this? Or a non-obvious one?

EDIT: Yes, there is an obvious solution. File-->Project Settings-->Build System, change to "Legacy Build System." Maybe this will help someone else!
User avatar
Ronald P. Regensburg
Expert User
Posts: 6391
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Build kanjitalk755 code under Mojave & Xcode 10?

Post by Ronald P. Regensburg »

Not so obvious to me, but this certainly helped me. :smile:
User avatar
KnuddlMac
Tinkerer
Posts: 91
Joined: Thu Apr 06, 2017 9:32 am

Re: Build kanjitalk755 code under Mojave & Xcode 10?

Post by KnuddlMac »

emendelson wrote:I can build kanjitalk755's excellent BasiliskII code under High Sierra and Xcode 9.4. Under Mojave and Xcode 10.1, the genpcu module produces this error:
error: Build input file cannot be found: '/Users/edward/Library/Developer/Xcode/DerivedData/BasiliskII-bnefkqahrmhuywchlwzfrqstsman/Build/Products/Release/build68k_output/defs68k.c'
Is there an obvious solution to this? Or a non-obvious one?

EDIT: Yes, there is an obvious solution. File-->Project Settings-->Build System, change to "Legacy Build System." Maybe this will help someone else!
Interesting, the same error occurres again using Xcode 11.3.1 on Catalina. - Current project setting is "Legacy Build System" and no improvement switching to "New build system".

Code: Select all

clang: error: no such file or directory: '/Users/mickeyMouse/Library/Developer/Xcode/DerivedData/BasiliskII-cuuxyciijfkrbobvqtldhcveczlm/Build/Products/Release/gencpu_output/defs68k.c'
clang: error: no input files
A version from February compiles just fine, but I fail on the recent build.

Any idea what mistake I made or which switch I should toggle?
emendelson
Forum All-Star
Posts: 1231
Joined: Tue Oct 14, 2008 12:12 am

Re: Build kanjitalk755 code under Mojave & Xcode 10?

Post by emendelson »

Sounds like this might be a problem similar to this one:

https://www.emaculation.com/forum/viewt ... &start=100

As you see from that thread, some of us have had no trouble building current code. It's a puzzle.
User avatar
KnuddlMac
Tinkerer
Posts: 91
Joined: Thu Apr 06, 2017 9:32 am

Re: Build kanjitalk755 code under Mojave & Xcode 10?

Post by KnuddlMac »

emendelson wrote:Sounds like this might be a problem similar to this one:

https://www.emaculation.com/forum/viewt ... &start=100

As you see from that thread, some of us have had no trouble building current code. It's a puzzle.
Thank you for confirming that my experience is not an exempt case. - I simply feels stupid, if everyone compiles code w/o significant problems, just here it fails... =8D
User avatar
Cat_7
Expert User
Posts: 5103
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Build kanjitalk755 code under Mojave & Xcode 10?

Post by Cat_7 »

Not everyone. I have that problem too on Mojave.

Best,
Cat_7
User avatar
Ronald P. Regensburg
Expert User
Posts: 6391
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Build kanjitalk755 code under Mojave & Xcode 10?

Post by Ronald P. Regensburg »

You run Mojave on a Hackintosh or in a virtual machine on a PC, don't you? Could that be a common factor?
User avatar
Cat_7
Expert User
Posts: 5103
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Build kanjitalk755 code under Mojave & Xcode 10?

Post by Cat_7 »

Nope, I run that on an actual Apple machine (for once) ;-)
(Mac mini server that was tricked into running Mojave.)

Catalina in Virtual box compiles just fine.

Best,
Cat_7
RichCini
Student Driver
Posts: 24
Joined: Fri Feb 28, 2020 3:10 am

Re: Build kanjitalk755 code under Mojave & Xcode 10?

Post by RichCini »

Well, that worked for me (XCode 11.3.1 on Catalina). The build still produces a few warnings: three functions without a prototype, two depreciated functions (AuthorizationCopyPrivilegedReference and AuthorizationExecuteWithPrivileges) and two about promoted type "int" not compatible with specified type u_char (both in ip_icmp.c).

Since those are warnings, it builds and executes just fine.
User avatar
KnuddlMac
Tinkerer
Posts: 91
Joined: Thu Apr 06, 2017 9:32 am

Re: Build kanjitalk755 code under Mojave & Xcode 10?

Post by KnuddlMac »

Back home: New machine, new luck -> Finally builds OK on Catalina with SDL2.12 and Xcode 11.3 .
Wonderful, so all that is missing are the KEXTs.

But outside is sunshine and I already did waste a full day yesterday to get a Powerbook Duo with a Duo Dock running.

Anyone out there with a Asanté Nubus RJ45 Ethernet driver?


Happy Hackin' and let's stay virus free!
User avatar
KnuddlMac
Tinkerer
Posts: 91
Joined: Thu Apr 06, 2017 9:32 am

Re: Build kanjitalk755 code under Mojave & Xcode 10?

Post by KnuddlMac »

Good news: I just updated to Xcode 11.4 and now this MacBook finally also compiles the code OK.
Post Reply