Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The i386 architecture is deprecated #81

Closed
ysykzheng opened this issue Nov 7, 2018 · 10 comments

Comments

Projects
None yet
9 participants
@ysykzheng
Copy link

commented Nov 7, 2018

hi, I want to use this tool for read/write ext3 disk.
but build fail.
please help.

env:

macOS mojave
xcode also is new version
the build step is follow readme.md 

error message:

Making all in tools
Making all in macosx
( cd ../../tools/macosx/prefpane; \
	  xcodebuild; \
	)
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: The i386 architecture is deprecated. You should update your ARCHS build setting to remove the i386 architecture. (in target 'fuse-ext2')
@artua

This comment has been minimized.

Copy link

commented Nov 9, 2018

the same issue here

@drizt

This comment has been minimized.

Copy link

commented Nov 13, 2018

I wrote patch for Mojave

0001-Fix-new-Xcode-compilation.patch.txt

@ipatch

This comment has been minimized.

Copy link
Contributor

commented Nov 19, 2018

@ysykzheng

I have an active fork going that should compile with the latest Xcode, ie. 10.1, as of writing this.

https://github.com/ipatch/fuse-ext2/tree/master

and have checked in a build script based on the instructions provided by @alperakcan to the dev branch of my fork that could be used to get a working copy of the fuse-ext2 toolset going with the latest versions of Xcode and macOS.

On a side note, I believe Apple has officially dropped support for i386 arch with the release of Xcode 10.x and is only supporting x86_64 for macOS development at the moment. That said, I submitted a PR #82 to this repo that is awaiting review from @alperakcan and if it gets merged in to master than a simple clone and build should suffice.

@ysykzheng

This comment has been minimized.

Copy link
Author

commented Nov 20, 2018

@ipatch thanks, your fork build success.

@ysykzheng ysykzheng closed this Nov 20, 2018

@drf5n

This comment has been minimized.

Copy link

commented Nov 28, 2018

Thanks -- but this issue should remain open until the PR is accepted or the problem is fixed otherwise.

@mrvladis

This comment has been minimized.

Copy link

commented Mar 9, 2019

Where I can get a fixed version?

@LiuZhe6

This comment has been minimized.

Copy link

commented Apr 2, 2019

I wrote patch for Mojave

0001-Fix-new-Xcode-compilation.patch.txt

Hello.How can i use this patch?

@ysykzheng

This comment has been minimized.

Copy link
Author

commented Apr 2, 2019

I wrote patch for Mojave
0001-Fix-new-Xcode-compilation.patch.txt

Hello.How can i use this patch?

plz google linux command 'diff' and 'patch'

@seetd

This comment has been minimized.

Copy link

commented Apr 8, 2019

@drizt Thanks for the patch. I think the fork by @ipatch should work as well. But just for information of applying the patch manually. This assumes the patch is against a clone of the Git repo and Git command line is installed.

1. git apply --stat [Folder to the patch file]/0001-Fix-new-Xcode-compilation.patch.txt  (Dry run to see what is being change)
2. git apply --check  [Folder to the patch file]/0001-Fix-new-Xcode-compilation.patch.txt  (Change to see no errors)
3. git apply [Folder to the patch file]/0001-Fix-new-Xcode-compilation.patch.txt (Apply the patch, only this command is actually required to do the patch)

And to complete the install of fuse-ext2 you can run

export PATH=/opt/gnu/bin:$PATH
export PKG_CONFIG_PATH=/opt/gnu/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

cd fuse-ext2
./autogen.sh
CFLAGS="-idirafter/opt/gnu/include -idirafter/usr/local/include/osxfuse/" LDFLAGS="-L/opt/gnu/lib -L/usr/local/lib" ./configure
make
sudo make install

There is also a missing mount point in the command for Testing
fuse-ext2 /tmp/fuse-ext2.test-fs.ext4 -o rw+,allow_other,uid=501,gid=20

That is fixed in the fork as well

@ibizaman

This comment has been minimized.

Copy link

commented Apr 11, 2019

@ysykzheng @LiuZhe6 Using @yalp's formula from this #67 (comment), copy the file locally and add to it after the caveat section:

  patch do
    url "https://github.com/alperakcan/fuse-ext2/files/2576060/0001-Fix-new-Xcode-compilation.patch.txt"
    sha256 "a2a8ff14f36754aead1745b4b5f53b0333376d1bf6abe659ec4eacdbb232aceb"
  end

Then, run brew install --head ./fuse-ext2.rb

In the output, you should see a line like so indicating the patch was applied:

==> Applying 0001-Fix-new-Xcode-compilation.patch.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.