Jump to content

Manjaro Linux pacman/makepkg not working, throwing errors and failing to build

So I checked, g++ is installed in /usr/bin/g++ and gcc is installed in /usr/bin/gcc. I'm using kernel 5.6, and have linux56-headers installed. I also have installed base-devel installed. AUR and makepkg worked fine until now, and I have no idea what happened.

 

The error/code:

~ >>> pamac install openboard                                                                                                            

(pamac:20902): dconf-WARNING **: 12:51:14.812: Unable to open /usr/local/share/dconf/profile/user: Permission denied
Warning: openboard is only available from AUR
Build openboard from AUR ? [y/N] y

Preparing...
Cloning openboard build files...
Checking openboard dependencies...
Resolving dependencies...
Checking inter-conflicts...
To build (1):
  openboard  1.5.4-1    AUR

Edit build files ? [y/N] n

Apply transaction ? [y/N] y
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: [redacted]
Password:
==== AUTHENTICATION COMPLETE ====

Building openboard...
==> Making package: openboard 1.5.4-1 (Thu 04 Jun 2020 12:51:25 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v1.5.4.tar.gz
  -> Found qchar.patch
  -> Found qwebkit.patch
  -> Found openboard.desktop
  -> Found quazip.diff
  -> Found poppler.patch
  -> Found drop_ThirdParty_repo.patch
==> Validating source files with md5sums...
    v1.5.4.tar.gz ... Passed
    qchar.patch ... Passed
    qwebkit.patch ... Passed
    openboard.desktop ... Passed
    quazip.diff ... Passed
    poppler.patch ... Passed
    drop_ThirdParty_repo.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting v1.5.4.tar.gz with bsdtar
==> Starting prepare()...
patching file src/core/UBTextTools.cpp
patching file resources/forms/trapFlash.ui
patching file OpenBoard.pro
patching file plugins/cffadaptor/UBCFFAdaptor.pro
patching file OpenBoard.pro
patching file src/pdf/XPDFRenderer.cpp
patching file src/pdf/XPDFRenderer.h
patching file libs.pri
patching file OpenBoard.pro
Hunk #1 succeeded at 46 (offset 1 line).
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Project ERROR: Cannot run compiler 'g++'. Output:
===================
# 1 "/usr/lib/qt/mkspecs/features/data/macros.cpp"
===================
Maybe you forgot to setup the environment?
==> ERROR: A failure occurred in build().
    Aborting...

 

Link to comment
Share on other sites

Link to post
Share on other sites

Can you install the package manually? AUR helpers aren't always 100% trustworthy

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

17 minutes ago, Sauron said:

Can you install the package manually? AUR helpers aren't always 100% trustworthy

Tried to manually makepkg it but it still fails.

~/.../openboard/openboard >>> makepkg -si                                                                                   ±[●●][master]
==> Making package: openboard 1.5.4-1 (Thu 04 Jun 2020 01:53:22 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v1.5.4.tar.gz
  -> Found qchar.patch
  -> Found qwebkit.patch
  -> Found openboard.desktop
  -> Found quazip.diff
  -> Found poppler.patch
  -> Found drop_ThirdParty_repo.patch
==> Validating source files with md5sums...
    v1.5.4.tar.gz ... Passed
    qchar.patch ... Passed
    qwebkit.patch ... Passed
    openboard.desktop ... Passed
    quazip.diff ... Passed
    poppler.patch ... Passed
    drop_ThirdParty_repo.patch ... Passed
==> Extracting sources...
  -> Extracting v1.5.4.tar.gz with bsdtar
==> Starting prepare()...
patching file src/core/UBTextTools.cpp
patching file resources/forms/trapFlash.ui
patching file OpenBoard.pro
patching file plugins/cffadaptor/UBCFFAdaptor.pro
patching file OpenBoard.pro
patching file src/pdf/XPDFRenderer.cpp
patching file src/pdf/XPDFRenderer.h
The next patch would create the file libs.pri,
which already exists!  Assume -R? [n] y
patching file libs.pri
patching file OpenBoard.pro
Hunk #1 succeeded at 46 (offset 1 line).
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Project ERROR: Cannot run compiler 'g++'. Output:
===================
# 1 "/usr/lib/qt/mkspecs/features/data/macros.cpp"
===================
Maybe you forgot to setup the environment?
==> ERROR: A failure occurred in build().
    Aborting...

 

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, JadenCH said:

Tried to manually makepkg it but it still fails.

Check if

make

also gives you the same error

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Sauron said:

Check if


make

also gives you the same error

Do you know a good package/thing to test it on?

Link to comment
Share on other sites

Link to post
Share on other sites

19 minutes ago, Sauron said:

Check if


make

also gives you the same error

Since it's a qt project, I did qmake and got the same error.

 

~/.../src/OpenBoard-1.5.4 >>> qmake                                                                                                             ±[●●][master]
Project ERROR: Cannot run compiler 'g++'. Output:
===================
# 1 "/usr/lib/qt/mkspecs/features/data/macros.cpp"
===================
Maybe you forgot to setup the environment?

 

Link to comment
Share on other sites

Link to post
Share on other sites

18 minutes ago, JadenCH said:

Since it's a qt project, I did qmake and got the same error.

 

~/.../src/OpenBoard-1.5.4 >>> qmake                                                                                                             ±[●●][master]
Project ERROR: Cannot run compiler 'g++'. Output:
===================
# 1 "/usr/lib/qt/mkspecs/features/data/macros.cpp"
===================
Maybe you forgot to setup the environment?

 

I did mean make, if you look inside the pkgbuild it runs qmake first - which produces the error - and then it calls make. Since qmake errors out make is never invoked but I read that sometimes qmake can throw errors like that that are actually spurious and can be ignored.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Sauron said:

I did mean make, if you look inside the pkgbuild it runs qmake first - which produces the error - and then it calls make. Since qmake errors out make is never invoked but I read that sometimes qmake can throw errors like that that are actually spurious and can be ignored.

Ok, but what should I test make on then? Like do you know a program that is compiled/installed with make?

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, JadenCH said:

Ok, but what should I test make on then? Like do you know a program that is compiled/installed with make?

You can test make in the same folder, if qmake actually worked then there should be a makefile

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Sauron said:

You can test make in the same folder, if qmake actually worked then there should be a makefile

Ok

Link to comment
Share on other sites

Link to post
Share on other sites

17 minutes ago, Sauron said:

You can test make in the same folder, if qmake actually worked then there should be a makefile

Well here's the problem. I deleted it and redownloaded it from the AUR and now it only has the openboard.install file and the PKGBUILD file.

Link to comment
Share on other sites

Link to post
Share on other sites

22 minutes ago, Sauron said:

You can test make in the same folder, if qmake actually worked then there should be a makefile

Ok so it actually turns out that what I was trying to qmake was the src folder created by running makepkg. It's what it makes before makepkg fails. There is no makefile, just .pro files.

Link to comment
Share on other sites

Link to post
Share on other sites

29 minutes ago, Sauron said:

You can test make in the same folder, if qmake actually worked then there should be a makefile

Sorry to post so much shit. So I can't find anything that can be put together with make, but CMake also fails when trying to install drawpile from AUR.

 

/usr/.../features/data >>> pamac install drawpile                              

(pamac:26584): dconf-WARNING **: 15:22:26.832: Unable to open /usr/local/share/dconf/profile/user: Permission denied
Warning: drawpile is only available from AUR
Build drawpile from AUR ? [y/N] y

Preparing...
Cloning drawpile build files...
Checking drawpile dependencies...
Resolving dependencies...
Checking inter-conflicts...
To build (3):
  drawpile         2.1.17-1    AUR
  drawpile-client  2.1.17-1    AUR
  drawpile-server  2.1.17-1    AUR

Edit build files ? [y/N] y

Cloning drawpile build files...
Checking drawpile dependencies...
Resolving dependencies...
Checking inter-conflicts...
To build (3):
  drawpile         2.1.17-1    AUR
  drawpile-client  2.1.17-1    AUR
  drawpile-server  2.1.17-1    AUR

Edit build files ? [y/N]

Apply transaction ? [y/N] y
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: [redacted]
Password:
==== AUTHENTICATION COMPLETE ====

Building drawpile...
==> Making package: drawpile 2.1.17-1 (Thu 04 Jun 2020 03:23:25 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found drawpile-2.1.17.tar.gz
==> Validating source files with sha256sums...
    drawpile-2.1.17.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting drawpile-2.1.17.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /var/tmp/pamac-build-anansi/drawpile/src/drawpile-2.1.17/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/make cmTC_8c605/fast && /usr/bin/make  -f CMakeFiles/cmTC_8c605.dir/build.make CMakeFiles/cmTC_8c605.dir/build
    make[1]: Entering directory '/var/tmp/pamac-build-anansi/drawpile/src/drawpile-2.1.17/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_8c605.dir/testCCompiler.c.o
    /usr/bin/cc   -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt    -o CMakeFiles/cmTC_8c605.dir/testCCompiler.c.o   -c /var/tmp/pamac-build-anansi/drawpile/src/drawpile-2.1.17/build/CMakeFiles/CMakeTmp/testCCompiler.c
    cc1: error: /usr/local/include: Permission denied
    make[1]: *** [CMakeFiles/cmTC_8c605.dir/build.make:86: CMakeFiles/cmTC_8c605.dir/testCCompiler.c.o] Error 1
    make[1]: Leaving directory '/var/tmp/pamac-build-anansi/drawpile/src/drawpile-2.1.17/build/CMakeFiles/CMakeTmp'
    make: *** [Makefile:141: cmTC_8c605/fast] Error 2
    
    

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/pamac-build-anansi/drawpile/src/drawpile-2.1.17/build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/pamac-build-anansi/drawpile/src/drawpile-2.1.17/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...

 

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, JadenCH said:

Sorry to post so much shit. So I can't find anything that can be put together with make, but CMake also fails when trying to install drawpile from AUR.

I wouldn't expect cmake to work, there's a reason qmake exists :P honestly it could be a whole host of things that is causing your error, if I were you I'd ask on the AUR page if they know what's going on. Consider that Manjaro is not exactly the same as Arch and so it's possible that you have some incompatible default configuration or library somewhere. You can also try building it directly from github or asking for help in the issues section.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Avoid using pamac for the AUR. I have found it quite unreliable, it bugs out sometimes with normal updates. I personally recommend yay. It is a AUR help. Uses same commands as pacman, which does come with your system. 

 

Start with making sure your system is up to date sudo pacman -Syu or yay -Syu

 

Using yay.

  • yay -S openboard

Using Git + makepkg

 

Keep in mind that while Manjaro is based on Arch, Manjaro typically holds packages back for 2 weeks and sometimes longer.

The Arch User Repository targets Arch, as such dependencies can occasionally break for AUR packages on Manjaro.

 

There also seems to be a flatpak image available. You can install flatpak with sudo pacman -S flatpak. Then install from flathub.

https://flathub.org/apps/details/ch.openboard.OpenBoard

 

OpenBoard does however build for me on Arch Currently.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×