Nominally we'd expect to be able to build with gcc around version 9 (and we
have CI bots that use gcc 9.something). It may be that these need to build
with libstdc++ instead of libc++ though (use_custom_libcxx = false)

On Fri, Aug 5, 2022 at 3:57 AM Yahan Lu <[email protected]> wrote:

> Ok. I find https://libcxx.llvm.org/index.html
>
> Only support gcc 12 or later
>
>
>
> 在2022年8月5日星期五 UTC+8 09:47:04<Yahan Lu> 写道:
>
>> Does v8 support gcc ?
>>
>> Log:
>> ```
>>
>> ../../buildtools/third_party/libc++/trunk/include/__type_traits/decay.h:56:89:
>> error: incomplete type
>> ‘std::Cr::__is_referenceable<std::Cr::default_delete<v8::internal::torque::BitFieldStructType>
>> >’ used in nested name specifier
>>
>>    56 |     typedef _LIBCPP_NODEBUG typename __decay<_Up,
>> __is_referenceable<_Up>::value>::type type;
>>
>>       |
>>                       ^~~~
>>
>> In file included from
>> ../../buildtools/third_party/libc++/trunk/include/memory:851,
>>
>>                  from
>> ../../buildtools/third_party/libc++/trunk/include/string:548,
>>
>>                  from
>> ../../buildtools/third_party/libc++/trunk/include/bitset:128,
>>
>>                  from
>> ../../buildtools/third_party/libc++/trunk/include/ostream:168,
>>
>>                  from
>> ../../buildtools/third_party/libc++/trunk/include/istream:165,
>>
>>                  from
>> ../../buildtools/third_party/libc++/trunk/include/sstream:186,
>>
>>                  from ../../src/base/logging.h:9,
>>
>>                  from ../../src/base/optional.h:15,
>>
>>                  from ../../src/flags/flags.h:8,
>>
>>                  from ../../src/torque/class-debug-reader-generator.cc:5:
>> ```
>>
>>
>>
>>
>> My gcc version:
>>
>> Using built-in specs.
>>
>> COLLECT_GCC=gcc
>>
>> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
>>
>> OFFLOAD_TARGET_NAMES=nvptx-none:hsa
>>
>> OFFLOAD_TARGET_DEFAULT=1
>>
>> Target: x86_64-linux-gnu
>>
>> Configured with: ../src/configure -v --with-pkgversion='Ubuntu
>> 9.4.0-1ubuntu1~20.04.1'
>> --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs
>> --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2
>> --prefix=/usr --with-gcc-major-version-only --program-suffix=-9
>> --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
>> --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
>> --libdir=/usr/lib --enable-nls --enable-clocale=gnu
>> --enable-libstdcxx-debug --enable-libstdcxx-time=yes
>> --with-default-libstdcxx-abi=new --enable-gnu-unique-object
>> --disable-vtable-verify --enable-plugin --enable-default-pie
>> --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto
>> --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
>> --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
>> --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa
>> --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
>> --host=x86_64-linux-gnu --target=x86_64-linux-gnu
>>
>> Thread model: posix
>>
>> gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
>>
> --
> --
> v8-dev mailing list
> [email protected]
> http://groups.google.com/group/v8-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/v8-dev/c80ac17c-a2c7-4c2d-8cdf-612189ab8bccn%40googlegroups.com
> <https://groups.google.com/d/msgid/v8-dev/c80ac17c-a2c7-4c2d-8cdf-612189ab8bccn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/CAGRskv_37paDBPYs0xihHRSdmcKGGRJePeiehJG7psU%2B5V8b%2BQ%40mail.gmail.com.

Reply via email to