Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#11500 closed defect (invalid)

BUG: coreutils waits forever while trying to compile "sha256.o"

Reported by: tck@… Owned by: pipping@…
Priority: Not set Milestone:
Component: ports Version: 1.4
Keywords: Cc:
Port:

Description

when doing a "sudo port install -v coreutils", the process waits forever after displaying the line:

gcc -std=gnu99 -I. -I/opt/local/include -g -O2 -MT sha256.o -MD -MP -MF .deps/sha256.Tpo -c -o sha256.o sha256.c

Debugging and Verbose output does not add anything of help.

Host info:

PowerPC G4 OS X 10.4.8 MacPorts 1.320 coreutils-6.7

Please let me know if there is any more information I can provide.

Attachments (1)

Portfile (2 bytes) - added by pipping@… 17 years ago.
empty portfile. uploading this to replace the old portfile since it's apparently more dangerous than helpful

Download all attachments as: .zip

Change History (11)

comment:1 Changed 17 years ago by pipping@…

Status: newassigned
Version: 1.3.21.4

I'm on a g4, running 10.4.8 myself and have no problem whatsoever...

I've modified the portfile to use the latest test release, please

  • replace your portfile with that one ('port file coreutils' to see where it is')
  • run 'sudo port clean --all coreutils'
  • run sudo port -d destroot
  • let me know if that works

comment:2 Changed 17 years ago by pipping@…

correction:

  • replace your portfile with that one ('port file coreutils' to see where it is)
  • run 'sudo port clean --all coreutils'
  • run 'sudo port -d destroot coreutils'

comment:3 Changed 17 years ago by tck@…

It did not work. But I have a workaround. If I manually run the command line removing the '-O2' switch it compiles. Doing the install again, it goes to the next line and stalls again (this time on the sha512.c file). Doing the same thing (removing the '-O2') works. After that, the install will finish.

So now I have another problem. I got the following error when trying to install using the new portfile. And not I cannot uninstall the version it tried to install. What should I do?

Error: Target com.apple.activate returned: Registry error: coreutils 0_0 not registered as installed.

Warning: the following items did not execute (for coreutils): com.apple.activate Error: Status 1 encountered during processing.

[Users/tck] > uninstall coreutils ---> The following versions of coreutils are currently installed: ---> coreutils @6.7_1 (active) ---> coreutils @0_0 (active) DEBUG: Registry error: Please specify the full version as recorded in the port registry.

while executing

"portuninstall::uninstall $portname [composite_version $portversion [array get variations]] [array get options]" Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.

[Users/tck] > uninstall coreutils@0_0 DEBUG: Registry error: coreutils 0_0 not registered as installed.

while executing

"registry::installed $portname $v"

(procedure "portuninstall::uninstall" line 5) invoked from within

"portuninstall::uninstall $portname [composite_version $portversion [array get variations]] [array get options]" Error: port uninstall failed: Registry error: coreutils 0_0 not registered as installed.

comment:4 Changed 17 years ago by pipping@…

although that clearly shouldn't happen (the version being 0_0), uninstalling coreutils @6.7_1 and then uninstall coreutils should work (since then only one version is installed, there's no need to specify the version anymore)

comment:5 Changed 17 years ago by tck@…

Ya. That did not work either. I ended up having to go into the reciepts directory and removing 0_0 reciept. I hope it did not leave any gorp in the directory structure.

But good news is that the workaround works great. You have to stop the install twice to manually compile the sha*.c files without the '-02' option. But after that, the third install completes without and problems.

comment:6 Changed 17 years ago by pipping@…

Milestone: Available Ports

comment:7 Changed 17 years ago by pipping@…

what's the output of

gcc --version

on your machine? maybe you're using an old version of the developer tools (latest is 2.4.1).

Changed 17 years ago by pipping@…

Attachment: Portfile added

empty portfile. uploading this to replace the old portfile since it's apparently more dangerous than helpful

comment:8 Changed 17 years ago by tck@…

I upgraded to the latest Developer tools and now the port compiles fine.

I don't know what version of the Developers I was using before. I think whatever version came on my install disks.

Thanks for the help in fixing the problem. Please feel free to close the bug report.

comment:9 Changed 17 years ago by pipping@…

Resolution: invalid
Status: assignedclosed

upgrading the developer tools to 2.4.1 solved the problem

comment:10 Changed 17 years ago by jmpp@…

Milestone: Available Ports
Priority: BlockerNot set
Note: See TracTickets for help on using tickets.