Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Problem with brew install bsdmake #12457

Closed
dentarg opened this issue May 27, 2012 · 14 comments
Closed

Problem with brew install bsdmake #12457

dentarg opened this issue May 27, 2012 · 14 comments

Comments

@dentarg
Copy link
Contributor

dentarg commented May 27, 2012

When doing brew install -v bsdmake I get:

8 errors generated.
make: *** [pmake] Error 1
==> Exit Status: 2
https://github.com/mxcl/master/blob/master/Library/Formula/bsdmake.rb#L46
==> Build Environment
CPU: 8-core 64-bit sandybridge
MacOS: 10.7.4-x86_64
Xcode: 4.3.2
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -D__FBSDID=__RCSID -mdynamic-no-pic
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j8
Error: Failed executing: make -f Makefile.dist (bsdmake.rb:46)

Full output from brew install -v bsdmake, brew --config and brew doctor can be found at https://gist.github.com/2805434.

I also noted that the URL below "Exit Status" is wrong (doesn't even mention homebrew).

@2bits
Copy link
Contributor

2bits commented May 28, 2012

@jacknagel I can compile bsdmake on my Lion Core i5 nehalem, but it fails on the user's sandybridge. Because it only compiles a single file uses a single compile command, this looks like it might have something to do with CFLAGS. My system used

-Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -D__FBSDID=__RCSID -mdynamic-no-pic

@dentarg Would you please try to brew this in debug mode, and when it fails and you shell out to the debug command prompt, try to issue the compile command again but use my CFLAGS? Let us know how it works:

brew install -vd bsdmake
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -D__FBSDID=__RCSID -mdynamic-no-pic -DDEFSHELLNAME=\"sh\" -I. -c *.c

@jacknagel
Copy link
Contributor

It compiles on 10.6 with clang 3.0 also.

@2bits
Copy link
Contributor

2bits commented May 28, 2012

Ok I guess that's not it. I'm stumped.

@jacknagel
Copy link
Contributor

I only meant to add a data point, though my CFLAGS are identical to the OP's.

@jwhitmire
Copy link

I get this error when trying to build it as well. FWIW, I'm using clang 3.1:

Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix

I tried the suggestion from @2bits above, but still get the same error. Is there an easy way to go back to clang 3.0 to try this?

@jacknagel
Copy link
Contributor

I'm guessing you have go installed. The problem is that the go formula installs a conflicting ar.h header file that is then picked up during builds. This has been reported to MacPorts and upstream to go:

http://trac.macports.org/ticket/30203
http://code.google.com/p/go/issues/detail?id=2407

The upshot is that the go header files do not need to be installed at all. I've added a temporary hack to the go formula to remove everything under include.

(The go formula really needs some work. It installs everything into prefix and then does the build there; it should be modified to do the build in the temporary build directory and then install stuff.)

@jacknagel
Copy link
Contributor

So the solution here is to brew update, reinstall go, and then install bsdmake.

@jwhitmire
Copy link

Excellent. I didn't need go installed for any particular reason (another instance of my intentions of playing with something never coming to fruition). I uninstalled go and bsdmake installed without issue. Thanks for the quick resolution of this issue.

@dentarg
Copy link
Contributor Author

dentarg commented May 29, 2012

I also had go installed. Works now. Thanks!

@fd
Copy link
Contributor

fd commented May 30, 2012

Removing the header files breaks go's ability to install the cross compilers. The headers should not be removed form the keg. Instead they should not be symlinked.

@adamv
Copy link
Contributor

adamv commented May 30, 2012

We should install Go to "libexec" and then symlink out the things that matter, unless there is a ton of "stuff that matters". Haven't looked into it yet.

@fd
Copy link
Contributor

fd commented May 30, 2012

well, go dist expects the headers to exist in $HOMEBREW_PREFIX/Cellar/go/1.0.1/include. Maybe the headers can be moved out of the way before linking the keg and then be moved back.

@adamv
Copy link
Contributor

adamv commented May 30, 2012

Let's open a new issue.

@fd
Copy link
Contributor

fd commented May 30, 2012

done: #12507

chrismetcalf pushed a commit to chrismetcalf/homebrew that referenced this issue Jun 18, 2012
Closes Homebrew#12457.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
Closes Homebrew#12457.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
Closes Homebrew#12457.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants