Re: problems downloading clang-34 on PPC MAC

2015-12-24 Thread Brandon Allbery
On Wed, Dec 23, 2015 at 11:59 PM, John T. Chung  wrote:

> However, I don't see a "clang" executable. I only see this in
> /opt/local/bin
>

We support multiple clang versions that can be uinstalled concurrently. If
you want to use this version as clang then you want "port select":

sudo port select --set clang mp-clang-3.4

(use "port select --list clang" to see what versions are available)

I assumed the compiler would be clang-mp-3.4 but when I attempted to
> compile a "HELLO WORLD" C program, I got this:
>
> Macintosh-2:build jchung$ clang-mp-3.4 test.c
> test.c:2:1: warning: type specifier missing, defaults to 'int'
> [-Wimplicit-int]
> main() {
> ^~~~
> 1 warning generated.
> gcc: error: unrecognized command line option '-arch'
> clang: error: assembler (via gcc) command failed with exit code 1 (use -v
> to see invocation)
>
> why is it still calling "gcc"
>

Because the compiler itself produces assembly language, and the only way it
knows how to run an assembler on your system to convert that to object code
is via Apple's gcc. But it sounds like it's using it incorrectly, or you
have a "gcc" installed somewhere that does not support Apple's additions.

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: problems downloading clang-34 on PPC MAC

2015-12-23 Thread John T. Chung
hi Ryan, yeah cleaning the directory fixed the problem, the second time it
build and installed correctly.

However, I don't see a "clang" executable. I only see this in /opt/local/bin

Macintosh-2:build jchung$ ls -l /opt/local/bin/clang*
-rwxr-xr-x  1 root  wheel  62 Dec 24 11:55 /opt/local/bin/clang++-mp-3.4
-rwxr-xr-x  1 root  wheel  79 Dec 24 11:55
/opt/local/bin/clang-apply-replacements-mp-3.4
-rwxr-xr-x  1 root  wheel  67 Dec 24 11:55
/opt/local/bin/clang-format-mp-3.4
-rwxr-xr-x  1 root  wheel  70 Dec 24 11:55
/opt/local/bin/clang-modernize-mp-3.4
-rwxr-xr-x  1 root  wheel  60 Dec 24 11:55 /opt/local/bin/clang-mp-3.4

I assumed the compiler would be clang-mp-3.4 but when I attempted to
compile a "HELLO WORLD" C program, I got this:

Macintosh-2:build jchung$ clang-mp-3.4 test.c
test.c:2:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
main() {
^~~~
1 warning generated.
gcc: error: unrecognized command line option '-arch'
clang: error: assembler (via gcc) command failed with exit code 1 (use -v
to see invocation)

why is it still calling "gcc"
here's the contents of test.c

Macintosh-2:build jchung$ cat test.c
#include 
main() {
 printf("Hello World\n");
}
Macintosh-2:build jchung$


On Wed, Dec 23, 2015 at 2:42 PM, Ryan Schmidt 
wrote:

>
> > On Dec 23, 2015, at 12:38 AM, John T. Chung  wrote:
> >
> > Hi Ryan, thanks for the reply.
> > I can rebuild it, if needed, but since it took about 48 hours. I'd
> prefer to avoid it if possible,
> >
> > If this was built on my local system, do you know where the staging
> directory possibly might be?
> > I was just going to see if I can construct that archive manually.
>
> Have you solved whatever problem caused the I/O error? That's the first
> thing to do. If your disk is having a hardware failure, it needs to be
> replaced. If the disk is corrupted, it needs to be repaired. If the disk is
> full, more space needs to be made available.
>
> If you haven't yet run "sudo port clean clang-3.4", the staging directory
> is the directory called "destroot" inside the directory identified by
> running the command "port work clang-3.4".
>
> You should not attempt to create the archive manually. Rather, get
> MacPorts to recreate it.
>
> For example, run "sudo port uninstall clang-3.4", then run "sudo port
> install clang-3.4". This should use the existing destroot directory to make
> and install a new archive.
>
>


-- 




*John ChungTechnology ArchitectNyquest Consultinghttp://www.nyquest.com
Mobile 419.464.9637 Office: 419.973.9072*
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


problems downloading clang-34 on PPC MAC

2015-12-22 Thread John T. Chung
Hey guys, I'm a PPC G4 trying to install clang.
Everything is fine, until I get to this step:

clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
--->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 from
http://jog.id.packages.macports.org/macports/packages/clang-3.4
--->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 from
http://packages.macports.org/clang-3.4
--->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 from
http://lil.fr.packages.macports.org/clang-3.4
--->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 from
http://mse.uk.packages.macports.org/sites/packages.macports.org/clang-3.4
  []   0.0 %speed: 0
B/s--->  Attempting to fetch
clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 from
http://nue.de.packages.macports.org/macports/packages/clang-3.4

It downloads clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2, but this archive
is defective:

sh-3.2# bzip2 -dc
/opt/local/var/macports/software/clang-3.4/clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
| tar -tvf -

-rwxr-xr-x root/wheel4142072 2015-12-23 03:43:02
./opt/local/libexec/llvm-3.4/lib/libclangFormat.a
-rwxr-xr-x root/wheel   38938928 2015-12-23 03:42:59
./opt/local/libexec/llvm-3.4/lib/libclangFrontend.a

bzip2: I/O or other error, bailing out.  Possible reason follows.
bzip2: Input/output error
Input file =
/opt/local/var/macports/software/clang-3.4/clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2,
output file = (stdout)
tar: Read 6160 bytes from -
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

After which when it tries to activate this, it errs out:

-->  Staging clang-3.4 into destroot
--->  Installing clang-3.4 @3.4.2_9+analyzer
--->  Activating clang-3.4 @3.4.2_9+analyzer
Error: org.macports.activate for port clang-3.4 returned: command execution
failed
Please see the log file for port clang-3.4 for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.4/clang-3.4/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port clang-3.4 failed


any idea where I can download a working copy of
clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2

-- 




*John ChungTechnology ArchitectNyquest Consultinghttp://www.nyquest.com
Mobile 419.464.9637 Office: 419.973.9072*
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: problems downloading clang-34 on PPC MAC

2015-12-22 Thread Ryan Schmidt

On Dec 22, 2015, at 8:21 PM, John T. Chung wrote:

> Hey guys, I'm a PPC G4 trying to install clang.
> Everything is fine, until I get to this step:
> 
> clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
> --->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 from 
> http://jog.id.packages.macports.org/macports/packages/clang-3.4
> --->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 from 
> http://packages.macports.org/clang-3.4
> --->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 from 
> http://lil.fr.packages.macports.org/clang-3.4
> --->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 from 
> http://mse.uk.packages.macports.org/sites/packages.macports.org/clang-3.4
>   []   0.0 %speed: 0 B/s  
>   --->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 
> from http://nue.de.packages.macports.org/macports/packages/clang-3.4
> 
> It downloads clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2, but this archive 
> is defective:
> 
> sh-3.2# bzip2 -dc 
> /opt/local/var/macports/software/clang-3.4/clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
>  | tar -tvf -
> 
> -rwxr-xr-x root/wheel4142072 2015-12-23 03:43:02 
> ./opt/local/libexec/llvm-3.4/lib/libclangFormat.a
> -rwxr-xr-x root/wheel   38938928 2015-12-23 03:42:59 
> ./opt/local/libexec/llvm-3.4/lib/libclangFrontend.a
> 
> bzip2: I/O or other error, bailing out.  Possible reason follows.
> bzip2: Input/output error
> Input file = 
> /opt/local/var/macports/software/clang-3.4/clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2,
>  output file = (stdout)
> tar: Read 6160 bytes from -
> tar: Unexpected EOF in archive
> tar: Error is not recoverable: exiting now
> 
> 
> After which when it tries to activate this, it errs out:
> 
> -->  Staging clang-3.4 into destroot
> --->  Installing clang-3.4 @3.4.2_9+analyzer
> --->  Activating clang-3.4 @3.4.2_9+analyzer
> Error: org.macports.activate for port clang-3.4 returned: command execution 
> failed
> Please see the log file for port clang-3.4 for details:
> 
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.4/clang-3.4/main.log
> To report a bug, follow the instructions in the guide:
> http://guide.macports.org/#project.tickets
> Error: Processing of port clang-3.4 failed
> 
> 
> any idea where I can download a working copy of 
> clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2

The MacPorts project has never had any PowerPC build machines, so we have never 
offered any binary packages for PowerPC. If you have 
"clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2" on your system, it's likely it 
was build on your own system.

"I/O error" often means you have a problem with your disk. You should verify 
your disk with Disk Utility.

It sounds like the clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 file you have 
is corrupt, possibly because it is truncated, or possibly because it cannot be 
read due to the I/O error. Once you've verified your disk is ok and has enough 
space, run "sudo port clean --all clang-3.4 && sudo port uninstall clang-3.4". 
Then build it again on your own system using "sudo port install clang-3.4".

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: problems downloading clang-34 on PPC MAC

2015-12-22 Thread Ryan Schmidt

> On Dec 23, 2015, at 12:38 AM, John T. Chung  wrote:
> 
> Hi Ryan, thanks for the reply. 
> I can rebuild it, if needed, but since it took about 48 hours. I'd prefer to 
> avoid it if possible,
> 
> If this was built on my local system, do you know where the staging directory 
> possibly might be?
> I was just going to see if I can construct that archive manually.

Have you solved whatever problem caused the I/O error? That's the first thing 
to do. If your disk is having a hardware failure, it needs to be replaced. If 
the disk is corrupted, it needs to be repaired. If the disk is full, more space 
needs to be made available.

If you haven't yet run "sudo port clean clang-3.4", the staging directory is 
the directory called "destroot" inside the directory identified by running the 
command "port work clang-3.4".

You should not attempt to create the archive manually. Rather, get MacPorts to 
recreate it.

For example, run "sudo port uninstall clang-3.4", then run "sudo port install 
clang-3.4". This should use the existing destroot directory to make and install 
a new archive.

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: problems downloading clang-34 on PPC MAC

2015-12-22 Thread John T. Chung
Hi Ryan, thanks for the reply.
I can rebuild it, if needed, but since it took about 48 hours. I'd prefer
to avoid it if possible,

If this was built on my local system, do you know where the staging
directory possibly might be?
I was just going to see if I can construct that archive manually.


On Wed, Dec 23, 2015 at 2:10 PM, Ryan Schmidt 
wrote:

>
> On Dec 22, 2015, at 8:21 PM, John T. Chung wrote:
>
> > Hey guys, I'm a PPC G4 trying to install clang.
> > Everything is fine, until I get to this step:
> >
> > clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
> > --->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
> from http://jog.id.packages.macports.org/macports/packages/clang-3.4
> > --->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
> from http://packages.macports.org/clang-3.4
> > --->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
> from http://lil.fr.packages.macports.org/clang-3.4
> > --->  Attempting to fetch clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
> from
> http://mse.uk.packages.macports.org/sites/packages.macports.org/clang-3.4
> >   []   0.0 %speed: 0
> B/s--->  Attempting to fetch
> clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 from
> http://nue.de.packages.macports.org/macports/packages/clang-3.4
> >
> > It downloads clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2, but this
> archive is defective:
> >
> > sh-3.2# bzip2 -dc
> /opt/local/var/macports/software/clang-3.4/clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
> | tar -tvf -
> >
> > -rwxr-xr-x root/wheel4142072 2015-12-23 03:43:02
> ./opt/local/libexec/llvm-3.4/lib/libclangFormat.a
> > -rwxr-xr-x root/wheel   38938928 2015-12-23 03:42:59
> ./opt/local/libexec/llvm-3.4/lib/libclangFrontend.a
> >
> > bzip2: I/O or other error, bailing out.  Possible reason follows.
> > bzip2: Input/output error
> > Input file =
> /opt/local/var/macports/software/clang-3.4/clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2,
> output file = (stdout)
> > tar: Read 6160 bytes from -
> > tar: Unexpected EOF in archive
> > tar: Error is not recoverable: exiting now
> >
> >
> > After which when it tries to activate this, it errs out:
> >
> > -->  Staging clang-3.4 into destroot
> > --->  Installing clang-3.4 @3.4.2_9+analyzer
> > --->  Activating clang-3.4 @3.4.2_9+analyzer
> > Error: org.macports.activate for port clang-3.4 returned: command
> execution failed
> > Please see the log file for port clang-3.4 for details:
> >
>  
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_llvm-3.4/clang-3.4/main.log
> > To report a bug, follow the instructions in the guide:
> > http://guide.macports.org/#project.tickets
> > Error: Processing of port clang-3.4 failed
> >
> >
> > any idea where I can download a working copy of
> clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2
>
> The MacPorts project has never had any PowerPC build machines, so we have
> never offered any binary packages for PowerPC. If you have
> "clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2" on your system, it's likely
> it was build on your own system.
>
> "I/O error" often means you have a problem with your disk. You should
> verify your disk with Disk Utility.
>
> It sounds like the clang-3.4-3.4.2_9+analyzer.darwin_9.ppc.tbz2 file you
> have is corrupt, possibly because it is truncated, or possibly because it
> cannot be read due to the I/O error. Once you've verified your disk is ok
> and has enough space, run "sudo port clean --all clang-3.4 && sudo port
> uninstall clang-3.4". Then build it again on your own system using "sudo
> port install clang-3.4".
>
>


-- 




*John ChungTechnology ArchitectNyquest Consultinghttp://www.nyquest.com
Mobile 419.464.9637 Office: 419.973.9072*
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users