LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-23-2017, 06:10 AM   #1
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,027

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Pale Moon 27.3.0 and GCC-7.1


Am running Slack64-current and alienBob's build of Pale Moon 27.3.0. Moon seems to run OK except that I can't get the FireFTP (2.0.19.1-signed) extension to allow input of ftp sites so I thought I would build it on my system to see it that helped (have been using FF but the latest Slack release of 52.1.2esr has a lot of problems on my machine). Tried building PM using alienBob's script but it fails with errors -

./checkpkg -l build.log
++ Checking logfile 'build.log' (no news is good news):
122495: 0:55.70 ../../dist/include/mozilla/mozalloc.h:207:33: error: 'bad_alloc' in namespace 'std' does not name a type
122498: 0:55.70 ../../dist/include/mozilla/mozalloc.h:213:44: error: 'nothrow_t' in namespace 'std' does not name a type
122501: 0:55.70 ../../dist/include/mozilla/mozalloc.h:219:35: error: 'bad_alloc' in namespace 'std' does not name a type
122504: 0:55.70 ../../dist/include/mozilla/mozalloc.h:225:46: error: 'nothrow_t' in namespace 'std' does not name a type
122507: 0:55.70 ../../dist/include/mozilla/mozalloc.h:237:44: error: 'nothrow_t' in namespace 'std' does not name a type
122510: 0:55.70 ../../dist/include/mozilla/mozalloc.h:249:46: error: 'nothrow_t' in namespace 'std' does not name a type
122628: 0:57.52 gmake[5]: *** [/tmp/build/tmp-palemoon/Pale-Moon-27.3.0_Release/config/rules.mk:938: BatteryManager.o] Error 1
122629: 0:57.52 gmake[4]: *** [/tmp/build/tmp-palemoon/Pale-Moon-27.3.0_Release/config/recurse.mk:74: dom/battery/target] Error 2
122941: 1:23.30 gmake[3]: *** [/tmp/build/tmp-palemoon/Pale-Moon-27.3.0_Release/config/recurse.mk:37: compile] Error 2
122942: 1:23.30 gmake[2]: *** [/tmp/build/tmp-palemoon/Pale-Moon-27.3.0_Release/config/rules.mk:541: default] Error 2
122943: 1:23.30 gmake[1]: *** [/tmp/build/tmp-palemoon/Pale-Moon-27.3.0_Release/client.mk:398: realbuild] Error 2
122944: 1:23.30 gmake: *** [client.mk:171: build] Error 2
122946: ./palemoon.SlackBuild FAILED at line 282
|install mawk). For LFS: we put mktemp in /usr/bin not /bin, remove

A lot of searching shows that these mozalloc.h related errors are common when gcc is upgraded. Have found some proposed patches for these errors but they don't help in my hands. Not being a programmer I am at a loss as how to fix the errors. Has anyone found a way around? BTW am running the latest gcc-7.1 build from the updates of 22.5.17.
 
Old 05-29-2017, 10:04 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,077

Rep: Reputation: Disabled
To get an answer, I suggest that you request a moderator to move your post in the Slackware forum (just click Report on the bottom of your post). Alternatively post in this thread or comment this blog post.

Last edited by Didier Spaier; 05-29-2017 at 10:28 AM.
 
Old 05-30-2017, 02:08 AM   #3
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,027

Original Poster
Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
OK, asked mods to move it although the problem has nothing to do with Slackware per se. It's just that Blue Moon needs a patch to build with gcc-7.1. Always happens with large gcc version jumps. Takes a while for software to catch up.
 
Old 05-31-2017, 12:36 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
On SBo, they actually provide an option to use gcc 4.9.4 if it exists on your system. In the PaleMoon README, they state the following:

Quote:
If you experience crashes when visiting some sites, notable yahoo.com,
using a different compiler will likely resolve these issues. Gcc-4.9.4
is most likely the "best" compiler to use. Some users report that compiling
with clang also resolves crashes. Both, clang and the default GCC Slackware
ships with, however, are unsupported; but may work. If gcc-4.9.4 is installed
and detected, the script will compile PaleMoon with it; however, if you pass
the script the variable CC=clang and CXX=clang++ (for example) the script will
atempt to compile PaleMoon using clang (replace clang and clang++ with
whatever compiler is desired, and present in the system). If you desire to
install and use gcc-4.9.4 (and need help), visit the wiki help link above.
They have a gcclegacy494 package available on SBo.
 
Old 06-01-2017, 02:40 AM   #5
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,027

Original Poster
Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Thanks for that bassmadrigal. Will have a look. Goal is to build it with 7.1 though.
 
Old 06-01-2017, 03:14 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by 3rensho View Post
Thanks for that bassmadrigal. Will have a look. Goal is to build it with 7.1 though.
You could start by adding " -std=gnu++98" to the CXXFLAGS, sometimes that is enough to make older code compile with the new stricter g++.
 
  


Reply

Tags
slackware current



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get up and down arrows in Pale Moon rstuff Linux - Newbie 4 01-20-2017 02:51 AM
[SOLVED] Pale Moon vs Firefox storkus Slackware 35 09-07-2015 01:47 PM
Pale Moon browser JWJones Linux - Software 4 04-02-2015 12:06 PM
Pale Moon Browser TigerLinux General 10 12-28-2011 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration