[Solved] Compilation fails on Debian.

Having trouble installing or compiling FreeCAD? Get help here.
fcaduser
Posts: 240
Joined: Wed Feb 19, 2014 6:53 pm
Location: Near Paris, France

Re: Compilation fails on Debian.

Postby fcaduser » Tue Aug 20, 2019 6:28 pm

@ reox

OK, so I'm going to hasten my upgrade to Buster.

@ wmayer

I don't know if my second report is still relevant ?
reox
Posts: 768
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Compilation fails on Debian.

Postby reox » Tue Aug 20, 2019 6:30 pm

fcaduser wrote:
Tue Aug 20, 2019 6:20 pm
Can you type "uname -a" in a command line, please ?

Yes, I hope it will entail only little adjustment.
do you mean me?

On my build system:

Code: Select all

Linux pbuilder 4.19.0-5-amd64 #1 SMP Debian 4.19.37-3 (2019-05-15) x86_64 GNU/Linux
But I hav'nt upgraded it in a longer time now :D (and I'm using pbuilder to build the actual packages)
fcaduser
Posts: 240
Joined: Wed Feb 19, 2014 6:53 pm
Location: Near Paris, France

Re: Compilation fails on Debian.

Postby fcaduser » Tue Aug 20, 2019 6:43 pm

Oh.... "lsb_release -a" is a clearer command to check it :

No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
reox
Posts: 768
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Compilation fails on Debian.

Postby reox » Tue Aug 20, 2019 6:53 pm

again on my buildsystem:

Code: Select all

No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux bullseye/sid
Release:	unstable
Codename:	sid
and

Code: Select all

No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux bullseye/sid
Release:	testing
Codename:	bullseye
But I would not recommend you upgrade to bullseye or even sid. Buster should work as well.
wmayer
Site Admin
Posts: 15500
Joined: Thu Feb 19, 2009 10:32 am

Re: Compilation fails on Debian.

Postby wmayer » Tue Aug 20, 2019 7:02 pm

reox wrote:
Tue Aug 20, 2019 6:17 pm
There is only the "issue" that gcc9 in sid produces thousands more warnings when compiling.
Could you at some point provide a log file with all these warnings, please?
fcaduser
Posts: 240
Joined: Wed Feb 19, 2014 6:53 pm
Location: Near Paris, France

Re: Compilation fails on Debian.

Postby fcaduser » Tue Aug 20, 2019 7:03 pm

OK, thank you. My personal policy is now always stick to the stable version.

https://en.wikipedia.org/wiki/Debian_version_history
wmayer
Site Admin
Posts: 15500
Joined: Thu Feb 19, 2009 10:32 am

Re: Compilation fails on Debian.

Postby wmayer » Tue Aug 20, 2019 7:07 pm

fcaduser wrote:
Tue Aug 20, 2019 6:28 pm
@ reox

OK, so I'm going to hasten my upgrade to Buster.

@ wmayer

I don't know if my second report is still relevant ?
Here the std:: prefix is missing, too.
fcaduser
Posts: 240
Joined: Wed Feb 19, 2014 6:53 pm
Location: Near Paris, France

Re: Compilation fails on Debian.

Postby fcaduser » Tue Aug 20, 2019 7:17 pm

grep ios /home/mainuser/softwares/freecad_source/src/Mod/Part/App/PropertyTopoShape.cpp

OSD_OpenStream(os, File, ios::out);
os.open(File, ios::out);
Base::ifstream file(fi, std::ios::in | std::ios::binary);
// ulCurr = buf->pubseekoff(0, std::ios::cur, std::ios::in);
// ulSize = buf->pubseekoff(0, std::ios::end, std::ios::in);
// buf->pubseekoff(ulCurr, std::ios::beg, std::ios::in);
Base::ofstream file(fi, std::ios::out | std::ios::binary);
ulSize = buf->pubseekoff(0, std::ios::cur, std::ios::in);
So same action, add "std::" manually ?
wmayer
Site Admin
Posts: 15500
Joined: Thu Feb 19, 2009 10:32 am

Re: Compilation fails on Debian.

Postby wmayer » Tue Aug 20, 2019 7:49 pm

Yes.
fcaduser
Posts: 240
Joined: Wed Feb 19, 2014 6:53 pm
Location: Near Paris, France

Re: Compilation fails on Debian.

Postby fcaduser » Tue Aug 20, 2019 8:00 pm

What do you think of this ? :
grep -rI -P 'ios::' | grep -v 'std::'


src/Mod/Part/App/PropertyTopoShape.cpp: OSD_OpenStream(os, File, ios::out);
src/Mod/Part/App/PropertyTopoShape.cpp: os.open(File, ios::out);
src/Mod/Mesh/Gui/ViewProvider.cpp: zipios::GZIPOutputStream gzip(str);
src/Mod/Mesh/App/Exporter.cpp: auto *zipStreamPtr( new zipios::ZipOutputStream(fi.filePath()) );
src/Mod/Mesh/App/Exporter.cpp: zipStreamPtr->putNextEntry( zipios::ZipCDirEntry(fi.fileName()) );
src/Mod/Mesh/App/Core/MeshIO.cpp: zipios::GZIPOutputStream gzip(str);
src/Mod/JtReader/App/JrJt/JtReader.cpp: strm.open(_fileName, ios::binary);
src/Mod/JtReader/App/JrJt/JtReader.cpp: strm.open(_fileName, ios::binary);
src/Mod/Path/libarea/dxf.cpp: m_ofs = new ofstream(filepath, ios::out);
src/Mod/Path/libarea/dxf.cpp: m_ofs = new ofstream(filepath, ios::out);
src/Mod/Import/App/dxf.cpp: m_ofs = new ofstream(filepath, ios::out);
src/Mod/Draft/App/dxf.cpp: m_ofs = new ofstream(filepath, ios::out);
src/Mod/Draft/App/dxf.cpp: m_ofs = new ofstream(filepath, ios::out);
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Hypothesis_2D.cpp:// load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Hypothesis.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Hypothesis.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Hypothesis.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Hypothesis.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Hypothesis.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Hypothesis.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Hypothesis.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_2D.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_SimpleHypothesis_3D.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/NETGENPlugin/NETGENPlugin_Mesher.cpp: ofstream outfile(pyFile.c_str(), ios::out);
src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp: ofstream ficcon(ficdump.c_str(), ios::out);
src/3rdParty/salomesmesh/src/SMESH/SMESH_Pattern.cpp:// theFile.setf(ios::fixed);// use 123.45 floating notation
src/3rdParty/salomesmesh/src/SMESH/SMESH_Pattern.cpp:// theFile.setf(ios::right);
src/3rdParty/salomesmesh/src/SMESH/SMESH_Pattern.cpp:// theFile.flags( theFile.flags() & ~ios::showpoint); // do not show trailing zeros
src/3rdParty/salomesmesh/src/SMESH/SMESH_Pattern.cpp:// theFile.setf(ios::showpoint); // do not show trailing zeros
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_NumberOfSegments.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_NumberOfSegments.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_NumberOfSegments.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_NumberOfSegments.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_NumberOfSegments.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_NumberOfSegments.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_NumberOfSegments.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_NumberOfLayers.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_LocalLength.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_LocalLength.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_MaxElementVolume.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_QuadrangleParams.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_QuadrangleParams.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_MaxElementArea.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Arithmetic1D.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Arithmetic1D.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_SegmentLengthAroundVertex.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_LengthFromEdges.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_AutomaticLength.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Deflection1D.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_MaxLength.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_MaxLength.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_MaxLength.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_StartEndLength.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_StartEndLength.cpp: load.clear(ios::badbit | load.rdstate());
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Adaptive1D.cpp: load.clear(ios::badbit | load.rdstate());
src/Gui/SoFCDB.cpp: zipios::GZIPOutputStream gzip(str);
src/Gui/MergeDocuments.cpp: this->stream = new zipios::ZipInputStream(input);
src/Gui/Document.cpp: xmlReader.readFiles(static_cast<zipios::ZipInputStream&>(reader.getStream()));
src/Gui/Document.cpp: xmlReader.readFiles(static_cast<zipios::ZipInputStream&>(reader.getStream()));
src/Gui/MergeDocuments.h: zipios::ZipInputStream* stream;
src/zipios++/zipfile.cpp: ifstream ifs( name.c_str(), ios::in | ios::binary ) ;
src/zipios++/zipfile.cpp: ifs.seekg( -4, ios::end ) ;
src/zipios++/zipfile.cpp: /* , ios::open_mode mode */ )
src/zipios++/zipfile.cpp: ifstream _zipfile( wsname.c_str(), ios::in | ios::binary ) ;
src/zipios++/zipfile.cpp: ifstream _zipfile( name.c_str(), ios::in | ios::binary ) ;
src/zipios++/zipfile.cpp: _vs.vseekg( _zipfile, _eocd.offset(), ios::beg ) ;
src/zipios++/zipfile.cpp: _vs.vseekg( _zipfile, 0, ios::end ) ;
src/zipios++/zipfile.cpp: _vs.vseekg( _zipfile, ent->getLocalHeaderOffset(), ios::beg ) ;
src/zipios++/basicentry.cpp: ifstream is( full_path.c_str(), ios::in | ios::binary ) ;
src/zipios++/basicentry.cpp: is.seekg( 0, ios::end ) ;
src/zipios++/dircoll.cpp: return new ifstream( real_path.c_str(), ios::in | ios::binary ) ;
src/zipios++/dircoll.cpp: ifstream *ifs = new ifstream( real_path.c_str(), ios::in | ios::binary ) ;
src/zipios++/zipinputstreambuf.cpp: int position = _inbuf->pubseekoff(0, ios::cur,
src/zipios++/zipinputstreambuf.cpp: ios::in);
src/zipios++/zipinputstreambuf.cpp: ios::beg, ios::in) ;
src/zipios++/zipinputstreambuf.cpp: _data_start = _inbuf->pubseekoff(0, ios::cur,
src/zipios++/zipinputstreambuf.cpp: ios::in);
src/zipios++/zipfile.h: /* , ios::open_mode mode = ios::in | ios::binary */ ) ;
src/zipios++/backbuffer.h: _vs.vseekg( is, 0, ios::end ) ;
src/zipios++/backbuffer.h: _vs.vseekg( _is, _file_pos, ios::beg ) ;
src/zipios++/virtualseeker.h: inline void vseekg( istream &is, int offset, ios::seekdir sd ) const ;
src/zipios++/virtualseeker.h:void VirtualSeeker::vseekg( istream &is, int offset, ios::seekdir sd ) const {
src/zipios++/virtualseeker.h: if ( sd == ios::cur )
src/zipios++/virtualseeker.h: else if ( sd == ios::beg )
src/zipios++/virtualseeker.h: else if ( sd == ios::end )
src/Tools/thumbs/ThumbnailProvider/ThumbnailProvider.cpp: zipios::ZipInputStream zipstream(file);
src/Tools/thumbs/ThumbnailProvider/ThumbnailProvider.cpp: zipios::ConstEntryPointer entry;
src/Tools/thumbs/FCStdExtractor.cpp: zipios::ZipFile file(m_szFile);
src/Tools/thumbs/FCStdExtractor.cpp: zipios::ConstEntries files = file.entries();
src/Tools/thumbs/FCStdExtractor.cpp: zipios::ConstEntryPointer entry = file.getEntry("thumbnails/Thumbnail.png");
src/Base/Writer.cpp: ZipStream.setf(ios::fixed,ios::floatfield);
src/Base/Writer.cpp: ZipStream.setf(ios::fixed,ios::floatfield);
src/Base/Reader.h: void readFiles(zipios::ZipInputStream &zipstream) const;
src/Base/Persistence.cpp: zipios::ZipInputStream zipstream(stream);
src/Base/Writer.h: zipios::ZipOutputStream ZipStream;
src/Base/Reader.cpp:void Base::XMLReader::readFiles(zipios::ZipInputStream &zipstream) const
src/Base/Reader.cpp: zipios::ConstEntryPointer entry;
src/App/MergeDocuments.cpp: this->stream = new zipios::ZipInputStream(input);
src/App/Document.cpp: zipios::ZipInputStream zipstream(file);
src/App/MergeDocuments.h: zipios::ZipInputStream* stream;