Opened 13 years ago

Closed 13 years ago

#27283 closed submission (fixed)

IRRToolSet

Reported by: fclaire@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: irrtoolset

Description

Please find attached a port of the IRRToolSet

Attachments (4)

config.log.bz2 (21.2 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
my config.log
Makefile.bz2 (7.1 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
my Makefile
new.tar.gz (27.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
Portfile (1.5 KB) - added by fclaire@… 13 years ago.

Download all attachments as: .zip

Change History (12)

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

It does not build for me on Snow Leopard. I get this error:

bison -y -d command.y
flex command.l
/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I../../src   -I/opt/local/include  -pipe -O2 -arch x86_64  -MT command.l.o -MD -MP -MF .deps/command.l.Tpo -c -o command.l.o command.l.cc
command.l:80: error: redefinition of 'int commandlineno'
command.l.cc:362: error: 'int commandlineno' previously defined here
make[3]: *** [command.l.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

This error is also discussed on their mailing list.

comment:2 Changed 13 years ago by fclaire@…

That's strange, I got no problem compiling on my MacBook Pro with Snow Leopard 10.6.5

Could you run the installation of the port until the config phase is finished and provide me the Makefile generated in the "work" directory ? I'll make a diff with mine to check for any difference.

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: config.log.bz2 added

my config.log

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Makefile.bz2 added

my Makefile

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

Here are my Makefile and config.log.

comment:4 Changed 13 years ago by fclaire@…

We're using 2 different versions of Mac OSX:

thepearl:irrtoolset fclaire$ diff work/irrtoolset-5.0.0/config.log /Users/fclaire/Downloads/config.log 
13c13
< hostname = thepearl.local
---
> hostname = 808.local
15c15
< uname -r = 10.5.0
---
> uname -r = 10.4.0
17c17
< uname -v = Darwin Kernel Version 10.5.0: Fri Nov  5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386
---
> uname -v = Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386
26c26
< 	 Darwin Kernel Version 10.5.0: Fri Nov  5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386
---
> 	 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386

Maybe it's compiling OK with version 10.6.5 and not with 10.6.4 ?

Next, in you config.log there's always a -pipe option for the g++ compiler while I don't have any. Here's the diff of our Makefiles:

thepearl:irrtoolset fclaire$ diff work/irrtoolset-5.0.0/Makefile /Users/fclaire/Downloads/Makefile 
61,62c61,62
< build_triplet = x86_64-apple-darwin10.5.0
< host_triplet = x86_64-apple-darwin10.5.0
---
> build_triplet = x86_64-apple-darwin10.4.0
> host_triplet = x86_64-apple-darwin10.4.0
134c134
< ACLOCAL = ${SHELL} /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run aclocal-1.11
---
> ACLOCAL = ${SHELL} /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run aclocal-1.11
136c136
< AMTAR = ${SHELL} /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run tar
---
> AMTAR = ${SHELL} /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run tar
138,140c138,140
< AUTOCONF = ${SHELL} /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run autoconf
< AUTOHEADER = ${SHELL} /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run autoheader
< AUTOMAKE = ${SHELL} /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run automake-1.11
---
> AUTOCONF = ${SHELL} /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run autoconf
> AUTOHEADER = ${SHELL} /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run autoheader
> AUTOMAKE = ${SHELL} /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run automake-1.11
144c144
< CFLAGS = -O2 -arch x86_64 
---
> CFLAGS = -pipe -O2 -arch x86_64 
150c150
< CXXFLAGS = -O2 -arch x86_64 
---
> CXXFLAGS = -pipe -O2 -arch x86_64 
159c159
< EGREP = /usr/bin/grep -E
---
> EGREP = /opt/local/bin/grep -E
162,163c162,163
< FGREP = /usr/bin/grep -F
< GREP = /usr/bin/grep
---
> FGREP = /opt/local/bin/grep -F
> GREP = /opt/local/bin/grep
180,181c180,181
< MAKEINFO = ${SHELL} /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run makeinfo
< MKDIR_P = ./install-sh -c -d
---
> MAKEINFO = ${SHELL} /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0/missing --run makeinfo
> MKDIR_P = /opt/local/bin/gmkdir -p
198c198
< SED = /usr/bin/sed
---
> SED = /opt/local/bin/gsed
205,208c205,208
< abs_builddir = /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0
< abs_srcdir = /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0
< abs_top_builddir = /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0
< abs_top_srcdir = /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0
---
> abs_builddir = /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0
> abs_srcdir = /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0
> abs_top_builddir = /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0
> abs_top_srcdir = /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0
218c218
< build = x86_64-apple-darwin10.5.0
---
> build = x86_64-apple-darwin10.4.0
221c221
< build_os = darwin10.5.0
---
> build_os = darwin10.4.0
229c229
< host = x86_64-apple-darwin10.5.0
---
> host = x86_64-apple-darwin10.4.0
232c232
< host_os = darwin10.5.0
---
> host_os = darwin10.4.0
237c237
< install_sh = ${SHELL} /opt/local/var/macports/build/_Users_fclaire_devel_ports_net_irrtoolset/work/irrtoolset-5.0.0/install-sh
---
> install_sh = ${SHELL} /opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_irrtoolset/work/irrtoolset-5.0.0/install-sh
244c244
< mkdir_p = $(top_builddir)/./install-sh -c -d
---
> mkdir_p = /opt/local/bin/gmkdir -p

Maybe the -pipe option is making troubles. Could you give a try with a "use_parallel_build no" line in the Portfile ?

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: new.tar.gz added

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

Replying to fclaire@…:

We're using 2 different versions of Mac OSX:
[snip]
Maybe it's compiling OK with version 10.6.5 and not with 10.6.4 ?

I updated to Mac OS X 10.6.5.

Next, in you config.log there's always a -pipe option for the g++ compiler while I don't have any. Here's the diff of our Makefiles:
[snip]
Maybe the -pipe option is making troubles.

I have "configurepipe yes" in my macports.conf. This is the default for MacPorts 1.9 and greater. Your config file must say "configurepipe no", which was the default before.

Could you give a try with a "use_parallel_build no" line in the Portfile ?

Updating to 10.6.5, setting "configurepipe no" in macports.conf, and disabling the parallel build did not change the outcome. New config.log and Makefile are attached.

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

Cc: ryandesign@… added

See also the IRRToolSet Portfile submitted by someone else in #27463.

Changed 13 years ago by fclaire@…

Attachment: Portfile added

comment:7 Changed 13 years ago by fclaire@…

I'm now forcing the usage of Mac OS X flex. This should solve the compilation problem.

Could you give it a try and let me know ?

comment:8 Changed 13 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Committed in r74304.

Note: See TracTickets for help on using tickets.