-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
My error:
TypeError: a bytes-like object is required, not 'str':
File "/home/toto/dev/program/BuildInfoCollector.py", line 232:
write_build_infos(includes, macros, env)
File "/home/toto/dev/program/BuildInfoCollector.py", line 196:
print('SYS_C_INCLUDES = [%s]' % to_string(collect_sys_includes('cc', environ), environ))
File "/home/toto/dev/program/BuildInfoCollector.py", line 100:
return parse_includes(cc_output)
File "/home/toto/dev/program/BuildInfoCollector.py", line 90:
cc_output = cc_output.replace('\r', '')
My scons:
import sys
import os, pwd
import fnmatch
import xml.etree.ElementTree as ET
import subprocess,shlex
from subprocess import Popen, PIPE
import datetime
env = Environment(
CXX = "/opt/rh/devtoolset-7/root/usr/bin/g++",\
CC = "/opt/rh/devtoolset-7/root/usr/bin/cc",\
CPP = "/opt/rh/devtoolset-7/root/usr/bin/cpp ",\
LINK = "/opt/rh/devtoolset-7/root/usr/bin/g++",\
SHCXXCOMSTR = "Compiling shared object $TARGET",\
CCCOMSTR = "Compiling C source File $TARGET",\
CXXCOMSTR = "Compiling C++ source File $TARGET",\
SHLINKCOMSTR = "Linking shared $TARGET",\
LINKCOMSTR = "Linking $TARGET"\
)
debug = ARGUMENTS.get('debug', 0)
Export('env')
Decider('MD5-timestamp')
source = Glob('sources/*.cpp')
lib = [ 'gcov','libpq', 'stdc++fs','boost_program_options', 'boost_date_time']
libpath = [".",'/usr/pgsql-10/lib']
CPPPATH = [ 'headers', 'uTests/headers', 'uTests/mocking', '/usr/local/include/gtest','/usr/local/include/gmock','/usr/include','/usr/local/include', '/usr/pgsql-10/include']
CXXFLAGS = ['-g', '-Wno-trigraphs', '-pedantic', '-Wall', '-Wextra', '-fprofile-arcs', '-ftest-coverage', '--std=c++17', '-O2']
env.Program(target = 'program' , source = source , LIBS = lib, LIBPATH = libpath, CPPPATH = CPPPATH , CXXFLAGS = CXXFLAGS, LINKFLAGS=[ "--coverage"])
Python 3.6.3
Eclipse IDE for C/C++ Developers
Version: 2018-09 (4.9.0)
Build id: 20180917-1800
g++ --version
g++ (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
uname -a
Linux localhost.localdomain 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Metadata
Metadata
Assignees
Labels
No labels