Opened 11 years ago

Closed 5 years ago

#38223 closed defect (wontfix)

eiffelstudio72 is not UsingTheRightCompiler

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: roederja
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: eiffelstudio72

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

$ sudo port install eiffelstudio72
--->  Computing dependencies for eiffelstudio72
--->  Fetching distfiles for eiffelstudio72
--->  Verifying checksum(s) for eiffelstudio72
--->  Extracting eiffelstudio72
--->  Configuring eiffelstudio72
--->  Building eiffelstudio72
Error: org.macports.build for port eiffelstudio72 returned: could not set permissions for file "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_lang_eiffelstudio72/eiffelstudio72/work/PorterPackage/Eiffel72/studio/spec/macosx-x86-64/bin/ec": no such file or directory
Please see the log file for port eiffelstudio72 for details:
    /opt/local/var/macports/logs/_Users_rschmidt_macports_dports_lang_eiffelstudio72/eiffelstudio72/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port eiffelstudio72 failed

Attachments (2)

main.log (96.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
compile.log (6.3 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (11)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

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

Description: modified (diff)

I take it back, not similar to that other ticket.

comment:2 Changed 11 years ago by roederja

That must be 10.8 specific as it works fine for me on 10.7. Have you done anything special to your compilers? I think I will have to upgrade to 10.8 in order to reproduce this.

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: compile.log added

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

Summary: eiffelstudio72 build failureeiffelstudio72 is not UsingTheRightCompiler

I've attached my compile.log which reveals the cause of the problem:

Making all in idrs...
gcc -c -I.. -I../run-time -O3 -Wall -arch x86_64 -pipe -no-cpp-precomp -fno-common -fPIC  idrs.c
gcc -c -I.. -I../run-time -O3 -Wall -arch x86_64 -pipe -no-cpp-precomp -fno-common -fPIC idrs.c
gcc: Error: You should be using ${configure.cc}
See https://trac.macports.org/wiki/UsingTheRightCompiler

comment:4 Changed 11 years ago by roederja

Thanks Ryan. It seems because the port is using use_configure no, macports doesn't set the $CC variable for the build phase. What would be the best way to fix this?

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

MacPorts never sets the CC environment variable outside of the configure phase unless you tell it to in the Portfile. The UsingTheRightCompiler page provides some suggestions. You can also search all Portfiles for those using "use_configure no" to see how they handle it; build systems differ and different ports might need different fixes.

comment:6 Changed 11 years ago by roederja

Where can I find documentation for the system command (seems to be macports specific). I'm hoping there is a way to pass it a list of env variables to define.

comment:7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

The system command is a MacPorts-specific Tcl extension, yes. It is described in "man portfile" but there's not much to it: you put the command and arguments you want to run and it runs it. The only optional argument is -W which lets you specify what you want the working directory to be.

To pass env variables, call the env command like you would on the command line:

system -W ${worksrcpath} "env FOO=bar somecommand"

You might be able to do it without env:

system -W ${worksrcpath} "FOO=bar somecommand"

comment:8 Changed 11 years ago by roederja

Ok so I checked in an updated version. Can you confirm that it works for you now?

comment:9 Changed 5 years ago by mf2k (Frank Schima)

Resolution: wontfix
Status: newclosed

It appears that this port no longer exists.

Note: See TracTickets for help on using tickets.