Opened 13 years ago

Closed 13 years ago

#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 (Ryan Carsten Schmidt)
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 (1)

main.log (225.9 KB) - added by apanteleev87@… 13 years ago.

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by apanteleev87@…

Attachment: main.log added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

I see you're using Clang. Does using a different compiler help?

comment:2 in reply to:  1 Changed 13 years 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 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: clang added
Summary: iverilog @0.9.4 fails to build on MacOS 10.7.2iverilog @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?

comment:4 in reply to:  3 Changed 13 years ago by apanteleev87@…

Yes, it just works now, without any build options. Thank you.

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Great, thanks. Then r88222 fixed it.

Note: See TracTickets for help on using tickets.