Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#28820 closed defect (invalid)

p5-pathtools: inttypes.h: No such file or directory

Reported by: deadballo@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ghosthound, ryandesign (Ryan Carsten Schmidt), danielluke (Daniel J. Luke)
Port: perl5.12

Description (last modified by danielluke (Daniel J. Luke))

1) My ports are completely up to date

2) I tried to install winetricks which depends on p5-pathtools. It's trying to build for both 32 and 64bit architectures which *may* be the root of the problem, but that's speculation on my part. My arch is x86_64. Here's my output:

$ sudo port -v  install winetricks
Password:
--->  Computing dependencies for winetricks.................................................................................................
--->  Dependencies to be installed: zenity gtk2 atk gtk-doc gnome-doc-utils intltool p5-pathtools p5-scalar-list-utils p5-xml-parser iso-codes py27-libxml2 rarian getopt gdk-pixbuf2 jasper pango Xft2 cairo libpixman shared-mime-info xorg-libXdamage xorg-damageproto libnotify dbus-glib
--->  Building p5-pathtools
/usr/bin/gcc-4.2 -c   -pipe -O2 -arch x86_64 -arch i386 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include -O3   -DVERSION=\"3.33\" -DXS_VERSION=\"3.33\"  "-I/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE"   Cwd.c
In file included from /opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE/perl.h:2429,
                 from Cwd.xs:2:
/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE/handy.h:159:25: error: inttypes.h: No such file or directory
In file included from /opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE/perl.h:2429,
                 from Cwd.xs:2:
/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE/handy.h:159:25: error: inttypes.h: No such file or directory
lipo: can't open input file: /var/tmp//cclWSYbH.out (No such file or directory)
make: *** [Cwd.o] Error 1
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-pathtools/work/PathTools-3.33" && /usr/bin/make -j4 all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for p5-pathtools): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Failed to install p5-pathtools
Log for p5-pathtools is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-pathtools/main.log
Error: The following dependencies were not installed: zenity gtk2 atk gtk-doc gnome-doc-utils intltool p5-pathtools p5-scalar-list-utils p5-xml-parser iso-codes py27-libxml2 rarian getopt gdk-pixbuf2 jasper pango Xft2 cairo libpixman shared-mime-info xorg-libXdamage xorg-damageproto libnotify dbus-glib
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (2)

main.log (5.2 KB) - added by deadballo@… 14 years ago.
main.2.log (10.9 KB) - added by deadballo@… 14 years ago.

Download all attachments as: .zip

Change History (28)

comment:1 Changed 14 years ago by danielluke (Daniel J. Luke)

Description: modified (diff)

p5-pathtools builds fine x86_64

Is your perl built universal? If so, that's probably where the inadvertent -arch i386 is coming from (and so the perl port probably needs to be modified).

Wine only builds i386, however, so perhaps that's related to what is going on?

comment:2 Changed 14 years ago by deadballo@…

I do not recall setting anything as "universal". My build_arch is commented out in macports.conf, so everything ought to be the default.

I built wine with no errors, and I thought winetricks was just a utility app so I don't see why the arch matters.

comment:3 Changed 14 years ago by danielluke (Daniel J. Luke)

Please reply with the output of:

port installed perl5

and

file /opt/local/bin/perl5.12

comment:4 Changed 14 years ago by deadballo@…

$ port installed perl5
The following ports are currently installed:
  perl5 @5.8.9_0
  perl5 @5.12.3_1+perl5_12 (active)
$ file /opt/local/bin/perl5.12
/opt/local/bin/perl5.12: Mach-O fat file with 2 architectures

comment:5 Changed 14 years ago by danielluke (Daniel J. Luke)

Cc: ricci@… added
Port: perl5.12 added

how about:

port installed perl5.12?

It looks like you have perl5.12 installed as universal, and so the -arch flags are coming from perl5.12, which probably needs to be patched to not store them (perhaps in Config_heavy.pl?)

comment:6 Changed 14 years ago by deadballo@…

$ port installed perl5.12?
None of the specified ports are installed.

Am I really the only person experiencing this issue, and if so, why? I would think p5-pathtools would be used by many people.

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

Cc: ryandesign@… dluke@… added
Summary: Issue with p5-pathtools: "inttypes.h: No such file or directory"p5-pathtools: inttypes.h: No such file or directory

Replying to dluke@…:

Is your perl built universal? If so, that's probably where the inadvertent -arch i386 is coming from (and so the perl port probably needs to be modified).

See #24779. I do not understand the maintainer's reluctance to fix the issue.

p5-pathtools builds fine universal for me.

Perhaps you could clean p5-pathtools and try again, and if it fails again, attach the entire main.log.

P.S: Please remember to use WikiFormatting when pasting literal terminal output into Trac.

comment:8 in reply to:  description Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to deadballo@…:

2) I tried to install winetricks which depends on p5-pathtools. It's trying to build for both 32 and 64bit architectures which *may* be the root of the problem, but that's speculation on my part. My arch is x86_64.

wine requires 32-bit, and your Mac can (and does by default) build 64-bit. So trying to install winetricks (and thereby wine) will cause everything to rebuild 32-bit/64-bit universal.

comment:9 Changed 14 years ago by danielluke (Daniel J. Luke)

Replying to deadballo@…:

$ port installed perl5.12?
None of the specified ports are installed.

the ? was a typo ;-)

I'm trying to determine what perl5.12 variants you may (or may not) have selected:

comment:10 in reply to:  9 Changed 14 years ago by danielluke (Daniel J. Luke)

Replying to dluke@…:

I'm trying to determine what perl5.12 variants you may (or may not) have selected:

And apparently having too much trouble typing:

port installed perl5.12

comment:11 Changed 14 years ago by deadballo@…

I tried cleaning but no dice (I fail to see how that would help, but anyway)

So...why can't I build this as universal? Is there a dependency missing?

comment:12 in reply to:  11 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to deadballo@…:

I tried cleaning but no dice (I fail to see how that would help, but anyway)

Cleaning and trying again ensures your main.log is complete. Could you attach it now?

So...why can't I build this as universal?

I don't know yet. Maybe we'll know more when we analyze your main.log.

comment:13 Changed 14 years ago by danielluke (Daniel J. Luke)

Replying to ryandesign@…:

See #24779. I do not understand the maintainer's reluctance to fix the issue.

I believe the maintainer is just attempting to be extra careful, although it doesn't seem warranted in this case. It looks like the perl shipped by apple has had the arch flags removed (along with a patch to let you pull them if you really want to):

http://www.opensource.apple.com/source/perl/perl-63/5.10/fix/Config_heavy.pl.ex

p5-pathtools builds fine universal for me. Perhaps you could clean p5-pathtools and try again, and if it fails again, attach the entire main.log.

Changed 14 years ago by deadballo@…

Attachment: main.log added

comment:14 Changed 14 years ago by deadballo@…

It doesn't appear to be too useful :\

I do have

/opt/./local/include/gcc44/c++/tr1/inttypes.h

but I'm unsure if there ought to be another one in, say, /opt/local/include/

comment:15 Changed 14 years ago by danielluke (Daniel J. Luke)

Skipping completed org.macports.configure (p5-pathtools) 

it looks like you didn't clean first

sudo port clean --all p5-pathtools
sudo port -dv install p5-pathtools

Also, the inttypes.h that should matter is the one in /usr/include (and not anything in /opt)

comment:16 Changed 14 years ago by deadballo@…

Well, there is no inttypes.h in /usr/include/

(yes, I have xcode installed)

I thought macports included its own set of headers etc.

comment:17 Changed 14 years ago by danielluke (Daniel J. Luke)

inttypes.h is a standard C header file, so it should be there (it's there on both my 10.5 and 10.6 machines). I don't have xcode4 installed (yet?) so I don't know if it does anything to that header (although it doesn't seem likely).

Macports uses the apple-provided compiler (and headers) unless there's a reason to not use it.

Changed 14 years ago by deadballo@…

Attachment: main.2.log added

comment:18 Changed 14 years ago by deadballo@…

Well I have 10.6.6 and no inttypes.h

/usr/include is NOT in the standard install on 10.4 or 10.5 (I just checked) and I doubt it is in 10.6. It's surely part of xcode.

I have xcode_3.2.2 installed.

comment:19 in reply to:  18 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to deadballo@…:

Well I have 10.6.6 and no inttypes.h

/usr/include is NOT in the standard install on 10.4 or 10.5 (I just checked) and I doubt it is in 10.6. It's surely part of xcode.

I have xcode_3.2.2 installed.

/usr/include/inttypes.h is provided by Xcode, specifically by the com.apple.pkg.DevSDKLeo.bom package.

Xcode 3.2.2 is outdated. Please update to 3.2.6.

comment:20 Changed 14 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: newclosed

comment:21 Changed 14 years ago by deadballo@…

Unfortunately, I'm not on an internet connection where I can simply download the latest XCode tools (it's 4GB!)

That would take months to download

I'll try reinstalling 3.2.2

comment:22 in reply to:  21 Changed 14 years ago by mf2k (Frank Schima)

Inappropriate comments removed by wms

comment:23 Changed 14 years ago by deadballo@…

Inappropriate comments removed by wms

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

I think Frank's just trying to be helpful. If reinstalling Xcode 3.2.2 resolves the issue for you, great. Upgrading to the latest Xcode is still recommended, to receive Apple bug fixes.

comment:25 Changed 14 years ago by deadballo@…

Reinstalling 3.2.2 resolved the issue and I'll try to get xcode 4. I'm still unsure why the file went missing. Some others on the 'net report the same curious issue, as though it's being deleted somehow.

I'm sorry for reacting that way, but I don't think the "3rd world" and "this day and age" comments were at all helpful and in fact they were condescending.

comment:26 Changed 14 years ago by blb@…

Note that 3.2.6 should be fine if you don't want to spend the $4.99 (though it is still around 4gigs like Xcode 4).

Note: See TracTickets for help on using tickets.