<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - invalid llvm.linker.options when using module.modulemap with link specification"
href="https://bugs.llvm.org/show_bug.cgi?id=39588">39588</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>invalid llvm.linker.options when using module.modulemap with link specification
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++2a
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>f.b.brokken@rug.nl
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Dear maintainers,
When specifying a 'link' option in module.modulemap I received:
--------------------------------------------------------------------------
clang++ -fmodules --std=c++2a -Wall -O2 -fdiagnostics-color=never -c -o
tmp/main.o main.cc
fatal error: error in backend: invalid llvm.linker.options
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 7.0.0-6 (tags/RELEASE_700/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/main-a61967.cpp
clang: note: diagnostic msg: /tmp/main-a61967.cache
clang: note: diagnostic msg: /tmp/main-a61967.sh
clang: note: diagnostic msg:
********************
Fatal: system - failure of system call (status 17920)
-----------------------------------------------------------------------
The requested files exceed the 1000 KB limit for attachments (it is 3.1 MB),
but they are available in the file bugdata.tgz which can be downloaded from
<a href="https://www.icce.rug.nl/tmp/bugdata.tgz">https://www.icce.rug.nl/tmp/bugdata.tgz</a>
The used module.modulemap file was:
module extra
{
requires cplusplus
link "bobcat"
header "module/module.h"
header "extra/extra.h"
}
The tree showing the involved files:
.
├── extra
│ ├── extra.h
│ └── extra.ih
├── main.cc
├── module
└── module.ih
Compilation of the program without using the -fmodules option produces
no errors. In this case the program was compiled using:
clang++ --std=c++2a -Wall -O2 -fdiagnostics-color=never -c -o tmp/main.o
main.cc
chdir tmp
clang++ --std=c++2a -Wall -O2 -fdiagnostics-color=never -o bin/binary main.o
-lbobcat -s
If there are any questions, please let me know.
Kind regards,
Frank Brokken.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>