Imake fails

Vlad D. Markov dvoich at aim.com
Fri Sep 20 00:52:05 UTC 2019


On Thu, 19 Sep 2019 08:02:09 -0400
"Vlad D. Markov" <dvoich at aim.com> wrote:

> On Thu, 19 Sep 2019 11:11:51 +1000
> MJ <mafsys1234 at gmail.com> wrote:
> 
> > 
> > On 19/09/2019 9:21 am, Vlad D. Markov via freebsd-questions wrote:
> > > On Thu, 19 Sep 2019 08:58:07 +1000
> > > MJ <mafsys1234 at gmail.com> wrote:
> > >
> > >> On 19/09/2019 5:25 am, Vlad D. Markov via freebsd-questions wrote:
> > >>> I was hoping to build xpat2 but Imake fails. I've had no issues doing the same thing using Debian.
> > >>>
> > >>> Any ideas how to fix this?
> > >>>
> > >>> happy$ xmkmf -a
> > >>> mv -f Makefile Makefile.bak
> > >>> imake -DUseInstalled -I/usr/local/lib/X11/config
> > >>> In file included from Imakefile.c:15:
> > >>> In file included from /usr/local/lib/X11/config/Imake.tmpl:316:
> > >>> /usr/local/lib/X11/config/Imake.rules:1674:27: warning: empty character constant [-Winvalid-pp-token]
> > >>>           for flag in ${MAKEFLAGS} ''; do \                               @@\
> > >>>                                    ^
> > >>> In file included from Imakefile.c:15:
> > >>> /usr/local/lib/X11/config/Imake.tmpl:2144:10: fatal error: ' X11 .rules' file not found
> > >>> #include ProjectRulesFile
> > >>>            ^
> > >>> /usr/local/lib/X11/config/Imake.tmpl:2142:35: note: expanded from macro 'ProjectRulesFile'
> > >>> # define ProjectRulesFile       Concat3(<,TopLevelProject,.rules>)
> > >>>                                   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
> > >>> /usr/local/lib/X11/config/Imake.rules:256:23: note: expanded from macro 'Concat3'
> > >>> #define Concat3(a,b,c)a/**/b/**/c
> > >>>                         ^~~~~~~~~~
> > >>> 1 warning and 1 error generated.
> > >>> imake: Exit code 1.
> > >>>     Stop.
> > >>
> > >> You probably want to add uname information etc. to aid in any help.
> > >>
> > >>
> > > FreeBSD happy 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC  amd64
> > >
> > > imake-1.0.8,1
> > > Name           : imake
> > > Version        : 1.0.8,1
> > > Installed on   : Wed Sep 18 14:38:50 2019 EDT
> > > Origin         : devel/imake
> > > Architecture   : FreeBSD:12:amd64
> > > Prefix         : /usr/local
> > > Categories     : devel
> > > Licenses       : MIT
> > > Maintainer     : x11 at FreeBSD.org
> > > WWW            : https://www.x.org/
> > > Comment        : Imake and other utilities from X.Org
> > > Annotations    :
> > > 	FreeBSD_version: 1200086
> > > Flat size      : 70.7KiB
> > > Description    :
> > > This package contains X.Org's imake, imake config files, and other build-related
> > > tools.
> > >
> > > WWW: https://www.x.org/
> > >
> > Are you using ports? I have the same v12 FreeBSD and I just built it from games/xpat2 without a problem. This built imake as well.
> > 
> > Why are you using xmkmf?
> > 
> > Cheers
> > Mark
> > 
> xpat2 builds well from ports because it uses the supplied Makefile. No problem there.
> 
> There are multiple options to building xpat2 like using Motif vice Xaw etc. I prefer the Motif version. There is a tmpl file in the src directory where you can modify things then run xmkmf to generate the new Makefile and build it to your taste.
> 
> 
> 
> 
> -- 
> 

The exact same issue I am facing is here:

https://bugs.freedesktop.org/show_bug.cgi?id=45509
Bugzilla ? Bug 45509	imake is failing with clang

I installed gcc9. I set: export IMAKECPP=/usr/local/bin/cpp9

imake succeeds now.

Vlad


More information about the freebsd-questions mailing list