Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297123 - filezilla fails to compile with 'fatal error: had to relocate PCH'
Summary: filezilla fails to compile with 'fatal error: had to relocate PCH'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-16 06:18 UTC by Marek Zachara
Modified: 2010-01-11 20:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
attached preprocessed sources (as per compiler log request) (preprocessed_sources.tgz,936.46 KB, application/x-gtar)
2009-12-16 06:38 UTC, Marek Zachara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Zachara 2009-12-16 06:18:16 UTC
None of the versions i tried (3.2.4.1-r1, 3.2.8.1, 3.3.0.1) compiles on my hardened amd64 system (although it does compile on my another amd64 machine).
below is the relevant part of compilation log 

make[2]: Entering directory `/var/tmp/paludis/net-ftp-filezilla-3.3.0.1/work/filezilla-3.3.0.1/src/engine'           
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src/include -I./../include  -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__   -O2 -pipe -march=nocona -Wall -g -fexceptions -MT libengine_a-backend.o -MD -MP -MF .deps/libengine_a-backend.Tpo -c -o libengine_a-backend.o `test -f 'backend.cpp' || echo './'`backend.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src/include -I./../include  -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__   -O2 -pipe -march=nocona -Wall -g -fexceptions -MT libengine_a-commands.o -MD -MP -MF .deps/libengine_a-commands.Tpo -c -o libengine_a-commands.o `test -f 'commands.cpp' || echo './'`commands.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src/include -I./../include  -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__   -O2 -pipe -march=nocona -Wall -g -fexceptions -MT libengine_a-ControlSocket.o -MD -MP -MF .deps/libengine_a-ControlSocket.Tpo -c -o libengine_a-ControlSocket.o `test -f 'ControlSocket.cpp' || echo './'`ControlSocket.cpp
backend.cpp:1: fatal error: had to relocate PCH
compilation terminated.
ControlSocket.cpp:1: fatal error: had to relocate PCH
compilation terminated.
commands.cpp:1: fatal error: had to relocate PCH
compilation terminated.
Comment 1 Marek Zachara 2009-12-16 06:38:52 UTC
Created attachment 213158 [details]
attached preprocessed sources (as per compiler log request)
Comment 2 Marek Zachara 2009-12-16 06:39:29 UTC
paludis 0.40.1
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.1.2 (Gentoo 4.1.2 p1.1)
        CXXFLAGS:               -O2 -pipe -march=nocona
        LDFLAGS:               -Wl,-O1
        DATE:                  2009-10-15T08:32:22+0200

    Libraries:
        C++ Library:           GNU libstdc++ 20070214

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      /usr/lib64/python2.6/site-packages
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

System:
    Linux palantir 2.6.29-hardened #3 SMP Tue Dec 15 06:28:36 CET 2009 x86_64 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz GenuineIntel GNU/Linux

Reduced Privs:
    reduced_uid:               101
    reduced_uid->name:         paludisbuild
    reduced_uid->dir:          /var/tmp/paludis
    reduced_gid:               407
    reduced_gid->name:         paludisbuild

Environment:
    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/db/pkg/world

Repository local:
    format:                    unavailable
    location:                  /mnt/varia/repositories/local
    sync:
    sync_options:

Repository installed-virtuals:
    format:                    installed_virtuals
    root:                      /

Repository virtuals:
    format:                    virtuals

Repository gentoo:
    format:                    ebuild
    location:                  /mnt/varia/repositories/gentoo
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:
    binary_uri_prefix:
    builddir:                  /var/tmp/paludis
    cache:                     /mnt/varia/repositories/gentoo/metadata/cache
    distdir:                   /mnt/varia/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /mnt/varia/repositories/gentoo/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    names_cache:               /var/cache/paludis/names
    newsdir:                   /mnt/varia/repositories/gentoo/metadata/news
    profile_eapi_when_unspecified: 0
    profiles:                  /mnt/varia/repositories/gentoo/profiles/hardened/linux/amd64/10.0
    securitydir:               /mnt/varia/repositories/gentoo/metadata/glsa
    setsdir:                   /mnt/varia/repositories/gentoo/sets
    sync:                      rsync://rsync.gentoo.org/gentoo-portage
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       4.0_p35
        dev-java/java-config:  2.1.9-r1
        dev-lang/python:       2.4.4-r13 2.5.4-r3 2.6.4
        dev-python/pycrypto:   (none)
        dev-util/ccache:       (none)
        dev-util/cmake:        2.6.4-r3
        dev-util/confcache:    (none)
        sys-apps/baselayout:   1.12.13
        sys-apps/openrc:       (none)
        sys-apps/sandbox:      1.6-r2
        sys-devel/autoconf:    2.13 2.63-r1
        sys-devel/automake:    1.10.2 1.7.9-r1 1.9.6-r2
        sys-devel/binutils:    2.18-r3
        sys-devel/gcc-config:  1.4.1
        sys-devel/libtool:     2.2.6b
        virtual/os-headers:    2.6.27-r2 (for sys-kernel/linux-headers::installed)

Repository kde:
    format:                    ebuild
    location:                  /mnt/varia/repositories/kde-testing
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:
    binary_uri_prefix:
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /mnt/varia/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /mnt/varia/repositories/gentoo/eclass /mnt/varia/repositories/kde-testing/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names
    newsdir:                   /mnt/varia/repositories/kde-testing/metadata/news
    profile_eapi_when_unspecified: 0
    profiles:                  /mnt/varia/repositories/gentoo/profiles/hardened/linux/amd64/10.0
    securitydir:               /mnt/varia/repositories/kde-testing/metadata/glsa
    setsdir:                   /mnt/varia/repositories/kde-testing/sets
    sync:                      git://git.overlays.gentoo.org/proj/kde.git
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository installed:
    format:                    vdb
    location:                  /var/db/pkg
    builddir:                  /var/tmp/paludis
    eapi_when_unknown:         0
    names_cache:               /var/db/pkg/.cache/names
    provides_cache:            /var/db/pkg/.cache/provides
    root:                      /

Repository sabayon:
    format:                    ebuild
    location:                  /mnt/varia/repositories/sabayon
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:
    binary_uri_prefix:
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /mnt/varia/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /mnt/varia/repositories/gentoo/eclass /mnt/varia/repositories/sabayon/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names
    newsdir:                   /mnt/varia/repositories/sabayon/metadata/news
    profile_eapi_when_unspecified: 0
    profiles:                  /mnt/varia/repositories/gentoo/profiles/hardened/linux/amd64/10.0
    securitydir:               /mnt/varia/repositories/sabayon/metadata/glsa
    setsdir:                   /mnt/varia/repositories/sabayon/sets
    sync:                      git://sabayon.org/projects/overlay.git
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

        >>> Running ebuild phase killold as paludisbuild:paludisbuild...
        >>> Starting builtin_killold
        >>> Done builtin_killold
        >>> Completed ebuild phase killold
        >>> Running ebuild phases initmisc infovars as paludisbuild:paludisbuild...
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-O2 -pipe -march=nocona
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT=
        CONFIG_PROTECT_MASK=
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-O2 -pipe -march=nocona
        DISTDIR=/mnt/varia/distfiles
        FEATURES=
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1
        LINGUAS=en
        MAKEOPTS=-j3
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_CONFIGROOT=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/mnt/varia/repositories/gentoo
        PORTDIR_OVERLAY=
        SYNC=
        USE=dbus nls amd64 alsa_cards_hda-intel alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en ruby_targets_ruby18 userland_GNU video_cards_intel video_cards_vesa amd64
        >>> Done builtin_infovars
        >>> Completed ebuild phases initmisc infovars
        >>> Running ebuild phase tidyup as paludisbuild:paludisbuild...
        >>> Starting builtin_tidyup
        rm -fr /var/tmp/paludis/net-ftp-filezilla-3.3.0.1-info
        >>> Done builtin_tidyup
        >>> Completed ebuild phase tidyup
Comment 3 Jory A. Pratt gentoo-dev 2009-12-31 01:21:57 UTC
# Hardened versions of gcc-4.0* through gcc-4.2* are not available.
source : /usr/portage/profile/hardened/package.mask
=sys-devel/gcc-4.0*
=sys-devel/gcc-4.1*
=sys-devel/gcc-4.2*
# Mask non-hardened+non-testing gcc-4.3.x releases.
=sys-devel/gcc-4.3.2*
# No hardened >=sys-devel/gcc-4.4 available.
>=sys-devel/gcc-4.4

You will need to use a properly supported hardened toolchain, I have been unable to reproduce a file either in compile or runtime. Please reopen once you update toolchain and recompile entire system.
Comment 4 Marek Zachara 2010-01-11 20:26:59 UTC
You are right, actually i had the correct gcc version istalled, but together with older 4.1.2 (afair) and the old one was set as default. Changing it to the right one let me compile filezilla

thanks and my apologies.
Marek