#36244 closed defect (fixed)
g-wrap: build fails with clang
Reported by: | rupapara.prashant@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | clang | Cc: | ryandesign (Ryan Carsten Schmidt) |
Port: | g-wrap |
Description
Attachments (2)
Change History (10)
Changed 12 years ago by rupapara.prashant@…
comment:1 follow-up: 2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | clang added |
---|---|
Summary: | g-wrap → g-wrap: build fails with clang |
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign@…:
But we should first try updating the port to the latest version.
Never mind; 1.3.4 is the latest stable version. livecheck told me about 1.9.x but that's an unstable series leading up to 2.0.
comment:3 Changed 12 years ago by rupapara.prashant@…
I did "sudo port clean g-wrap" and "sudo port install g-wrap configure.compiler=llvm-gcc-4.2" but still it fails. Attaching main2.log
Changed 12 years ago by rupapara.prashant@…
Attachment: | main.2.log added |
---|
comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Your new log shows this new error:
:info:build ld: can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB) for architecture x86_64
I see that too if I build with llvm-gcc-4.2 or apple-gcc-4.2.
At this point I'm inclined to try to update the port to 1.9.14, even though 1.9.x is an unstable series, because 1.3.x is obviously very old and difficult to compile.
comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
It turns out 1.9.14 was very difficult to compile too, but I think I worked around all the problems in r98923.
comment:7 Changed 12 years ago by jmroot (Joshua Root)
You don't need to blacklist clang because of intmax_t, just include stdint.h.
comment:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
I spent many hours over several weeks fighting with this software, and was happy to get something that compiled at all. stdint.h is already included by g-wrap's files but for some reason they maintain a local copy of stdint.h might factor into the problem. I don't understand it and really don't want to waste any more time on this port.
The first log in the error is:
This is probably clang being more picky than older compilers. You could work around the problem by using a different compiler. The fix would be to adjust the port's build process so that the -Werror flag is not used.
But we should first try updating the port to the latest version.