Solved BUG in the Chromium port : error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]...

Hello.

I'm trying to compile Chromium from the ports on my system (14.0 p6 with latest packages),but I found a bug.

Code:
[root@marietto /usr/ports/www/chromium]==> make
......
Link: @bin/pyproject-build --> bin/pyproject-build-3.11
====> Compressing man pages (compress-man)
===>  Installing for py311-build-1.2.1
===>  Checking if py311-build is already installed
===>   Registering installation for py311-build-1.2.1 as automatic
Installing py311-build-1.2.1...
pkg-static: py311-build-1.2.1 conflicts with py39-build-1.2.1 (installs files into the same place).  Problematic file: /usr/local/bin/pyproject-build
*** Error code 1

Stop.
make[6]: stopped in /usr/ports/devel/py-build
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/devel/py-wheel
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/textproc/py-markupsafe
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/devel/py-Jinja2
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/py-Jinja2
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/chromium
*** Error code 1

Stop.
make: stopped in /usr/ports/www/chromium

[root@marietto /usr/ports/www/chromium]==> mv /usr/local/bin/pyproject-build /usr/local/bin/pyproject-build_

[root@marietto /usr/ports/www/chromium]==> make

===>   chromium-125.0.6422.112 depends on executable: bash - found
===>   chromium-125.0.6422.112 depends on package: py311-Jinja2>0 - not found
===>  Staging for py311-Jinja2-3.1.3
===>   py311-Jinja2-3.1.3 depends on package: py311-markupsafe>=2.0.0 - not found
===>   py311-markupsafe-2.1.5_1 depends on package: py311-setuptools>=0 - found
===>   py311-markupsafe-2.1.5_1 depends on package: py311-wheel>=0 - not found
===>   py311-wheel-0.43.0 depends on package: py311-flit-core>=3.8 - found
===>   py311-wheel-0.43.0 depends on file: /usr/local/bin/python3.11 - found
===>   py311-wheel-0.43.0 depends on package: py311-build>=0 - not found
===>  Installing for py311-build-1.2.1
===>  Checking if py311-build is already installed
===>   Registering installation for py311-build-1.2.1 as automatic
Installing py311-build-1.2.1...
pkg-static: py311-build-1.2.1 conflicts with py39-build-1.2.1 (installs files into the same place).  Problematic file: /usr/local/bin/pyproject-build
*** Error code 1

Stop.
make[6]: stopped in /usr/ports/devel/py-build
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/devel/py-wheel
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/textproc/py-markupsafe
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/devel/py-Jinja2
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/py-Jinja2
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/chromium
*** Error code 1

Stop.
make: stopped in /usr/ports/www/chromium
 
I'm not sure if the solution that I've found is good,but anyway,I fixed that bug removing some py39* packages.
 
Would be nice if pkg-update runs that to show entries since the last time you ran pkg-update or pkg-upgrade.
 
The compilation of Chromium can't be completed :

Code:
[root@marietto /usr/ports/www/chromium]==> MAKE_JOBS_UNSAFE=yes make

 -m64 -msse3 -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-6422-1715686914-39d3c200676449e33ad84989ea45ad3474fab6e2-013ab7d1275249b95c27d77aaaa0d257ac6d2359.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -mllvm -enable-ext-tsp-block-placement=1 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wno-invalid-offsetof -Wno-vla-extension -Wno-shadow -Wno-unused-function -isystem/usr/local/include -isystem/usr/local/include -std=c11 -c ../../third_party/sqlite/sqlite3_shim.c -o obj/third_party/sqlite/chromium_sqlite3/sqlite3_shim.o
In file included from ../../third_party/sqlite/sqlite3_shim.c:16:
../../third_party/sqlite/src/amalgamation/sqlite3.c:53619:21: error: call to undeclared function 'alloca'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 53619 |     u32 *aiValues = sqlite3StackAllocRaw(0, sizeof(p->u.aHash));
       |                     ^
../../third_party/sqlite/src/amalgamation/sqlite3.c:20536:38: note: expanded from macro 'sqlite3StackAllocRaw'
 20536 | # define sqlite3StackAllocRaw(D,N)   alloca(N)
       |                                      ^
../../third_party/sqlite/src/amalgamation/sqlite3.c:53619:10: error: incompatible integer to pointer conversion initializing 'u32 *' (aka 'unsigned int *') with an expression of type 'int' [-Wint-conversion]
 53619 |     u32 *aiValues = sqlite3StackAllocRaw(0, sizeof(p->u.aHash));
       |          ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/sqlite/src/amalgamation/sqlite3.c:78371:14: error: call to undeclared function 'alloca'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 78371 |   b.apCell = sqlite3StackAllocRaw(0, szScratch );
       |              ^
../../third_party/sqlite/src/amalgamation/sqlite3.c:20536:38: note: expanded from macro 'sqlite3StackAllocRaw'
 20536 | # define sqlite3StackAllocRaw(D,N)   alloca(N)
       |                                      ^
../../third_party/sqlite/src/amalgamation/sqlite3.c:78371:12: error: incompatible integer to pointer conversion assigning to 'u8 **' (aka 'unsigned char **') from 'int' [-Wint-conversion]
 78371 |   b.apCell = sqlite3StackAllocRaw(0, szScratch );
       |            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/sqlite/src/amalgamation/sqlite3.c:166054:12: error: call to undeclared function 'alloca'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 166054 |   pSpace = sqlite3StackAllocRawNN(pParse->db, nSpace);
        |            ^
../../third_party/sqlite/src/amalgamation/sqlite3.c:20537:38: note: expanded from macro 'sqlite3StackAllocRawNN'
 20537 | # define sqlite3StackAllocRawNN(D,N) alloca(N)
       |                                      ^
../../third_party/sqlite/src/amalgamation/sqlite3.c:166054:10: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
 166054 |   pSpace = sqlite3StackAllocRawNN(pParse->db, nSpace);
        |          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/chromium
*** Error code 1

Stop.
make: stopped in /usr/ports/www/chromium
 
Back
Top