Opened 14 years ago
Last modified 14 years ago
#26205 closed defect
makeicns cannot compile i386 ppc on Mac OS X 10.4 PowerPC — at Version 13
Reported by: | 200309@… | Owned by: | mk-macports@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | brad@…, sewebster@…, 200309@…, ryandesign@… | |
Port: | makeicns |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Read recently about makeicns and tried to compile but got an error.
What is the problem?
$ sudo port install makeicns ---> Computing dependencies for makeicns ---> Fetching makeicns ---> Attempting to fetch 1.4.tar.bz2 from http://distfiles.macports.org/makeicns ---> Verifying checksum(s) for makeicns ---> Extracting makeicns ---> Configuring makeicns ---> Building makeicns Error: Target org.macports.build returned: shell command failed Log for makeicns is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_makeicns/main.log Error: Status 1 encountered during processing.
Attached is the "main.log"
Change History (18)
Changed 14 years ago by 200309@…
comment:1 follow-ups: 3 12 Changed 14 years ago by sewebster@…
comment:3 Changed 14 years ago by 200309@…
Replying to sewebster@…:
Looks like an architecture issue. What kind of CPU do you have? For me, to my uninformed eye, it looks like it tries to compile for ppc and i386. Maybe you only have a ppc, not an intel chip, so it doesn't work.
Yes, this machine is PPC.
comment:4 follow-up: 7 Changed 14 years ago by sewebster@…
You could try the attached patches to see if it works for you, but all I did was cut out the i386 part, so this only works for ppc users.
comment:5 follow-up: 6 Changed 14 years ago by jmroot (Joshua Root)
Cc: | brad@… added |
---|---|
Owner: | changed from macports-tickets@… to mk-macports@… |
Port: | makeicns added |
Please remember to fill in the Port field and cc the maintainers.
comment:6 Changed 14 years ago by 200309@…
Replying to jmr@…:
Please remember to fill in the Port field and cc the maintainers.
ok... this is my first post. Any other suggestions? -Bill
comment:7 Changed 14 years ago by 200309@…
Replying to sewebster@…:
You could try the attached patches to see if it works for you, but all I did was cut out the i386 part, so this only works for ppc users.
Where do I find info about how to apply the patches?
-Bill
comment:9 follow-up: 10 Changed 14 years ago by sewebster@…
Probably the easiest thing to do is to download the patch-Makefile.diff
file (download link at the bottom of the diff page), then (from the directory you downloaded the patch)
sudo mkdir `port dir makeicns`/files sudo cp patch-Makefile.diff `port dir makeicns`/files
then sudo port edit makeicns
and manually make the change that you can see I made in the Portfile diff (add the patchfiles line to the bottom). Then sudo port install makeicns
again and see what happens.
comment:10 Changed 14 years ago by 200309@…
Replying to sewebster@…:
Probably the easiest thing to do is to download the
patch-Makefile.diff
file (download link at the bottom of the diff page), then (from the directory you downloaded the patch)sudo mkdir `port dir makeicns`/files sudo cp patch-Makefile.diff `port dir makeicns`/filesthen
sudo port edit makeicns
and manually make the change that you can see I made in the Portfile diff (add the patchfiles line to the bottom). Thensudo port install makeicns
again and see what happens.
Thank you. That worked.
Soon, I will find out how and what makeicns can do.
-Bill
Changed 14 years ago by sewebster@…
Attachment: | patch-Makefile-i386.diff added |
---|
new makefile patch 1
Changed 14 years ago by sewebster@…
Attachment: | Portfile-makeicns.diff added |
---|
patch to Portfile using platform specific Makefile patches
comment:11 Changed 14 years ago by sewebster@…
I uploaded a new Portfile patch and two Makefile patches. The modified Portfile applies the appropriate Makefile patch based on the platform the user is running. Could be a better way to do this. Also, no 64 bit I guess.
comment:12 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Summary: | makeicns compile error → makeicns cannot compile i386 ppc on Mac OS X 10.4 PowerPC |
Replying to sewebster@…:
Maybe you only have a ppc, not an intel chip, so it doesn't work.
It doesn't work because the user is on Mac OS X 10.4 PowerPC, which contains only the ppc architecture; every other Mac OS X version MacPorts supports contains at least ppc and i386 architectures. If you want to compile ppc and i386 on 10.4 PowerPC you must use the MacOSX10.4u.sdk. As far as I remember, the path to the this SDK will be in the variable ${configure.universal_sysroot} for you to use if it is needed (i.e. on 10.4 PowerPC only); on all other OS the variable is empty.
The port does not have a universal variant. The software should not build universal unless the port has a universal variant and the user has selected it.
The port should build for the architecture(s) the user requested. That means examining ${configure.build_arch} or ${configure.universal_archs} depending on whether building universal or not.
If 64-bit is not supported, the port should so indicate using "supported_archs i386 ppc" and, if enabling universal builds, by setting "configure.universal_archs i386 ppc" as well.
comment:13 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
Looks like an architecture issue. What kind of CPU do you have? For me, to my uninformed eye, it looks like it tries to compile for ppc and i386. Maybe you only have a ppc, not an intel chip, so it doesn't work.