xpack / xpack-build-box

XBB (xPack Build Box) - tools to build the xPack binary distributions
MIT License
4 stars 3 forks source link

build xbb-3.4 on mac os #4

Open yy172 opened 1 year ago

yy172 commented 1 year ago

The system environment is mac10.13.6, and the xcode version is 10.1

This command executes normally, caffeinate bash "${HOME}/Work/xpack-build-box.git/macos/build-xbb-bootstrap-v3.4.sh

The following error occurs when executing this command command : caffeinate bash "${HOME}/Work/xpack-build-box.git/macos/build-xbb-v3.4.sh" error: cp: cannot lseek '/System/Library/Frameworks/Tk.framework/Resources/Wish.app/Contents/MacOS/Wish': Inappropriate ioctl for device make[1]: [Makefile:194: Git Gui.app] Error 1 make: [Makefile:2073: all] Error 2

Can you give me some advice? thanks

ilg-ul commented 1 year ago

I'm not sure, but it might require the Command Line Tools, not Xcode.

Anyway, why do you need v3.4?

It was deprecated long time ago, and the current build scripts no longer use it.

yy172 commented 1 year ago

My goal is to build riscv none elf gcc xpack v12.2.01. When running the script, it shows that an XBB environment is required. Therefore, I used the script build xbb v3.4. sh in xpack build box/mac os. If this is an error, what should I do? Thank you and look forward to your reply

ilg-ul commented 1 year ago

v12.2.0-1 was indeed using the old XBB environment :-(

The reason this environment was replaced by XBB v5.x was exactly the complexity and the difficulty to create and manage it.

If you really want v12.2.0-1, try to remove xcode and install the command line tools. But I cannot guarantee it'll work, you need an absolute pristine environment, without anything else installed, like HomeBrew or MacPorts.

If your need is v12.2.0 (not specifically v12.2.0-1), I suggest you go for the latest v12.2.0-3, which uses the new build environment:

An even better choice would be v12.3.0-1, just released, or even v13.2.0-1.

yy172 commented 1 year ago

Thank you very much. I'll give it a try.

ilg-ul commented 1 year ago

Just curious, why do you need to rebuild the toolchain and not use the provided binaries?