How can I compile JonesForth on OS X v10.14 (Mojave)? - macos

Attempting to compile JonesForth on OS X, it throws:
jonesforth.S:1154:10: fatal error: 'asm/unistd.h' file not found".
So I tried this advice for Linux, but it still complains.
This PowerPC port throws other exceptions, like:
invalid instruction mnemonic 'bctr'
unexpected token in memory operand
Is there an OS X port around?

This port of JonesForth compiles on OS X.

Related

Install Qt4 on macOS Big Sur

I want to install qt4 on my mac, but whenever I type in brew install qt#4 I get the error
x86_64cpuid.s:273:7: error: invalid token in expression
cmpq $0,%rax
^
x86_64cpuid.s:273:7: error: invalid operand
cmpq $0,%rax
^
x86_64cpuid.s:274:9: error: invalid token in expression
cmoveq %rcx,%rax
^
x86_64cpuid.s:274:9: error: invalid operand
cmoveq %rcx,%rax
^
I tried brew install openssl#1.0 and got the same errors.
I tried to follow this instructions here from the Qt doc, but I get two errors while running make.
../../include/QtCore/../../src/corelib/arch/qatomic_powerpc.h:126:36: error:
invalid output constraint '=&b' in asm
: [originalValue] "=&b" (originalValue),
^
../../include/QtCore/../../src/corelib/arch/qatomic_powerpc.h:143:36: error:
invalid output constraint '=&b' in asm
: [originalValue] "=&b" (originalValue),
^
From filename qatomic_powerpc.h I can guess that it tries to build powerpc binaries, while that architecture has been dropped since 10.6 ‘Snow Leopard’.
While I imagine it is possible to patch Qt 4 sources to make it buildable on Big Sur, I'd like to ask what do you need it for? Most likely a better approach is to port the code to Qt 5.15.2.
Note there is a resolved bug report about that: https://trac.macports.org/ticket/61886

Getting error: 'SCHED_IDLE' undeclared when trying to compile cyclictest

When I try and compile Cyclictest, I get the following:
error: 'SCHED_IDLE' undeclared
I am using linux kernel 3.14 from the following:
ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4700-linux/cross-toolchains/arm-2008q3.tar.gz
and cross-compiling for my board. I am using the following from the command line, but it fails every time. According to what I read, the 3.14 kernel and greater should have the Scheduler, so not sure why it is failing.
export CROSS_COMPILE=/opt/toolchains/arm-2008q3/bin/arm-none-linux-gnueabi-gcc
Thoughts?

Go get error: cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

I have been receiving a strange error when trying to import external libraries/packages in Go when running any go get command I get the forllowing error
# github.com/mattn/go-sqlite3
cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
I have tried updating mingw
mingw-get update
but I still get the same error, what can I do to fix this issue?
Thanks

ld and clang error in RInside for Mac OSX

I want to try out RInside for Mac OSX. I downloaded RInside from source using Terminal and then went into the /inst/examples/standard and tried to run make, as indicated in the answer to this thread: RInside on Mac OS X
However, the first error I received was fatal error: 'RInside.h' file not found. I manually found this file and put it into the /inst/examples/standard directory and ran make again. I received another fatal error for another .h file so I manually found the requisite file and inserted it into this standard directory. Anyway, after doing that a few more times, all dependencies were taken care of, then I ran make again and received the following very strange error:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I also tried using clang++ -stdlib=libstdc++ in place of g++ (since RInside on Mac OS X says that g++ won't work), but it did not help either (i.e., I received the same architecture errors).
I am stuck here...
UPDATE:
As per Dirk Eddelbuettel's advice, I tried installing XTools (Run Windows X System on OSX), but I received the following error: "Xtools.pkg" is damaged and can't be opened. You should eject the disk image."
I am concerned that running a simple "hello world" script as provided on the RInside webpage (http://dirk.eddelbuettel.com/code/rinside.html) can be this convoluted on the Mac as to demand external installs and miscellaneous configurations. Hence, there must be a more straightforward way to run RInside on the Mac OS X.

D Windows programming linker error

While trying to compile this program with an up-to-date compiler: https://github.com/AndrejMitrovic/DWinProgramming/blob/master/Samples/Chap03/HelloWin/HelloWin.d
I get this linker error: Error 42: Symbol Undefined _D5win327winuser13CreateWindowWFPxuPxukiiiiPvPvPvPvZPv
That's a mangled name, so the problem isn't the Windows libraries themselves... my guess is the dmd_win32.lib file from here https://github.com/AndrejMitrovic/DWinProgramming is needed too.
Try downloading that and adding it to your compile command line. dmd Hellowin.d dmd_win32.lib

Resources