[cfe-users] how to verify downloads without public key?

2019-04-12 Thread Larry Evans via cfe-users

I've just downloaded:

http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz.sig

but when I tried to verify the download with:

gpg2 --verify clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz.sig 
clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz


I got:

gpg: enabled debug flags: memstat
gpg: Signature made Thu 21 Mar 2019 03:34:38 AM CDT
gpg:using RSA key B6C8F98282B944E3B0D5C2530FC3042E345AD05D
gpg: Can't check signature: No public key

How can I verify the download without a public key?

-regards,
Larry

___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] how to verify downloads without public key?

2019-04-12 Thread Matthew Fernandez via cfe-users

> On Apr 12, 2019, at 04:10, Larry Evans via cfe-users 
>  wrote:
> 
> I've just downloaded:
> 
> http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
> http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz.sig
> 
> but when I tried to verify the download with:
> 
> gpg2 --verify clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz.sig 
> clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
> 
> I got:
> 
> gpg: enabled debug flags: memstat
> gpg: Signature made Thu 21 Mar 2019 03:34:38 AM CDT
> gpg:using RSA key B6C8F98282B944E3B0D5C2530FC3042E345AD05D
> gpg: Can't check signature: No public key
> 
> How can I verify the download without a public key?

GPG needs to learn the public key of the signer first. You can retrieve this 
using the ID given on the downloads page:

gpg2 --recv-keys 345AD05D
___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


[cfe-users] Relocating prebuilt modules

2019-04-12 Thread Alexandre Rames via cfe-users
Hello there,

I am looking for some help with how to relocate prebuilt modules.
My desired workflow is:
- prebuild modules on host
- copy modules to a target
- use the prebuilt modules on target through `-fprebuilt-module-path`.
My attempts are failing, as it seems the absolute path to the modules when
compiled is embedded in the PCMs.

Recreating the target path to prebuilt modules on the host does not look
like an option, as:
- the target path would be within a path that users do not have permissions
to on the host
- I'd rather not touch anything out of the project build tree.

Am I missing the correct way to do this?

For reference, below is a simple test-case highlighting the issue.

Cheers!

Alexandre


#!/bin/bash

set -x

rm -rf build prebuilt_modules

cat << EOF > module.modulemap
module foo { header "foo.h" }
module bar { header "bar.h" }
EOF

cat << EOF > foo.h
// empty
EOF

cat << EOF > bar.h
#include "foo.h"
EOF

cat < use.c
#include "bar.h"
EOF

# Prebuild modules
clang -cc1 -x c -fmodules -fno-implicit-modules module.modulemap
-fmodule-name=foo -emit-module -o build/prebuilt_modules/foo.pcm
clang -cc1 -x c -fmodules -fno-implicit-modules module.modulemap
-fmodule-name=bar -emit-module -o build/prebuilt_modules/bar.pcm
-fprebuilt-module-path=build/prebuilt_modules

# Using them in-place works fine.
clang -cc1 -x c -fmodules -fmodule-map-file=module.modulemap
-fno-implicit-modules use.c -o /dev/null
-fprebuilt-module-path=build/prebuilt_modules

# Relocating and using fails.
mv build/prebuilt_modules prebuilt_modules
clang -cc1 -x c -fmodules -fmodule-map-file=module.modulemap
-fno-implicit-modules use.c -o /dev/null
-fprebuilt-module-path=prebuilt_modules
# use.c:1:2: fatal error: module file
'./build/prebuilt_modules/foo.pcm' not found: module file not found
# #include "bar.h"
#  ^
# use.c:1:2: note: imported by module 'bar' in
'/Volumes/work/topics/modules/relocation/example/prebuilt_modules/bar.pcm'
___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


[cfe-users] No access to gcc30{0,1,2,3}.fsffrance.org

2019-04-12 Thread Aleksey Cheusov via cfe-users
It seems to me there is no access to gcc30{0,1,2,3} machines.
What am I doing wrong?
Are they running?

___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users