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: unassignedclangb...@nondot.org Reporter: afis...@gmail.com CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs