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

Running './configure' on external hard drive fails #16478

Closed
dannmat opened this issue Jul 28, 2019 · 12 comments
Closed

Running './configure' on external hard drive fails #16478

dannmat opened this issue Jul 28, 2019 · 12 comments
Labels

Comments

@dannmat
Copy link

dannmat commented Jul 28, 2019

When cloning Bitcoin Core and trying to configure/build, I get the error:
./configure: line 1: syntax error near unexpected token ('

Building from the boot disk works as expected, but if I replicate these steps exactly on my external hard drive, I get the above error

I expected the configure file to generate a makefile

Try building with MacOS 10.15 beta (build 19A512f) on an external 1TB hard drive.

Running the latest clone from GitHub (latest commit 94df084)

2015 MacBook Pro 15"

@fanquake fanquake added the macOS label Jul 28, 2019
@maflcko
Copy link
Member

maflcko commented Jul 28, 2019

Does the path have spaces in it?

@dannmat
Copy link
Author

dannmat commented Jul 28, 2019

Tried again without any spaces in the path and still the same error.
The drive is partitioned as exFat.

@dannmat
Copy link
Author

dannmat commented Jul 29, 2019

The error is also including:
./configure: line 1: m4trace:configure.ac:12: -1- AC_INIT([Bitcoin Core], [0.18.99], [https://github.com/bitcoin/bitcoin/issues], [bitcoin], [https://bitcoincore.org/])'

I have tried running ./configure --without-gui however this brings back the same result.

@maflcko
Copy link
Member

maflcko commented Jul 29, 2019

What does the config.log say?

@maflcko
Copy link
Member

maflcko commented Jul 29, 2019

And have you (re-) run ./autogen.sh?

@dannmat
Copy link
Author

dannmat commented Jul 29, 2019

I have re-run that ./autogen.sh. I have also tried completely wiping the drive and starting fresh but to no avail. Following the same steps on my boot drive works perfectly however.
It fails when I'm running ./configure (I'm following Bitcoin Core MacOS tutorial )

I can't find any config.log or debug.log anywhere in the directory?

@maflcko
Copy link
Member

maflcko commented Jul 29, 2019

Hmm, maybe the ./config.log isn't created yet. So what is the full output of ./autogen.sh && ./configure?

@laanwj
Copy link
Member

laanwj commented Jul 30, 2019

The drive is partitioned as exFat

(ex)Fat is a very minimal file system, it likely misses some metadata, such as file permissions (especially +x) necessary to do the build.

@dannmat
Copy link
Author

dannmat commented Jul 30, 2019

Running ./autogen.sh give me the following output:

matt@Matts-MacBook-Pro bitcoin % ./autogen.sh 
matt@Matts-MacBook-Pro bitcoin % 

No errors occur, however when I then run ./configure or ./configure --without-gui, I get the following output:

matt@Matts-MacBook-Pro bitcoin % ./configure
./configure: line 1: syntax error near unexpected token `('
./configure: line 1: `m4trace:configure.ac:12: -1- AC_INIT([Bitcoin Core], [0.18.99], [https://github.com/bitcoin/bitcoin/issues], [bitcoin], [https://bitcoincore.org/])'

I have tried re-formatting the drive to FAT32 but still get the same issue.

I will try on a different Mac tonight and try to replicate the issue.

@laanwj
Copy link
Member

laanwj commented Jul 30, 2019

FAT32 has the same problem, it's an older revision of FAT. You need a 'real' file system. FAT is only good for storing photo's and media, basically, it's not useful for development work.

@dannmat
Copy link
Author

dannmat commented Jul 30, 2019

I formatted using Mac OS Extended, and this works flawlessly now. Thanks for your help.

Is this something that should be looked into or is it beyond control?

@fanquake
Copy link
Member

fanquake commented Aug 4, 2019

@dannmat This is likely something out of our control. Thanks for following up.

@fanquake fanquake closed this as completed Aug 4, 2019
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants