Opened 14 years ago

Closed 10 years ago

#27627 closed defect (fixed)

Bison @2.4.3 configure test for gcj can take excessive time and memory

Reported by: chicagotripp (Altoine Barker) Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: mww@…
Port: bison

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I have attempted to upgrade bison on my system and find myself failing/stalling in the config phase after checking for java on my system. The exact message shows:

checking how to link with libintl... -lintl -liconv -lc  -Wl,-framework -Wl,CoreFoundation
checking for valgrind... no
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-4.0 accepts -g... yes
checking dependency style of /usr/bin/g++-4.0... gcc3
checking whether /usr/bin/g++-4.0 builds executables that work... yes
checking for Java virtual machine... java

I have cleaned the port and then attempted to upgrade the port from bison 2.4.2 to bison 2.4.3 with the same result. I had let this issue sit for over 24 hour periods, twice! And still the same result.

My system is a PowerPC G5 Dual running Mac OSX 10.5.8 using MacPorts 1.9.2.

Attachments (2)

config.log (789.7 KB) - added by chicagotripp (Altoine Barker) 14 years ago.
bison config file
main.log (28.0 KB) - added by chicagotripp (Altoine Barker) 14 years ago.
bison logs file

Download all attachments as: .zip

Change History (11)

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

Cc: nDiScReEt@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…

comment:2 Changed 14 years ago by jmroot (Joshua Root)

I can't reproduce on the same hardware and OS. Attach the log files generated by both macports (look under /opt/local/var/macports/logs) and autoconf (look for config.log under the directory given by port work bison).

Changed 14 years ago by chicagotripp (Altoine Barker)

Attachment: config.log added

bison config file

Changed 14 years ago by chicagotripp (Altoine Barker)

Attachment: main.log added

bison logs file

comment:3 in reply to:  2 Changed 14 years ago by chicagotripp (Altoine Barker)

Replying to jmr@…:

I can't reproduce on the same hardware and OS. Attach the log files generated by both macports (look under /opt/local/var/macports/logs) and autoconf (look for config.log under the directory given by port work bison).

I did some different actions to find a resolution:

My first solution attempt was to deactivate bison-2.4.2, clean the bison port, and then choose to install bison-2.4.3 but that produced the same result which is no success.

My second solution attempt was to choose gcc42 from gcc_select and then do all the steps listed above. That worked. I wish there was a way to tell what gcc I had selected before I did the change. The files listed above are the files before I attempted to do the second solution. My steps:

sudo gcc_select gcc42
sudo port -d deactivate bison
sudo port -d clean --work bison
sudo port -d install bison

These are the gcc version I have installed on my system:

gcc_select -l
Available versions:
gcc40 gcc42 llvm-gcc42 mp-gcc42 mp-gcc45

In conclusion my problem is solved. Thank you for your editing and quick response.

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

Summary: Bison 2.4.3 Stall On ConfigBison @2.4.3 configure test for gcj can take excessive time and memory

So this was the problem:

configure:21491: checking for Java compiler
configure:21697: found /opt/local/bin/gcj
configure:21731: found /usr/bin/javac
configure:21784: gcj -C -d . conftestlib.java
GC Warning: Repeated allocation of very large block (appr. size 1048576000):
	May lead to memory leak and poor performance.
GC Warning: Out of Memory!  Returning NIL!

It would be best to tell the configure script not to use gcj at all, since there's no dependency declared.

comment:5 Changed 13 years ago by ilia_2s@…

I got same problems not for bison only but for other different ports and sources. I fixed this bu changing default compiler throught gcc_select.

comment:6 Changed 12 years ago by reeskm (Rees Machtemes)

Update: it seems that bison is very sensitive to how your gcc_select is set.

I recently compiled mp-gcc-4.7 on my system for fun. I made it the default using "port select gcc set mp-gcc-4.7". It works great until now, when I needed to update bison.

This bug kept occuring despite me setting the portfile to use gcc-4.2 explicitly or using a command line switch of -configure.compiler=apple-gcc-4.2! I was surprised to find that if I set my "port select gcc" back to apple-gcc-4.2 the problem went away.

Oh, my system is a Quad G5 powerpc, for info, running 10.5.8 and the latest macports.

comment:7 in reply to:  6 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to reeskm@…:

This bug kept occuring despite me setting the portfile to use gcc-4.2 explicitly or using a command line switch of -configure.compiler=apple-gcc-4.2! I was surprised to find that if I set my "port select gcc" back to apple-gcc-4.2 the problem went away.

Then bison should be fixed so it uses the right compiler.

comment:8 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: mww@… added
Owner: changed from mww@… to larryv@…
Status: newassigned

I updated bison to 3.0.4 in r134201. Is this still an issue?

comment:9 Changed 10 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: assignedclosed

I’m going to assume that this is no longer an issue. Feel free to re-open if necessary.

Note: See TracTickets for help on using tickets.