Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#12820 closed defect (worksforme)

coreutils sha256/512 hangs ppc compile

Reported by: darwin@… Owned by: pipping@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: coreutils Cc: pipping@…, darwin@…, nox@…
Port:

Description

Compiling either /lib/sha256.c or /lib/sha512.c from the coreutils port took an inordinate amount of time. After a while I assumed it to be inifinite and aborted the install.

The compile command macports attempted was this like this [s/256/512 for sha512]: gcc -std=gnu99 -I. -I/opt/local/include -O2 -MT sha256.o -MD -MP -MF .deps/sha256.Tpo -c -o sha256.o sha256.c

The command I changed it to that compiled: gcc -std=gnu99 -I. -I/opt/local/include -MT sha256.o -MD -MP -MF .deps/sha256.Tpo -c -o sha256.o sha256.c

Spot the difference? No optimization flag. Something is going on with gcc trying to optimize this on ppc and taking forever.

This prevents installation of said port.

Change History (4)

comment:1 Changed 13 years ago by nox@…

Cc: pipping@… darwin@… nox@… added
Summary: [defect] coreutils sha256/512 hangs ppc compilecoreutils sha256/512 hangs ppc compile

Are you using the default /usr/bin/gcc? It works here.

comment:2 Changed 13 years ago by michael.culbertson@…

I had the same problem. Turning off optimization provided quick compilation. /usr/bin/gcc --version reports: powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc. build 4061).

comment:3 Changed 13 years ago by pipping@…

Resolution: worksforme
Status: newclosed

installing a more recent xcode should solve this iirc

comment:4 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.