New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 769245 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

use_system_libjpeg = true jpeglib.h not found

Reported by dntsp...@gmail.com, Sep 27 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3130.0 Safari/537.36

Steps to reproduce the problem:
1. gn args out/Default
2. use_system_libjpeg = true
3. ninja -C out/Default chrome

What is the expected behavior?
-I/usr/include

What went wrong?
[5851/30606] CC obj/third_party/iccjpeg/iccjpeg/iccjpeg.o
FAILED: obj/third_party/iccjpeg/iccjpeg/iccjpeg.o 
../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/
iccjpeg/iccjpeg/iccjpeg.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -D
USE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DFULL_SAFE
_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDT
RIAL_TESTING_ENABLED -DCR_CLANG_REVISION=\"313786-1\" -D_FILE_OFFSET_BITS=64 -D_
LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_
MACROS -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_
ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DUSE_SYSTEM_LI
BJPEG -I../.. -Igen -I../../third_party/iccjpeg -fno-strict-aliasing --param=ssp
-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TI
ME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -B../../third_party/binutils/
Linux_x64/Release/bin -pthread -fcolor-diagnostics -Xclang -mllvm -Xclang -instc
ombine-lower-dbg-declare=1 -m64 -march=x86-64 -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch -Wno-tautological-unsigned-zero-compare -Wno-null-pointer-arithmetic -Wno-tautological-unsigned-enum-zero-compare -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g0 -fvisibility=hidden -Xclang -load -Xclang
../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-auto-raw-pointer -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=gnu11 --sysroot=../../build/linux/debian_jessie_amd64-sysroot -c ../../third_party/iccjpeg/iccjpeg.c -o obj/third_party/iccjpeg/iccjpeg/iccjpeg.o
In file included from ../../third_party/iccjpeg/iccjpeg.c:24:
../../third_party/iccjpeg/iccjpeg.h:26:10: fatal error: 'jpeglib.h' file not found
#include <jpeglib.h>

Did this work before? N/A 

Chrome version:  63.0.3226.0  Channel: n/a
OS Version: LFS
Flash Version: 

Comparable with   Issue 765914 
 
Cc: divya.pa...@techmahindra.com
Labels: Triaged-ET TE-NeedsTriageHelp
Unable to build the Chrome  from our end, hence adding TE-Needs-TriageHelp label for further triage of the issue.
Components: -Platform>DevTools Build

Comment 3 by dntsp...@gmail.com, Dec 9 2017

same with 65.0.3289.0

Owner: thomasanderson@chromium.org
Status: Started (was: Unconfirmed)

Comment 5 by dntsp...@gmail.com, Dec 13 2017

Additional information: my PKG_CONFIG_PATH was not set because libjpeg.pc
is in /usr/lib64/pkgconfig/
Next time building i will try setting PKG_CONFIG_PATH if that makes a difference
Status: WontFix (was: Started)
Please add use_sysroot=false to your gn args.  Building with system libraries with the sysroot enabled is unsupported at this time.

Comment 7 by dntsp...@gmail.com, Dec 16 2017

I will try use_sysroot=false next time.

Comment 8 by dntsp...@gmail.com, Mar 21 2018

New attempt version 67.0.3373.0
enable_nacl = false
ffmpeg_branding = "Chrome"
is_debug = false
proprietary_codecs = true
remove_webcore_debug_symbols = true
use_sysroot = false
use_system_freetype = true
use_system_harfbuzz = true
use_system_lcms2 = true
use_system_libdrm = true
use_system_libjpeg = true
use_system_libpng = true
use_system_zlib = true

use_sysroot = false results in
        ERROR at //extensions/shell/installer/linux/BUILD.gn:205:19: Empty directory path.
      rebase_path(sysroot, root_build_dir),

use_system_lcms2 = true results in lcms2.pc not found even after setting PKG_CONFIG_PATH

use_system_libjpeg = true
use_system_libpng = true resulted in linking error
[34502/34603] ACTION //tools/v8_context_snapshot:generate_v8_context_snapshot(//build/toolchain/linux:clang_x64)
FAILED: v8_context_snapshot.bin
python ../../build/gn_run_binary.py ./v8_context_snapshot_generator --output_file=v8_context_snapshot.bin
././v8_context_snapshot_generator: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory

because I have libjpeg-turbo with libjpeg.so.8

Comment 10 by dntsp...@gmail.com, Mar 21 2018

c#9 You mean version 67.0.3373.0 is just one day short before the commit Mar 17 04:18 ? Chromium is working now so I'll try next time, probably version 69.0

Comment 11 by dntsp...@gmail.com, Jun 22 2018

Status can be set to fixed

69.0.3467.0

enable_nacl = false
ffmpeg_branding = "Chrome"
is_debug = false
proprietary_codecs = true
remove_webcore_debug_symbols = true
use_sysroot = false
use_system_freetype = true
use_system_harfbuzz = true
use_system_lcms2 = true
use_system_libdrm = true
use_system_libjpeg = true
use_system_libpng = true
use_system_zlib = true
works and chrome running now
Status: Fixed (was: WontFix)

Sign in to add a comment