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

GHC build leaks pbulk ar which prevents building subsequent GHC from it #12

Closed
AlainODea opened this issue Jun 23, 2014 · 3 comments
Closed

Comments

@AlainODea
Copy link

The ar command used to build GHC gets leaked in the built program:

# ghc --info | grep 'ar command'
 ,("ar command","/home/pbulk/build/lang/ghc7/work/.wrapper/bin/ar")

Should be:

# ghc --info | grep 'ar command'
 ,("ar command","ar")

I can't find how these are being created. The only workaround I can think of is putting /home/pbulk/build/lang/ghc7/work/.wrapper/bin/ in the PATH when building GHC and configuring it with --with-ar=ar.

@AlainODea
Copy link
Author

Here is an immediate workaround for those affected:

mkdir -p /home/pbulk/build/lang/ghc7/work/.wrapper/bin/
ln -s $(which ar) /home/pbulk/build/lang/ghc7/work/.wrapper/bin/ar

This puts a link to the existing ar at the point where ghc --info is reporting the one it was built with to be. With this in place I can build GHC with GHC again.

mamash pushed a commit that referenced this issue Jun 27, 2014
CHANGES:
1.8.61
    #40, allow haskell-src-exts-1.15
    Don't detect redundant Generics extension
1.8.60
    #33, add --cpp-file to preinclude a file
    #34, add back --quiet flag
    #639, don't suggest evaluate, because not all Monad's are IO
    #31, delete the elem/notElem hints
    #30, remove weird "free module" matching
    #15, add prototype grep mode
    Change to make test a separate mode
    #12, more list based suggestions
    #637, turn off QuasiQuotes by default
1.8.59
    #27, fix up directory file searching
mamash pushed a commit that referenced this issue Aug 4, 2014
Changes from http://www.github.com/batterseapower/temporary
1.2.0.3, 1.2.0.2
 - Merge pull request #12 from xich/master
   Fix temporary for exceptions >= 0.6
cornet pushed a commit to fac/pkgsrc-wip that referenced this issue Aug 8, 2014
pkgsrc changes: static -> dynamic
Changes from https://github.com/Gabriel439/Haskell-MMorph-Library
1.0.3
 - Merge pull request TritonDataCenter#12 from snoyberg/master
   transformers 0.4
mamash pushed a commit that referenced this issue Aug 30, 2014
calibre is a ebook library management application. Its features are
divided into the following categories:

* Library Management
* Format conversion (all major ebook formats can be converted from)
* Syncing to ebook reader devices
* Fetching news from the web and converting it into ebook form
* Viewing many different ebook formats
* Giving you access to your book collection over the internet using
  just a browser

TODO:

README claims qt5-5.3.x and py-qt5-5.3.x are needed, pkgsrc contains 5.2.x.

ebook-viewer dumps core for me:

#0  0x00007f7fe3dcfca0 in JSC::Yarr::checkSyntax(WTF::String const&) () from /usr/pkg/qt5/lib/libQt5Qml.so.5
#1  0x00007f7fd9c89d5c in JSC::SyntaxChecker::Expression JSC::Parser<JSC::Lexer<unsigned short> >::parseMemberExpression<JSC::SyntaxChecker>(JSC::SyntaxChecker&) () from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#2  0x00007f7fd9c8ceba in JSC::SyntaxChecker::Expression JSC::Parser<JSC::Lexer<unsigned short> >::parseAssignmentExpression<JSC::SyntaxChecker>(JSC::SyntaxChecker&) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#3  0x00007f7fd9c8949b in JSC::SyntaxChecker::Expression JSC::Parser<JSC::Lexer<unsigned short> >::parseMemberExpression<JSC::SyntaxChecker>(JSC::SyntaxChecker&) () from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#4  0x00007f7fd9c8d8c8 in JSC::SyntaxChecker::Expression JSC::Parser<JSC::Lexer<unsigned short> >::parseAssignmentExpression<JSC::SyntaxChecker>(JSC::SyntaxChecker&) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#5  0x00007f7fd9c8ec86 in JSC::SyntaxChecker::Expression JSC::Parser<JSC::Lexer<unsigned short> >::parseExpression<JSC::SyntaxChecker>(JSC::SyntaxChecker&) () from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#6  0x00007f7fd9ca7963 in JSC::SyntaxChecker::Statement JSC::Parser<JSC::Lexer<unsigned short> >::parseExpressionOrLabelStatement<JSC::SyntaxChecker>(JSC::SyntaxChecker&) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#7  0x00007f7fd9c8fb4c in JSC::SyntaxChecker::Statement JSC::Parser<JSC::Lexer<unsigned short> >::parseStatement<JSC::SyntaxChecker>(JSC::SyntaxChecker&, JSC::Identifier const*&, unsigned int*) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#8  0x00007f7fd9ca52b7 in JSC::SyntaxChecker::SourceElements JSC::Parser<JSC::Lexer<unsigned short> >::parseSourceElements<(JSC::SourceElementsMode)1, JSC::SyntaxChecker>(JSC::SyntaxChecker&) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#9  0x00007f7fd9c8fb0e in JSC::SyntaxChecker::Statement JSC::Parser<JSC::Lexer<unsigned short> >::parseStatement<JSC::SyntaxChecker>(JSC::SyntaxChecker&, JSC::Identifier const*&, unsigned int*) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#10 0x00007f7fd9c8f802 in JSC::SyntaxChecker::Statement JSC::Parser<JSC::Lexer<unsigned short> >::parseForStatement<JSC::SyntaxChecker>(JSC::SyntaxChecker&) () from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#11 0x00007f7fd9c8fce5 in JSC::SyntaxChecker::Statement JSC::Parser<JSC::Lexer<unsigned short> >::parseStatement<JSC::SyntaxChecker>(JSC::SyntaxChecker&, JSC::Identifier const*&, unsigned int*) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#12 0x00007f7fd9c8ffcf in JSC::SyntaxChecker::SourceElements JSC::Parser<JSC::Lexer<unsigned short> >::parseSourceElements<(JSC::SourceElementsMode)0, JSC::SyntaxChecker>(JSC::SyntaxChecker&) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#13 0x00007f7fd9ca4cb2 in bool JSC::Parser<JSC::Lexer<unsigned short> >::parseFunctionInfo<(JSC::FunctionRequirements)0, false, JSC::SyntaxChecker>(JSC::SyntaxChecker&, JSC::Identifier const*&, JSC::SyntaxChecker::FormalParameterList&, JSC::SyntaxChecker::FunctionBody&, unsigned int&, unsigned int&, int&, unsigned int&) () from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#14 0x00007f7fd9c88f18 in JSC::SyntaxChecker::Expression JSC::Parser<JSC::Lexer<unsigned short> >::parseMemberExpression<JSC::SyntaxChecker>(JSC::SyntaxChecker&) () from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#15 0x00007f7fd9c8ceba in JSC::SyntaxChecker::Expression JSC::Parser<JSC::Lexer<unsigned short> >::parseAssignmentExpression<JSC::SyntaxChecker>(JSC::SyntaxChecker&) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#16 0x00007f7fd9c8e542 in JSC::SyntaxChecker::Statement JSC::Parser<JSC::Lexer<unsigned short> >::parseVarDeclaration<JSC::SyntaxChecker>(JSC::SyntaxChecker&) () from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#17 0x00007f7fd9c8fcd5 in JSC::SyntaxChecker::Statement JSC::Parser<JSC::Lexer<unsigned short> >::parseStatement<JSC::SyntaxChecker>(JSC::SyntaxChecker&, JSC::Identifier const*&, unsigned int*) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#18 0x00007f7fd9c8ffcf in JSC::SyntaxChecker::SourceElements JSC::Parser<JSC::Lexer<unsigned short> >::parseSourceElements<(JSC::SourceElementsMode)0, JSC::SyntaxChecker>(JSC::SyntaxChecker&) ()
   from /usr/pkg/qt5/lib/libJavaScriptCore.so.1
#19 0x00007f7fd9c91c5d in bool JSC::Parser<JSC::Lexer<unsigned short> >::parseFunctionInfo<(JSC::FunctionRequirements)0, false, JSC::ASTBuilder>(JSC::ASTBuilder&, JSC::Identifier const*&, JSC::ASTBuilder::FormalParameterList&, JSC::ASTBuilder::FunctionBody&, unsigned int&, unsigned int&, int&, unsigned int&) () from /usr/pkg/qt5/lib/libJavaScriptCore.so.1

Side effect of the above?
@jperkin
Copy link
Collaborator

jperkin commented Sep 1, 2014

This is fixed in upstream pkgsrc and will be available in pkgsrc-2014Q3, thanks!

@jperkin jperkin closed this as completed Sep 1, 2014
@AlainODea
Copy link
Author

Thank you @jperkin. One step closer to continuously releasable GHC :)

mamash pushed a commit that referenced this issue Sep 28, 2014
Network Security Services (NSS) is a set of libraries designed to
support cross-platform development of security-enabled server
applications.  Applications built with NSS can support SSL v2 and
v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3
certificates, and other security standards.

This package contains the hg version.
jperkin pushed a commit that referenced this issue Nov 10, 2015
Changes:

1.2.0   2015-08-14
        - new unibi_var_t helper functions
          (unibi_var_from_{int,str}, unibi_{int,str}_from_var)

1.1.6   2015-07-23
        - fix nested conditionals

1.1.5   2015-07-17
        - fix invalid memory access in %P/%g (gh #14)
        - avoid badly formatted lines in unibi_{g,s}et_ext_{bool,num,str}_name
          man pages (gh PR #12)
jperkin pushed a commit that referenced this issue Sep 20, 2018
pkgsrc changes:
 - Remove all patches, all merged upstream/no longer needed

Changes:
1.0.11
------
 - Added parameter to set the content type in reply() and comment() (#12).
 - Added parameter Format to search() (#17).
 - Tests: Update to new demo instance, fixing tests.
jperkin pushed a commit that referenced this issue Nov 3, 2019
* Add the flag -cs charser to specify a character set for text or HTML. The
  default character set is utf-8.
  Fix Issue #12
jperkin pushed a commit that referenced this issue May 25, 2021
* Convert to use released tarball from GitHub.
* Fix build.
* Update DESCR.
* Take MAINTAINERship.

Changelog:
1.7.0
    Allow building without manpage
    Allow building against musl
    Fix memory corruption error
    Fix decompressing large files on 32-bit systems
    Avoid unaligned memory access
    Fix warnings with recent compilers
    Use optimized endian swapping functions on macOS

1.0.6
    fixes large file support for listing

1.0.5
    add htole64 and le64toh on glibc < 2.9

1.0.4
    Include man page in release tarball, fixed #50

1.0.3
    complete autotools build, see README.md for build instructions, see #37
    large-file support for 32-bit systems, see #26
    creates output file with permissions of input file (if possible, i.e. not reading from stdin), see #15
    better error messages on incorrect input path
    list main differences between pixz and xz in README
    fix issue with extreme (-e) command line option parsing, see #12
    adds keep input (-k) command line option, see #14
jperkin pushed a commit that referenced this issue Aug 23, 2021
2.1.1   2021-04-04
        - Makefile: fix undefined references with static builds (#19)

2.1.0   2020-02-11
        - Makefile: use "-f" with prove always (to show failed tests) (#13)
        - Stop searching in further dirs on errors except ENOENT #12
        - Makefile: do not rebuild t/static_%.c with updated gen-static-test
        - Add CMakeLists.txt and support for MSVC (#3)
        - Relax checks for extended capability to support new format (#5)
        - Makefile: use -Og with DEBUG=1 (#7)
        - unibi_from_mem: fix [clang-analyzer-deadcode.DeadStores] (#8)
        - Makefile: revisit regenerate-tests rule (#6)
        - unibi_from_term: handle $TERMINFO as curses does #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants