Bug 476320 - Build failure with GCC
Summary: Build failure with GCC
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 3.22 GIT
Platform: Other FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-30 09:36 UTC by Paul Floyd
Modified: 2023-11-02 06:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Floyd 2023-10-30 09:36:28 UTC
Unintentionally I built 3.22 RC2 with GCC rather than clang (FReeBSD 13.2 amd64)_

I got this build error

g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../.. -I../../../include -I../../../coregrind -I../../../include -I../../../VEX/pub -I../../../VEX/pub -DVGA_amd64=1 -DVGO_freebsd=1 -DVGP_amd64_freebsd=1 -DVGPV_amd64_freebsd_vanilla=1 -DVGA_SEC_x86=1 -DVGP_SEC_amd64_freebsd=1   -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector  -B/usr/local/lib32/gcc12 -Wl,-rpath,/usr/local/lib32/gcc12/ -m32 -mmmx -msse  -MT pcmpgt.o -MD -MP -MF $depbase.Tpo -c -o pcmpgt.o pcmpgt.cpp &&\
mv -f $depbase.Tpo $depbase.Po
g++ -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector  -B/usr/local/lib32/gcc12 -Wl,-rpath,/usr/local/lib32/gcc12/ -m32 -mmmx -msse    -o pcmpgt pcmpgt.o  
/usr/local/bin/ld: /usr/local/lib32/gcc12/libstdc++.so: undefined reference to `__divmoddi4@GCC_7.0.0'
collect2: error: ld returned 1 exit status

It's probably a missing -lgcc or something like that.

Not a blocking iussue.
Comment 1 Paul Floyd 2023-11-02 06:57:41 UTC
Builds ok now. Should clean up the warnings though.