Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: undefined symbol: google::kLogSiteUninitialized #807

Open
5 of 10 tasks
Martinfx opened this issue Jun 11, 2022 · 4 comments
Open
5 of 10 tasks

error: undefined symbol: google::kLogSiteUninitialized #807

Martinfx opened this issue Jun 11, 2022 · 4 comments
Labels
type:bug Something isn't working

Comments

@Martinfx
Copy link

Martinfx commented Jun 11, 2022

Make sure to follow our issue report guidelines

  • I'm using the latest version of Natron (not required but recommended)
  • I've restarted Natron and the issue persists
  • I've run Natron via the command line and the issue persists
  • I've followed the contributing guidelines to the best of my understanding
  • My issue is not on the issue tracker or in a pull request already (go search for it and dig around a little bit!)
  • This bug is reproducible

Natron version

v2.5.0-alpha.2

Operating system

FreeBSD 13.1

System specs

CPU: AMD Ryzen 5 1600 Six-Core Processor (3200.28-MHz K8-class CPU)
Origin="AuthenticAMD" Id=0x800f11 Family=0x17 Model=0x1 Stepping=1
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD Features2=0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX>
Structured Extended Features=0x209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA>
XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
AMD Extended Feature Extensions ID EBX=0x1007<CLZERO,IRPerf,XSaveErPtr,IBPB>
SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
TSC: P-state invariant, performance statistics
real memory = 8589934592 (8192 MB)
avail memory = 8231763968 (7850 MB)

Did you install Natron using the official installer?

  • Yes, I used the official installer
  • No, I installed from a binary archive
  • No, I compiled Natron from sources
  • No, I installed Natron via another method

Custom installation path

No response

What were you trying to do?

Normal test compilation and make port to freshport back

What did you expect to happen? What happened instead?

Normal compilation but undefined symbol

clang++ -Wl,-rpath,'$ORIGIN/../lib',-z,origin -pthread -Wl,-rpath,/usr/local/lib/qt5 -o Tests gtest-all.o gmock-all.o BaseTest.o Hash64_Test.o Image_Test.o Lut_Test.o KnobFile_Test.o Curve_Test.o Tracker_Test.o wmain.o   -L/usr/local/lib -L/usr/home/maxfx/Documents/Natron/Tests/../Gui/ -lGui -L/usr/home/maxfx/Documents/Natron/Tests/../Engine/ -lEngine -L/usr/home/maxfx/Documents/Natron/Tests/../HostSupport/ -lHostSupport -L/usr/home/maxfx/Documents/Natron/Tests/../libs/libmv/ -lLibMV -L/usr/home/maxfx/Documents/Natron/Tests/../libs/openMVG/ -lopenMVG -L/usr/home/maxfx/Documents/Natron/Tests/../libs/ceres/ -lceres -L/usr/home/maxfx/Documents/Natron/Tests/../libs/glog/ -lglog -L/usr/home/maxfx/Documents/Natron/Tests/../libs/gflags/ -lgflags -L/usr/home/maxfx/Documents/Natron/Tests/../libs/qhttpserver/build/ -lqhttpserver -L/usr/home/maxfx/Documents/Natron/Tests/../libs/hoedown/build/ -lhoedown -L/usr/home/maxfx/Documents/Natron/Tests/../libs/libtess/ -ltess -lX11 -lpython3.8 -lcrypt -ldl -lintl -lutil -lm -lboost_serialization -lexpat -lcairo -lpthread -lfontconfig -lfreetype -Llib -lpyside2.cpython-38 -lshiboken2.cpython-38 -lexecinfo /usr/local/lib/qt5/libQt5OpenGL.so /usr/local/lib/qt5/libQt5Widgets.so /usr/local/lib/qt5/libQt5Gui.so /usr/local/lib/qt5/libQt5Network.so /usr/local/lib/qt5/libQt5Concurrent.so /usr/local/lib/qt5/libQt5Core.so -lGL   
ld: error: undefined symbol: google::kLogSiteUninitialized
>>> referenced by track_region.cc
>>>               track_region.o:(libmv::(anonymous namespace)::PixelDifferenceCostFunctor<libmv::(anonymous namespace)::TranslationWarp>::PearsonProductMomentCorrelationCoefficient(double const*) const) in archive /usr/home/maxfx/Documents/Natron/Tests/../libs/libmv/libLibMV.a
>>> referenced by track_region.cc
>>>               track_region.o:(libmv::(anonymous namespace)::PixelDifferenceCostFunctor<libmv::(anonymous namespace)::TranslationWarp>::PearsonProductMomentCorrelationCoefficient(double const*) const) in archive /usr/home/maxfx/Documents/Natron/Tests/../libs/libmv/libLibMV.a
>>> referenced by track_region.cc
>>>               track_region.o:(ceres::AutoDiffCostFunction<libmv::(anonymous namespace)::PixelDifferenceCostFunctor<libmv::(anonymous namespace)::TranslationWarp>, -1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0>::Evaluate(double const* const*, double*, double**) const) in archive /usr/home/maxfx/Documents/Natron/Tests/../libs/libmv/libLibMV.a

Step-by-step reproduction instructions

  1. I did this https://github.com/NatronGitHub/Natron/blob/RB-2.5/INSTALL_FREEBSD.md
  2. qmake-qt5
  3. gmake

Additional details

No response

@Martinfx Martinfx added the type:bug Something isn't working label Jun 11, 2022
@rodlie
Copy link
Contributor

rodlie commented Jun 11, 2022

Just guessing:

Is it trying to link against glog installed through ports (/usr/local/lib)?

@Martinfx
Copy link
Author

I have installed glog in /usr/local/lib

@devernay
Copy link
Member

-L/usr/local/lib should come after all the natron-specific libraries (last one is -ltess. My guess is that you have that in your links flags, and you should remove it from there and make sure it comes just after -ltess on that link line

@arrowd
Copy link

arrowd commented Jun 14, 2022

But it is Natron's build system that arranges compiler flags that way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants