Bug 277014 - sysutils/bulk_extractor: v2.1.0 fails to build in poudriere (include path issue?)
Summary: sysutils/bulk_extractor: v2.1.0 fails to build in poudriere (include path iss...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: MANTANI Nobutaka
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-02-12 21:59 UTC by Matthias Andree
Modified: 2024-02-16 16:43 UTC (History)
0 users

See Also:
nobutaka: maintainer-feedback+


Attachments
poudriere build log (FreeBSD 14.0-RELEASE-p3 host running on amd64) (137.61 KB, text/plain)
2024-02-12 22:00 UTC, Matthias Andree
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Andree freebsd_committer freebsd_triage 2024-02-12 21:59:43 UTC
Hello,

I cannot seem to build bulk_extractor 2.1.0; I have lots of 

[00:01:35] c++: warning: /usr/local/include: 'linker' input unused [-Wunused-command-line-argument]

and ultimately 

[00:01:55] c++ -std=c++17  -MD -O2 -O3 -Wall -Wcast-align -Wdisabled-optimization -Weffc++ -Wfloat-equal -Wmissing-noreturn -Wmultichar -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-promo -Wwrite-strings -fPIC -fno-strict-aliasing -fstack-protector-strong -g -isystem -march=znver1 -pipe /usr/local/include  -fstack-protector-strong  -L/usr/local/lib  -o bulk_extractor  be20_api/abstract_image_reader.o  be20_api/atomic_unicode_histogram.o  be20_api/feature_recorder.o  be20_api/feature_recorder_file.o  be20_api/feature_recorder_set.o  be20_api/feature_recorder_sql.o  be20_api/histogram_def.o  be20_api/path_printer.o be20_api/pcap_fake.o  be20_api/pos0.o be20_api/regex_vector.o  be20_api/sbuf.o be20_api/sbuf_stream.o  be20_api/scan_sha1_test.o  be20_api/scanner_config.o  be20_api/scanner_params.o  be20_api/scanner_set.o  be20_api/test_image_reader.o  be20_api/threadpool.o  be20_api/unicode_escape.o be20_api/utils.o  be20_api/word_and_context_list.o   base64_forensic.o bulk_extractor.o  image_process.o notify_thread.o  phase1.o sbuf_decompress.o bulk_extractor_scanners.o scan_aes.o  scan_base64.o scan_ccns2.o scan_elf.o  scan_evtx.o scan_exif.o exif_reader.o  exif_entry.o scan_exiv2.o  scan_facebook.o scan_find.o  scan_gzip.o scan_hiberfile.o  pyxpress.o scan_httplogs.o scan_json.o  scan_kml.o scan_msxml.o scan_net.o  scan_ntfsindx.o scan_ntfslogfile.o  scan_ntfsmft.o scan_ntfsusn.o  scan_outlook.o scan_pdf.o scan_rar.o  scan_sqlite.o scan_utmp.o scan_vcard.o  scan_windirs.o scan_winlnk.o  scan_winpe.o scan_winprefetch.o  scan_wordlist.o scan_xor.o scan_zip.o  pcap_writer.o scan_base16.o scan_accts.o  scan_email.o scan_gps.o   rar/arccmt.o rar/archive.o  rar/arcread.o rar/cmddata.o  rar/coder.o rar/crc.o rar/encname.o  rar/errhnd.o rar/extinfo.o  rar/extract.o rar/file.o rar/filefn.o  rar/filestr.o rar/getbits.o  rar/global.o rar/match.o rar/model.o  rar/options.o rar/pathfn.o rar/rar.o  rar/rarpch.o rar/rarvmtbl.o  rar/rawread.o rar/rdwrfn.o  rar/resource.o rar/rs.o rar/savepos.o  rar/smallfn.o rar/strfn.o  rar/strlist.o rar/suballoc.o  rar/system.o rar/timefn.o  rar/unicode.o rar/unpack.o  main.o -L/usr/local/lib -labsl_bad_optional_access -labsl_bad_variant_access -labsl_base -labsl_city -labsl_civil_time -labsl_cord -labsl_cord_internal -labsl_cordz_functions -labsl_cordz_handle -labsl_cordz_info -labsl_crc32c -labsl_crc_cord_state -labsl_crc_cpu_detect -labsl_crc_internal -labsl_debugging_internal -labsl_demangle_internal -labsl_exponential_biased -labsl_flags -labsl_flags_commandlineflag -labsl_flags_commandlineflag_internal -labsl_flags_config -labsl_flags_internal -labsl_flags_marshalling -labsl_flags_private_handle_accessor -labsl_flags_program_name -labsl_flags_reflection -labsl_graphcycles_internal -labsl_hash -labsl_hashtablez_sampler -labsl_int128 -labsl_log_severity -labsl_low_level_hash -labsl_malloc_internal -labsl_raw_hash_set -labsl_raw_logging_internal -labsl_spinlock_wait -labsl_stacktrace -labsl_str_format_internal -labsl_strings -labsl_strings_internal -labsl_symbolize -labsl_synchronization -labsl_throw_delegate -labsl_time -labsl_time_zone -lre2 -lrt -pthread /usr/lib/libexecinfo.so -liconv -lewf -lstdc++ -lexpat -lz -ldl -ltermcap -lsqlite3 -lcrypto -lgcrypt -lgpg-error -lexpat -L/usr/local/lib -lexiv2
[00:01:55] ld: error: cannot open /usr/local/include: Is a directory
[00:01:55] c++: error: linker command failed with exit code 1 (use -v to see invocation)
[00:01:55] *** Error code 1
[00:01:55] 
[00:01:55] Stop.

Full poudriere log attached. Note this in the configure log - it seems fishy to have /usr/local/include by itself and the -march=znver1 -pipe inserted between -isystem and /usr/local/include. This seems wrong.

[00:00:24] configure: libewf is now yes
[00:00:24] checking for libiconv_open in -liconv... yes
[00:00:24] checking for exiv2/image.hpp... yes
[00:00:24] checking for exiv2/exif.hpp... yes
[00:00:24] checking for exiv2/error.hpp... yes
[00:00:24] Using EXIV2
[00:00:24] configure: CFLAGS are now -O2 -O3 -fPIC -fno-strict-aliasing -fstack-protector-strong -g -isystem -march=znver1 -pipe /usr/local/include 
[00:00:24] configure: CPPFLAGS are now -DUTC_OFFSET=+0000 -I/usr/local/include -isystem /usr/local/include 
[00:00:24] configure: CXXFLAGS are now -MD -O2 -O3 -Wall -Wcast-align -Wdisabled-optimization -Weffc++ -Wfloat-equal -Wmissing-noreturn -Wmultichar -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-promo -Wwrite-strings -fPIC -fno-strict-aliasing -fstack-protector-strong -g -isystem -march=znver1 -pipe /usr/local/include


Note I set a few variables in my poudriere's make.conf:

CPUTYPE=                znver1
OPTIONS_UNSET+=         LTO
Comment 1 Matthias Andree freebsd_committer freebsd_triage 2024-02-12 22:00:47 UTC
Created attachment 248411 [details]
poudriere build log (FreeBSD 14.0-RELEASE-p3 host running on amd64)
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-02-16 16:42:31 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b3d3fc27fa95e88812c2a854f9fe6fa9681a19f

commit 8b3d3fc27fa95e88812c2a854f9fe6fa9681a19f
Author:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
AuthorDate: 2024-02-16 16:36:25 +0000
Commit:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
CommitDate: 2024-02-16 16:40:52 +0000

    sysutils/bulk_extractor: Fix build error

    PR:             277014
    Reported by:    mandree

 sysutils/bulk_extractor/Makefile | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
Comment 3 MANTANI Nobutaka freebsd_committer freebsd_triage 2024-02-16 16:43:33 UTC
Fixed, thanks!