Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Crash during global initialization #36567

Open Quuxplusone opened 6 years ago

Quuxplusone commented 6 years ago
Bugzilla Link PR37594
Status REOPENED
Importance P normal
Reported by Brian Vandenberg (phantall@gmail.com)
Reported on 2018-05-25 14:03:58 -0700
Last modified on 2020-08-11 12:43:34 -0700
Version 6.0
Hardware Sun Solaris
CC brad@comstyle.com, efriedma@quicinc.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments tblgen-crash.txt (2310 bytes, text/plain)
Blocks
Blocked by
See also
I'm building on Solaris 10 / sparcv9 hardware.

I built with the following:

    cmake ../src/llvm \
    -DCMAKE_C_COMPILER=gcc-4.9.2 \
    -DCMAKE_CXX_COMPILER=g++-4.9.2 \
    -DGCC_INSTALL_PREFIX=$(dirname $(dirname $(which gcc-4.9.2))) \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo

    make -j32

I also tried building with gcc 7.2.0.  In both cases when clang-tblgen and llvm-
tblgen execute they crash while executing constructors for what I assume is
code related to parsing command-line arguments.

The machine I'm building on isn't connected to a network and I don't have the
means to copy build logs off to attach, so I've hand-typed some info I hope
will be useful (attachment forthcoming).
Quuxplusone commented 6 years ago

Attached tblgen-crash.txt (2310 bytes, text/plain): tblgen crash analysis

Quuxplusone commented 6 years ago
From include/llvm/Support/Threading.h:

// std::call_once from libc++ is used on all Unix platforms. Other
// implementations like libstdc++ are known to have problems on NetBSD,
// OpenBSD and PowerPC.
Quuxplusone commented 6 years ago

hm ... that reminds me, I forgot to write up a bug for libcxx/libcxxabi not building in sparc/solaris.

Quuxplusone commented 4 years ago

Solaris 11.4 ships with LLVM/Clang 6. There are also prebuilt copies of the latest LLVM/Clang and AFAIK it should be possible to build it out of the src tree nowadays on SPARC.

Quuxplusone commented 4 years ago

Brad,

As I noted in the original bug report, I'm using Solaris 10, not 11.

Quuxplusone commented 4 years ago

Ok, if the requirement is for 10 specifically then you should at least try to build the latest and provide an update as to what the current status is. All of the work in the last 2 years has been towards 11.