During the make, I get clang error: unknown argument

About SheepShaver, a PPC Mac emulator for Windows, MacOS X, and Linux that can run System 7.5.3 to MacOS 9.0.4.

Moderators: Cat_7, Ronald P. Regensburg, ClockWise

Post Reply
v193r
Space Cadet
Posts: 1
Joined: Mon Dec 01, 2014 6:25 pm

During the make, I get clang error: unknown argument

Post by v193r »

It first told me that my automake was outdated so I updated automake and autoconf. Then it told me I needed x11 so I installed xquartz. And now its giving me these errors which I was unable to google. I am running OS X 10.10

Code: Select all

g++ -I../MacOSX/Launcher -I../kpx_cpu/include -I../kpx_cpu/src -DUSE_JIT -I../include -I. -I../slirp -DHAVE_CONFIG_H -D_REENTRANT -DDATADIR=\"/usr/local/share/SheepShaver\" -g -O2  -I/usr/X11/include -mdynamic-no-pic  -fomit-frame-pointer -fno-align-functions -finline-functions -finline-limit=10000 -fno-exceptions -g0 -fno-reorder-blocks -fno-optimize-sibling-calls -c ../kpx_cpu/src/cpu/jit/basic-dyngen-ops.cpp -o obj/basic-dyngen-ops.o
clang: error: unknown argument: '-finline-limit=10000'
clang: error: unknown argument: '-fno-reorder-blocks'
make: *** [obj/basic-dyngen-ops.o] Error 1
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: During the make, I get clang error: unknown argument

Post by Ronald P. Regensburg »

Exactly what are you trying to do?

SheepShaver cannot be compiled in OSX 10.10. The latest OSX version in which SheepShaver can be compiled is OSX 10.6 (Snow Leopard).

See: http://www.emaculation.com/doku.php/com ... r_basilisk
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: During the make, I get clang error: unknown argument

Post by adespoton »

To clarify, even if you get all the tools to build and link the project, the resulting binary will not function, as various protective features rolled into GCC post-4.5 will prevent SheepShaver's unorthodox methods of emulation. And yes, this does mean that running SheepShaver opens your system up to a number of malicious attack vectors while it is running. However, I doubt anyone is targeting SheepShaver exploits as a common attack vector on OS X, Linux or Windows, so the build via 10.6 method should be safe enough ;)
neozeed
Apple Corer
Posts: 293
Joined: Sun Aug 25, 2013 3:25 am
Location: Hong Kong

Re: During the make, I get clang error: unknown argument

Post by neozeed »

I tried some retro GCC-4.2 (gcc-42-5666.3-darwin11.pkg), but the linker wasn't having any of Sheep's insanity.

Not that I don't mind having 10.6 kicking around, I just don't like I can't figure out why my pcap stuff bombs on Sheep, but works fine on Basilisk II...
don't do today what you can put off until tomorrow.
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: During the make, I get clang error: unknown argument

Post by adespoton »

What errors was the linker throwing, exactly? It seems odd that the linker would be OS-dependent (sdk dependent I could see).
Post Reply