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

Travis: Linuxbrew failing to build glibc #413

Closed
dunn opened this issue Aug 29, 2016 · 9 comments

Comments

Projects
None yet
2 participants
@dunn
Copy link
Collaborator

commented Aug 29, 2016

The Linux runs on Travis have been failing when it has to build glibc: https://travis-ci.org/Homebrew/homebrew-emacs/jobs/155672549

cc @rwhogg any ideas?

@dunn

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 29, 2016

Looks similar to Homebrew/linuxbrew-core#231 (comment); @sjackman what was the problem in that case?

@rwhogg

This comment has been minimized.

Copy link
Contributor

commented Aug 29, 2016

This thread seems to suggest that using the CFLAG -march=native with an old GCC (4.6 in both their case and ours) on a new processor (a Haswell in our case) can cause these sorts of errors because the compiler doesn't recognize what the CPU's actually capable of.

dunn added a commit to dunn/blockparty that referenced this issue Aug 29, 2016

@dunn

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 29, 2016

OK looks like we can fix it with something like this: https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements

I'm not sure if we should be setting the CXX variable for the entire build or not, though.

@rwhogg

This comment has been minimized.

Copy link
Contributor

commented Aug 29, 2016

Yeah, that should probably work.

However, you might also want to just set the Linuxbrew installation directory to /home/linuxbrew/.linuxbrew. At the expense of some extra verbosity in the Travis file, you'll be able to use a bottle for everything we've bottled - including the vast majority of the X.Org stuff, which should really speed up your builds.

We recently discovered that Emacs defaults to building with X11, even if --without-x11 is specified, so you'll probably be building X11 on every single build.

The steps to do that are at https://github.com/Linuxbrew/homebrew-core/blob/master/.travis.yml#L16-L22. I'm happy to help set it up next week if you'd like, but not this week, since I'm taking a holiday from Homebrew to focus on personal stuff.

@dunn

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 29, 2016

Ah, that's good to know, thanks! I'll try to take a crack at it during the week.

@dunn dunn self-assigned this Aug 29, 2016

@rwhogg

This comment has been minimized.

Copy link
Contributor

commented Aug 30, 2016

We recently discovered that Emacs defaults to building with X11, even if --without-x11 is specified, so you'll probably be building X11 on every single build.

My mistake: Homebrew/homebrew-core#3531 removed X11 support and added a hardcoded --without-x into the formula. It will still install linuxbrew/xorg/xorg on every single build, but only because it's now a recommended dependency of cairo (which in turn comes in through the dependency on librsvg). It won't attempt to link to it.

@dunn dunn closed this in 1c0d63d Sep 1, 2016

@dunn

This comment has been minimized.

Copy link
Collaborator Author

commented Sep 1, 2016

There's also this, which I'm not sure the cause of: https://travis-ci.org/Homebrew/homebrew-emacs/builds/156804249#L2205

@rwhogg

This comment has been minimized.

Copy link
Contributor

commented Sep 1, 2016

There's also this, which I'm not sure the cause of: https://travis-ci.org/Homebrew/homebrew-emacs/builds/156804249#L2205

Probably fixed by 9102968

@dunn

This comment has been minimized.

Copy link
Collaborator Author

commented Sep 1, 2016

Haha, hope so!

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.