Groups
Groups
Sign in
Groups
Groups
pdfium
Conversations
About
Send feedback
Help
Error when compile latest version
75 views
Skip to first unread message
Paulo Coutinho
unread,
Aug 26, 2023, 9:43:25 PM
8/26/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfium
Hi,
I get this error when try compile last version:
https://github.com/paulocoutinhox/pdfium-lib/actions/runs/5983221059/job/16233133947#step:14:529
LOG:
In file included from ../../base/allocator/partition_allocator/shim/nonscannable_allocator.cc:5:
In file included from ../../base/allocator/partition_allocator/shim/nonscannable_allocator.h:10:
In file included from ../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/memory:671
:
In file included from ../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__functional_base:23
:
../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/new:199:1
: error: visibility does not match previous declaration
199 | _LIBCPP_OVERRIDABLE_FUNC_VIS void operator delete(void* __p, std::align_val_t) _NOEXCEPT;
| ^
../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__config:778:38
: note: expanded from macro '_LIBCPP_OVERRIDABLE_FUNC_VIS'
778 | #define _LIBCPP_OVERRIDABLE_FUNC_VIS _LIBCPP_FUNC_VIS
| ^
../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__config:735:46
: note: expanded from macro '_LIBCPP_FUNC_VIS'
735 | # define _LIBCPP_FUNC_VIS __attribute__ ((__visibility__("default")))
| ^
note: previous attribute is here
In file included from ../../base/allocator/partition_allocator/shim/nonscannable_allocator.cc:5:
In file included from ../../base/allocator/partition_allocator/shim/nonscannable_allocator.h:10:
In file included from ../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/memory:671
:
In file included from ../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__functional_base:23
:
../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/new:205:31
: error: visibility does not match previous declaration
205 | _LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_OVERRIDABLE_FUNC_VIS void* operator new[](std::size_t __sz, std::align_val_t) _THROW_BAD_ALLOC;
| ^
../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__config:778:38
: note: expanded from macro '_LIBCPP_OVERRIDABLE_FUNC_VIS'
778 | #define _LIBCPP_OVERRIDABLE_FUNC_VIS _LIBCPP_FUNC_VIS
| ^
../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__config:735:46
: note: expanded from macro '_LIBCPP_FUNC_VIS'
735 | # define _LIBCPP_FUNC_VIS __attribute__ ((__visibility__("default")))
| ^
note: previous attribute is here
In file included from ../../base/allocator/partition_allocator/shim/nonscannable_allocator.cc:5:
In file included from ../../base/allocator/partition_allocator/shim/nonscannable_allocator.h:10:
In file included from ../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/memory:671
:
In file included from ../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__functional_base:23
:
../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/new:207:1
: error: visibility does not match previous declaration
207 | _LIBCPP_OVERRIDABLE_FUNC_VIS void operator delete[](void* __p, std::align_val_t) _NOEXCEPT;
| ^
../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__config:778:38
: note: expanded from macro '_LIBCPP_OVERRIDABLE_FUNC_VIS'
778 | #define _LIBCPP_OVERRIDABLE_FUNC_VIS _LIBCPP_FUNC_VIS
| ^
../../../../../../../../../../Applications/
Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/__config:735:46
: note: expanded from macro '_LIBCPP_FUNC_VIS'
735 | # define _LIBCPP_FUNC_VIS __attribute__ ((__visibility__("default")))
| ^
note: previous attribute is here
8 errors generated.
Can anyone help me?
Thanks.
Lei Zhang
unread,
Sep 14, 2023, 12:00:16 AM
9/14/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Paulo Coutinho, pdfium
(Replying the from the right email address)
In the GN config, add pdf_use_partition_alloc=false. PartitionAlloc
requires use_custom_libcxx to be set to true.
> --
> You received this message because you are subscribed to the Google Groups "pdfium" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
pdfium+un...@googlegroups.com
.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/pdfium/8c09da19-94ff-4719-a9df-3d6dd7924913n%40googlegroups.com
.
Lei Zhang
unread,
Sep 14, 2023, 2:40:01 AM
9/14/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Paulo Coutinho, pdfium
Or try this CL / wait for it to land:
https://pdfium-review.googlesource.com/111814
Reply all
Reply to author
Forward
0 new messages