pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: i386-current ICE/Bus error building wxGTK30?



On Sun 26 Jan 2020 at 14:50:46 +0100, Martin Husemann wrote:
> On Sun, Jan 26, 2020 at 02:36:57PM +0100, Rhialto wrote:
> > which helped for my case. Although I didn't get ICEs, if I remember
> > correctly, but some error which in a difficult way wanted to tell me
> > that upon reading the precompiled header file, the addresses weren't the
> > same any more.
> 
> This is a design problem with gcc's precompiled header support. They are
> not relocatble, so the compiler tries to guess a memory address (depending
> on the OS/architecture) that is likely to be free and uses that both when
> creating the data and when loading it from disk.
> 
> If the address is not available on load, the compiler aborts.
> 
> IIRC the compiler error shows the address it tries to load the data to,
> maybe we need to patch it? Can you show the exact error message?

For me it didn't: this happened while building boost-libs with gcc7 from
pkgsrc (extract). The build doesn't stop when this happens so you may
have to search for the messages if you don't notice them right away.

    "g++"   -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3 -finline-functions -Wno-inline -Wall -fvisibility=hidden -fvisibility=hidden -Winvalid-pch -DBOO
ST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/laguerrel.o" "libs/math/build/../src/tr1/laguerrel.cpp"

...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/laguerrel.o...
gcc.compile.c++ bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/hermitel.o
libs/math/build/../src/tr1/hermitel.cpp:1:0: fatal error: had to relocate PCH
 //  Copyright John Maddock 2008.

compilation terminated.

    "g++"   -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3 -finline-functions -Wno-inline -Wall -fvisibility=hidden -fvisibility=hidden -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/hermitel.o" "libs/math/build/../src/tr1/hermitel.cpp"

...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/hermitel.o...
gcc.compile.c++ bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/legendrel.o libs/math/build/../src/tr1/legendrel.cpp:1:0: fatal error: had to relocate PCH 
 //  Copyright John Maddock 2008.

compilation terminated.

    "g++"   -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3 -finline-functions -Wno-inline -Wall -fvisibility=hidden -fvisibility=hidden -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/legendrel.o" "libs/math/build/../src/tr1/legendrel.cpp"

...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/legendrel.o...
gcc.compile.c++ bin.v2/libs/math/build/gcc-7.4.0/release/threading-multi/visibility-hidden/riemann_zetal.o
libs/math/build/../src/tr1/riemann_zetal.cpp:1:0: fatal error: had to relocate PCH
 //  Copyright John Maddock 2008.

compilation terminated.

> Side note: we are talking about a base system gcc here or pkgsrc gcc?
> Which version?

Pkgsrc gcc 7.4.0.

> Martin
-Olaf.
-- 
Olaf 'Rhialto' Seibert -- rhialto at falu dot nl
___  Anyone who is capable of getting themselves made President should on
\X/  no account be allowed to do the job.       --Douglas Adams, "THGTTG"

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index