Building palemoon master on Debian Sid Jul 12 2017 Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
dasgestoompher

Building palemoon master on Debian Sid Jul 12 2017

Unread post by dasgestoompher » 2017-07-12, 16:39

Hello good people,

I have downloaded palemoon master from github and tried to compile.

I ran apt-get build-dep firefox to grab all the dev dependencies (hopefully).

I used the default build config from instructions:

Code: Select all

# Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding.
ac_add_options --enable-official-branding
export MOZILLA_OFFICIAL=1
 
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-application=browser
 
mk_add_options MOZ_OBJDIR=/home/$USER/pmbuild/
 
ac_add_options --enable-optimize="-O2 -msse2 -mfpmath=sse"
ac_add_options --with-pthreads
 
ac_add_options --disable-installer
ac_add_options --disable-updater
 
ac_add_options --enable-release
ac_add_options --enable-devtools
ac_add_options --enable-jemalloc
ac_add_options --enable-shared-js
 
ac_add_options --enable-strip
 
ac_add_options --x-libraries=/usr/lib
mach output is in pastebin for length
http://paste.debian.net/976168/

Code: Select all

 0:23.08 collect2: error: ld returned 1 exit status
 0:23.08 /home/klopsi/Downloads/pm/Pale-Moon-master/config/rules.mk:818: recipe for target 'libxul.so' failed
What is the cause? TY

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35583
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Building palemoon master on Debian Sid Jul 12 2017

Unread post by Moonchild » 2017-07-12, 16:57

Which version of GCC are you using?
Have you tried a clobber build?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

dasgestoompher

Re: Building palemoon master on Debian Sid Jul 12 2017

Unread post by dasgestoompher » 2017-07-13, 02:10

gcc version 6.4.0 20170704 (Debian 6.4.0-1)

Target: x86_64-linux-gnu

I have only tried the git master from today.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35583
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Building palemoon master on Debian Sid Jul 12 2017

Unread post by Moonchild » 2017-07-13, 17:07

GCC 6 support is experimental at best. Please try building with GCC 4.9 or disabling optimizations (using -Os)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked