Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2018 16:01:25 +0200
From:      Samy Mahmoudi <samy.mahmoudi@gmail.com>
To:        Jan Beich <jbeich@freebsd.org>
Cc:        x11@freebsd.org
Subject:   Re: [CFT] Mesa 18.2.0 update (mesa-libs, mesa-dri, libosmesa, clover)
Message-ID:  <CAFigVTNdaKZ6bqs_oi-4hC61j82WiVxp0mHWunCzLm=utc8Ycg@mail.gmail.com>
In-Reply-To: <CAFigVTP0KS83yVBYBwcdZm3gtz380MnknEtsy1Ujdz%2B1pGfe9A@mail.gmail.com>
References:  <d0ti-x3mr-wny@FreeBSD.org> <CAFigVTP0KS83yVBYBwcdZm3gtz380MnknEtsy1Ujdz%2B1pGfe9A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I will now reboot on a 11.1 environment.

2018-09-12 15:59 GMT+02:00 Samy Mahmoudi <samy.mahmoudi@gmail.com>:

> On FreeBSD CURRENT-r338488 (testing sandybridge), mesa-libs built fine.
> mesa-dri building failed at configure time:
>
> ===>  Configuring for mesa-dri-18.2.0_1
> configure: loading site script /usr/ports/Templates/config.site
> checking build system type... amd64-portbld-freebsd12.0
> checking host system type... amd64-portbld-freebsd12.0
> checking target system type... amd64-portbld-freebsd12.0
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
> checking for gawk... (cached) /usr/bin/awk
> checking whether gmake sets $(MAKE)... yes
> checking whether gmake supports nested variables... yes
> checking whether UID '0' is supported by ustar format... yes
> checking whether GID '0' is supported by ustar format... yes
> checking how to create a ustar tar archive... (cached) /usr/bin/tar
> checking whether gmake supports nested variables... (cached) yes
> checking for style of include used by gmake... GNU
> checking for gcc... gcc7
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc7 accepts -g... yes
> checking for gcc7 option to accept ISO C89... none needed
> checking whether gcc7 understands -c and -o together... yes
> checking dependency style of gcc7... gcc3
> checking the archiver (/usr/local/bin/ar) interface... ar
> checking how to run the C preprocessor... cpp7
> checking for gcc... (cached) gcc7
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc7 accepts -g... (cached) yes
> checking for gcc7 option to accept ISO C89... (cached) none needed
> checking whether gcc7 understands -c and -o together... (cached) yes
> checking dependency style of gcc7... (cached) gcc3
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++7 accepts -g... yes
> checking dependency style of g++7... gcc3
> checking for grep that handles long lines and -e... (cached) /usr/bin/grep
> checking for BSD- or MS-compatible name lister (nm)... /usr/local/bin/nm
> checking the name lister (/usr/local/bin/nm) interface... BSD nm
> checking dependency style of gcc7... gcc3
> checking for GNU make... gmake
> checking for python2.7... python2.7
> checking for a sed that does not truncate output... (cached) /usr/bin/sed
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking how to print strings... printf
> checking for a sed that does not truncate output... (cached) /usr/bin/sed
> checking for egrep... (cached) /usr/bin/egrep
> checking for fgrep... (cached) /usr/bin/fgrep
> checking for ld used by gcc7... /usr/local/bin/ld
> checking if the linker (/usr/local/bin/ld) is GNU ld... yes
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... (cached) 262144
> checking how to convert amd64-portbld-freebsd12.0 file names to
> amd64-portbld-freebsd12.0 format... func_convert_file_noop
> checking how to convert amd64-portbld-freebsd12.0 file names to toolchain
> format... func_convert_file_noop
> checking for /usr/local/bin/ld option to reload object files... -r
> checking for objdump... /usr/local/bin/objdump
> checking how to recognize dependent libraries... pass_all
> checking for dlltool... no
> checking how to associate runtime and link libraries... printf %s\n
> checking for archiver @FILE support... @
> checking for strip... strip
> checking for ranlib... /usr/local/bin/ranlib
> checking command to parse /usr/local/bin/nm output from gcc7 object... ok
> checking for sysroot... no
> checking for a working dd... /bin/dd
> checking how to truncate binary pipes... /bin/dd bs=4096 count=1
> checking for mt... mt
> checking if mt is a manifest tool... no
> checking for ANSI C header files... (cached) yes
> checking for sys/types.h... (cached) yes
> checking for sys/stat.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking for memory.h... (cached) yes
> checking for strings.h... (cached) yes
> checking for inttypes.h... (cached) yes
> checking for stdint.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for dlfcn.h... (cached) yes
> checking for objdir... .libs
> checking if gcc7 supports -fno-rtti -fno-exceptions... no
> checking for gcc7 option to produce PIC... -fPIC -DPIC
> checking if gcc7 PIC flag -fPIC -DPIC works... yes
> checking if gcc7 static flag -static works... yes
> checking if gcc7 supports -c -o file.o... yes
> checking if gcc7 supports -c -o file.o... (cached) yes
> checking whether the gcc7 linker (/usr/local/bin/ld) supports shared
> libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... freebsd12.0 ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
> checking how to run the C++ preprocessor... g++7 -E
> checking for ld used by g++7... /usr/local/bin/ld
> checking if the linker (/usr/local/bin/ld) is GNU ld... yes
> checking whether the g++7 linker (/usr/local/bin/ld) supports shared
> libraries... yes
> checking for g++7 option to produce PIC... -fPIC -DPIC
> checking if g++7 PIC flag -fPIC -DPIC works... yes
> checking if g++7 static flag -static works... yes
> checking if g++7 supports -c -o file.o... yes
> checking if g++7 supports -c -o file.o... (cached) yes
> checking whether the g++7 linker (/usr/local/bin/ld) supports shared
> libraries... yes
> checking dynamic linker characteristics... freebsd12.0 ld.so
> checking how to hardcode library paths into programs... immediate
> checking for rm... rm -f
> checking for bison... bison -y
> checking if bison is the parser generator... yes
> checking for flex... flex
> checking lex output file root... lex.yy
> checking lex library... -lfl
> checking whether yytext is a pointer... yes
> checking if flex is the lexer generator... yes
> checking for indent... indent
> checking if module mako in python is installed... yes
> checking if compiling with clang... no
> checking whether gcc version is sufficient... yes
> checking whether __SUNPRO_C is declared... no
> checking for __builtin_bswap32... yes
> checking for __builtin_bswap64... yes
> checking for __builtin_clz... yes
> checking for __builtin_clzll... yes
> checking for __builtin_ctz... yes
> checking for __builtin_expect... yes
> checking for __builtin_ffs... yes
> checking for __builtin_ffsll... yes
> checking for __builtin_popcount... yes
> checking for __builtin_popcountll... yes
> checking for __builtin_unreachable... yes
> checking for __attribute__((const))... yes
> checking for __attribute__((flatten))... yes
> checking for __attribute__((format))... yes
> checking for __attribute__((malloc))... yes
> checking for __attribute__((packed))... yes
> checking for __attribute__((pure))... yes
> checking for __attribute__((returns_nonnull))... yes
> checking for __attribute__((unused))... yes
> checking for __attribute__((visibility))... yes
> checking for __attribute__((warn_unused_result))... yes
> checking for __attribute__((weak))... yes
> checking for __attribute__((alias))... yes
> checking for __attribute__((noreturn))... yes
> checking pkg-config is at least version 0.9.0... yes
> checking whether C compiler accepts -Wall... yes
> checking whether C compiler accepts -Werror=implicit-function-declaration...
> yes
> checking whether C compiler accepts -Werror=missing-prototypes... yes
> checking whether C compiler accepts -Wmissing-prototypes... yes
> checking whether C compiler accepts -Wmissing-field-initializers... yes
> checking whether C compiler accepts -fno-math-errno... yes
> checking whether C compiler accepts -fno-trapping-math... yes
> checking whether C compiler accepts -fvisibility=hidden... yes
> checking whether C++ compiler accepts -Wall... yes
> checking whether C++ compiler accepts -fno-math-errno... yes
> checking whether C++ compiler accepts -fno-trapping-math... yes
> checking whether C++ compiler accepts -fvisibility=hidden... yes
> checking whether C++ compiler accepts -Wmissing-field-initializers... yes
> checking whether C compiler accepts -Werror=pointer-arith... yes
> checking whether C compiler accepts -Werror=vla... yes
> checking whether C++ compiler accepts -Werror=pointer-arith... yes
> checking whether C++ compiler accepts -Werror=vla... yes
> checking whether c++11 is enabled by default... yes
> checking whether C compiler accepts -Woverride-init... yes
> checking whether C compiler accepts -Winitializer-overrides... no
> checking whether __atomic_load_n is supported... yes
> checking whether __sync_add_and_fetch_8 is supported... yes
> checking whether byte ordering is bigendian... no
> checking whether gcc supports -mpower8-vector... no
> checking if ld supports -Bsymbolic... yes
> checking whether ld supports --gc-sections... yes
> checking if the linker supports version-scripts... no
> checking if the linker supports --dynamic-list... yes
> checking whether to enable assembly... yes, amd64
> checking whether sys/types.h defines makedev... yes
> checking xlocale.h usability... yes
> checking xlocale.h presence... yes
> checking for xlocale.h... yes
> checking for sys/sysctl.h... (cached) yes
> checking endian.h usability... no
> checking endian.h presence... no
> checking for endian.h... no
> checking for dlfcn.h... (cached) yes
> checking for strtof... (cached) yes
> checking for mkostemp... yes
> checking for timespec_get... yes
> checking for memfd_create... no
> checking whether strtod has locale support... no
> checking for dlopen... (cached) yes
> checking for dladdr... yes
> checking for dl_iterate_phdr... yes
> checking for clock_gettime... (cached) yes
> checking for clock_nanosleep... yes
> checking for posix_memalign... yes
> checking for ZLIB... yes
> checking for the pthreads library -lpthreads... no
> checking whether pthreads work without any flags... no
> checking whether pthreads work with -Kthread... no
> checking whether pthreads work with -kthread... no
> checking for the pthreads library -llthread... no
> checking whether pthreads work with -pthread... yes
> checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
> checking if more special flags are required for pthreads... -D_THREAD_SAFE
> checking for PTHREAD_PRIO_INHERIT... yes
> checking for PTHREADSTUBS... yes
> checking for linux/futex.h... no
> checking for sys/umtx.h... yes
> checking for LIBELF... no
> checking for elf_memory in -lelf... yes
> checking for llvm-config... no
> checking for LIBUNWIND... yes
> checking for LIBDRM... yes
> checking for GLPROTO... yes
> checking for DRI2PROTO... yes
> checking for XF86VIDMODE... yes
> checking for DRIGL... yes
> checking for XCB_DRI2... yes
> checking for XCB_DRI3... yes
> checking for XCB_DRI3_MODIFIERS... yes
> checking for XCB_RANDR... yes
> checking for XLIB_RANDR... yes
> checking for EXPAT... yes
> checking for RADEON... yes
> checking for RADEON... yes
> checking for I915... yes
> checking for mincore... (cached) yes
> checking for VL... yes
> checking for XVMC... yes
> checking for VA... yes
> checking for RADEON... yes
> configure: error: --enable-llvm is required when building r300
> ===>  Script "configure" failed unexpectedly.
> Please report the problem to x11@FreeBSD.org [maintainer] and attach the
> "/usr/ports/graphics/mesa-dri/work/mesa-18.2.0/config.log" including the
> output of the failure of your make command. Also, it might be a good idea
> to
> provide an overview of all packages installed on your system (e.g. a
> /usr/local/sbin/pkg-static info -g -Ea).
> *** Error code 1
>
> Stop.
> make[1]: stopped in /usr/ports/graphics/mesa-dri
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/graphics/mesa-dri
>
>
> 2018-09-12 15:10 GMT+02:00 Jan Beich <jbeich@freebsd.org>:
>
>> Mesa provides OpenGL/Vulkan drivers for Intel/AMD cards and also
>> VAAPI/VDPAU
>> drivers for AMD cards. Recently, a new minor version was released. So far
>> it
>> was only tested Skylake with drm-stable-kmod on 12.0-CURRENT. Can someone
>> test
>> on FreeBSD < 11.2 for regressions? If you find any don't forget to attach
>> /var/log/Xorg.0.log and LIBGL_DEBUG=verbose output in advance.
>>
>> I'd like to land the update sometime after 2018-09-21.
>>
>> # Apply
>> $ fetch -qo /tmp/mesa-18.2.0.diff 'https://reviews.freebsd.org/D
>> 16571?download=true'
>> $ patch -Efsp0 -i /tmp/mesa-18.2.0.diff -d /usr/ports
>> $ make all deinstall install clean -C /usr/ports/graphics/mesa-libs
>> $ make all deinstall install clean -C /usr/ports/graphics/mesa-dri
>>
>> # Undo
>> $ patch -REfsp0 -i /tmp/mesa-18.2.0.diff -d /usr/ports
>> $ make all deinstall install clean -C /usr/ports/graphics/mesa-libs
>> $ make all deinstall install clean -C /usr/ports/graphics/mesa-dri
>>
>> # Testing examples
>> - graphics/mesa-demos: glxgears, eglgears_x11
>> - multimedia/mpv: --hwdec=auto (VAAPI/VDPAU EGL interop)
>> - www/firefox: MOZ_ACCELERATED=1 MOZ_WEBRENDER=1 (GPU compositing)
>> - https://forums.freebsd.org/threads/unreal-engine-4.65300/
>> - devel/vulkan-tools: vulkaninfo
>> - games/vkquake or emulators/{ppsspp,rpcs3} with Vulkan renderer
>> _______________________________________________
>> freebsd-ports@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
>> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFigVTNdaKZ6bqs_oi-4hC61j82WiVxp0mHWunCzLm=utc8Ycg>