Ticket #32556 (closed defect: fixed)
iverilog @0.9.4 fails to build with clang
| Reported by: | apanteleev87@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | clang | Cc: | ryandesign@… |
| Port: | iverilog |
Description
Error message from the log:
:info:build /Developer/usr/bin/clang -I. -I.. -I. -I./.. -no-cpp-precomp -I/opt/local/include -DHAVE_CONFIG_H -fPIC -Wall -Wshadow -no-cpp-precomp -pipe -O2 -arch x86_64 -MD -c io_print.c -o io_print.o
:info:build clang: warning: argument unused during compilation: '-no-cpp-precomp'
:info:build clang: warning: argument unused during compilation: '-no-cpp-precomp'
:info:build getsimtime.c:88:29: error: only weak aliases are supported on darwin
:info:build __attribute__ ((weak, alias ("tf_getlongtime")));
:info:build ^
:info:build 1 error generated.
Full log is attached. The port did work before upgrading the OS to 10.7. I reinstalled MacPorts system and all the ports after the OS upgrade.
Attachments
Change History
comment:1 follow-up: ↓ 2 Changed 17 months ago by ryandesign@…
I see you're using Clang. Does using a different compiler help?
comment:2 in reply to: ↑ 1 Changed 17 months ago by apanteleev87@…
Thanks. Yes, both llvm-gcc-4.2 and apple-gcc-4.2 work. Can one of these be specified as the default for this port?
comment:3 follow-up: ↓ 4 Changed 17 months ago by ryandesign@…
- Keywords clang added
- Cc ryandesign@… added
- Summary changed from iverilog @0.9.4 fails to build on MacOS 10.7.2 to iverilog @0.9.4 fails to build with clang
I updated the port to 0.9.5. Did that help or does it still need llvm-gcc-4.2 instead of clang?
Note: See
TracTickets for help on using
tickets.

