[llvm-bugs] [Bug 27160] New: Clang 3.7 and 3.8: `undefined reference to (non-existent procedure)` error in C code
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 31 07:06:53 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27160
Bug ID: 27160
Summary: Clang 3.7 and 3.8: `undefined reference to
(non-existent procedure)` error in C code
Product: clang
Version: unspecified
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: release blocker
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: afiskon at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
FreeBSD 10.2-RELEASE
project: PostgreSQL
How to reproduce an issue:
CC=/usr/local/bin/clang38 CFLAGS="-O0 -g" LDFLAGS="-lelf" ./configure
--enable-cassert --enable-debug --enable-dtrace && gmake clean && gmake -j2 -s
Ignore `passing 'const char *' to parameter of type 'char *' discards
qualifiers` warnings - it's an 8-years old bug in DTrace.
The actual problem is that build fails with following errors:
```
/usr/home/eax/postgresql-src/src/backend/access/transam/xact.c:501: undefined
reference to `bort'
access/transam/xact.o: In function `CommandCounterIncrement':
/usr/home/eax/postgresql-src/src/backend/access/transam/xact.c:935: undefined
reference to `bort'
/usr/home/eax/postgresql-src/src/backend/access/transam/xact.c:941: undefined
reference to `bort'
access/transam/xact.o: In function `StartTransactionCommand':
/usr/home/eax/postgresql-src/src/backend/access/transam/xact.c:2708: undefined
reference to `bort'
access/transam/xact.o: In function `CommitTransactionCommand':
/usr/home/eax/postgresql-src/src/backend/access/transam/xact.c:2739: undefined
reference to `bort'
```
There is no such procedure or variable in the whole project. My guess is that
it is "abort" without an "a".
Same issue reproduces with CLang 3.7. Same project compiles just find by GCC
4.9 and CLang 3.4.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160331/c12b7587/attachment.html>
More information about the llvm-bugs
mailing list