Opened 13 years ago

Last modified 11 years ago

#31504 closed defect

xorg-cf-files has a bad Concat3 macro (somehow gcc doesn't trip on it) — at Version 9

Reported by: takanori@… Owned by: jeremyhu@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: xorg-cf-files

Description (last modified by jeremyhu (Jeremy Huddleston Sequoia))

gcc doesn't like the Concat3 macro either, but it looks like it doesn't actually use it, probably because it's never called in gcc's cpp-path

Change History (11)

Changed 13 years ago by takanori@…

Attachment: buildlog_canna.txt added

Tested on Xcode 4.2 GM/Lion

comment:1 Changed 13 years ago by takanori@…

This is because clang cannot interpret Concat3() macro properly which is declared in Imake.rules.

Changed 13 years ago by takanori@…

Attachment: imake.diff added

Patch to avoid this problem. I think this patch also fixes #30776, etc.

comment:2 Changed 13 years ago by takanori@…

Owner: changed from macports-tickets@… to mcalhoun@…
Port: imake added

comment:3 Changed 13 years ago by takanori@…

Resolution: fixed
Status: newclosed

Committed in r84946.

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Have you filed a radar about this?

comment:5 Changed 13 years ago by takanori@…

No, not yet.

I cannot tell whether this is a bug that should be reported or an expected behavior since I know next to nothing about llvm clang.. ;-(

comment:6 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

I'm just hearing about this now as a result of https://bugs.freedesktop.org/show_bug.cgi?id=45509

PLEASE file radars or tell me about issues like this, so I can look into them and file radars if you don't want to. Switching compilers and ignoring the problem won't fix it if it's really a compiler issue.

comment:7 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

imake itself is fine, so reverting this in r89535

The real fix lies outside imake (probably in xorg-cf-files), and if you want to work around it, do so in the ports that are using imake and failing because if this fixe them, then they're broken already in that they're not honoring ${configure.cc} properly.

comment:8 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Port: xorg-cf-files added; imake removed
Resolution: fixed
Status: closedreopened

These will actually work around the issue in canna: r89536 r89537

xorg-cf-files needs to be fixed

comment:9 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Description: modified (diff)
Owner: changed from mcalhoun@… to jeremyhu@…
Status: reopenednew
Summary: canna @3.7p3_3: fails to install if xmkmf is built by clangxorg-cf-files has a bad Concat3 macro (somehow gcc doesn't trip on it)
Note: See TracTickets for help on using tickets.