I managed to partially fix the issue mentioned by @CatchACode. Adding -Wno-incompatible-pointer-types
to the cflags gets the process a bit further. However this does not fully work, there seems to be a issue with dlfcs:
cc1plus: warning: command-line option ‘-Wno-incompatible-pointer-types’ is valid for C/ObjC but not for C++
/home/jaap/applications/gcc11/src/gcc/gcc/plugin.c: In function ‘bool try_init_one_plugin(plugin_name_args*)’:
/home/jaap/applications/gcc11/src/gcc/gcc/plugin.c:703:42: error: ‘RTLD_NOW’ was not declared in this scope
703 | dl_handle = dlopen (plugin->full_name, RTLD_NOW | RTLD_GLOBAL);
| ^~~~~~~~
/home/jaap/applications/gcc11/src/gcc/gcc/plugin.c:703:53: error: ‘RTLD_GLOBAL’ was not declared in this scope
703 | dl_handle = dlopen (plugin->full_name, RTLD_NOW | RTLD_GLOBAL);
| ^~~~~~~~~~~
/home/jaap/applications/gcc11/src/gcc/gcc/plugin.c:703:15: error: ‘dlopen’ was not declared in this scope; did you mean ‘popen’?
703 | dl_handle = dlopen (plugin->full_name, RTLD_NOW | RTLD_GLOBAL);
| ^~~~~~
| popen
/home/jaap/applications/gcc11/src/gcc/gcc/plugin.c:706:62: error: ‘dlerror’ was not declared in this scope; did you mean ‘perror’?
706 | error ("cannot load plugin %s: %s", plugin->full_name, dlerror ());
| ^~~~~~~
| perror
/home/jaap/applications/gcc11/src/gcc/gcc/plugin.c:711:3: error: ‘dlerror’ was not declared in this scope; did you mean ‘perror’?
711 | dlerror ();
| ^~~~~~~
| perror
/home/jaap/applications/gcc11/src/gcc/gcc/plugin.c:714:7: error: ‘dlsym’ was not declared in this scope
714 | if (dlsym (dl_handle, str_license) == NULL)
| ^~~~~
/home/jaap/applications/gcc11/src/gcc/gcc/plugin.c:720:7: error: ‘dlsym’ was not declared in this scope
720 | = dlsym (dl_handle, str_plugin_init_func_name);
| ^~~~~
/home/jaap/applications/gcc11/src/gcc/gcc/plugin.c:725:7: error: ‘dlclose’ was not declared in this scope; did you mean ‘pclose’?
725 | dlclose(dl_handle);
| ^~~~~~~
| pclose
/home/jaap/applications/gcc11/src/gcc/gcc/plugin.c:734:7: error: ‘dlclose’ was not declared in this scope; did you mean ‘pclose’?
734 | dlclose(dl_handle);
| ^~~~~~~
| pclose
Pinned Comments
lahwaacz commented on 2023-08-27 15:27 (UTC)
@AskAlice It is much simpler to set the
MAKEFLAGS
environment variable, e.g.export MAKEFLAGS="-j$(nproc)"
, and then build the package. See the relevant wiki section: https://wiki.archlinux.org/title/Makepkg#Parallel_compilationC0rn3j commented on 2023-06-19 09:21 (UTC)
To import the new key:
gpg --keyserver hkps://keyserver.ubuntu.com --recv-key 6C35B99309B5FA62
FabioLolix commented on 2023-05-16 07:26 (UTC)
@DarshK35 you need to add the PGP key, gcc is better build in chroot with devtools (don't know what is using manjaro nowdays)
@joshm gcc is quite long, especially if makepkg.conf isn't configured to use all cores