Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update crosstool-ng 1.18.0 - Remove Caveats #18133

Closed
wants to merge 1 commit into from

4 participants

@nandub

To avoid the following error I decided to remove the caveats to avoid confusion:

[INFO ]  Installing libelf for host
[EXTRA]    Configuring libelf
[ERROR]    configure: error: no declaration for Elf32_Dyn
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing libelf for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@216]
[ERROR]  >>        called from: do_libelf_backend[scripts/build/companion_libs/200-libelf.sh@118]
[ERROR]  >>        called from: do_libelf_for_host[scripts/build/companion_libs/200-libelf.sh@60]
[ERROR]  >>        called from: do_companion_libs_for_host[scripts/build/companion_libs.sh@36]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/local/Cellar/crosstool-ng/1.18.0/share/doc/crosstool-ng/ct-ng.1.18.0/B - Known issues.txt'
[ERROR]   
[ERROR]  (elapsed: 10:28.00)
[10:28] / make: *** [build] Error 1
@cooljeanius

Adding libelf as a dependency could be problematic, because having libelf active can cause glib to fail to build

@adamv
Owner

Does libelf need to be keg-only then?

@cooljeanius

idk, I'm just basing this off of what MacPorts does in their glib2 portfile:

# configure checks for libelf, and if found, the build fails; see #33948.
conflicts_build             libelf

link to the referenced issue: http://trac.macports.org/ticket/33948

@jacknagel jacknagel was assigned
@jacknagel
Owner

Can someone explain the problem that is being solved and why this didn't just depend on libelf before? Bonus points for links to documentation

@jacknagel jacknagel closed this pull request from a commit
@nandub nandub crosstool-ng: remove caveats and add libelf dep
Closes #18133.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
3ced462
@jacknagel jacknagel closed this in 3ced462
@ekarulf ekarulf referenced this pull request from a commit in ekarulf/homebrew
@nandub nandub crosstool-ng: remove caveats and add libelf dep
Closes #18133.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
dbe08ed
@rajeeja rajeeja referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@brandt brandt referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@dshean dshean referenced this pull request from a commit in dshean/homebrew
@nandub nandub crosstool-ng: remove caveats and add libelf dep
Closes #18133.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
277ffe0
@draftycode draftycode referenced this pull request from a commit in draftycode/homebrew
@nandub nandub crosstool-ng: remove caveats and add libelf dep
Closes #18133.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
02f5851
@shelhamer shelhamer referenced this pull request from a commit
@nandub nandub crosstool-ng: remove caveats and add libelf dep
Closes #18133.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
c5106d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 10 deletions.
  1. +1 −10 Library/Formula/crosstool-ng.rb
View
11 Library/Formula/crosstool-ng.rb
@@ -11,6 +11,7 @@ class CrosstoolNg < Formula
depends_on 'gnu-sed'
depends_on 'gawk'
depends_on 'binutils'
+ depends_on 'libelf'
env :std
@@ -37,16 +38,6 @@ def install
def test
system "#{bin}/ct-ng version"
end
-
- def caveats; <<-EOS.undent
- If building a cross compiler your may expirience the following error:
- error: elf.h: No such file or directory
-
- To fix it, perform the following:
- curl https://raw.github.com/gist/3769372/98e0a084470d2d6be7b4b61551ef00d44c682b4a/elf.h > elf.h
- cp -p elf.h /usr/local/include/
- EOS
- end
end
__END__
Something went wrong with that request. Please try again.