Comments (7)
Wow, that's impressive work! I don't know what libsupc++, and how much of what
you
did was needed for shared libgcc (is shared libgcc normal in msys-land?) vs how
much
is just ctemplate not supporting mingw, but there's definitely some of the
latter,
which I'll try to fix up in the next release. It shouldn't be that hard.
It's not clear to me which script test was breaking for you -- the project has
several. What's the actual error/failure message that you got?
If it's in make_tpl_varnames_h_unittest, then the data lives in
/tmp/make_tpl_varnames_h_unittest_sh_dir.
Original comment by [email protected]
on 24 Nov 2009 at 10:24
- Added labels: Type-Enhancement, Priority-Medium
from ctemplate.
I set to work today getting ctemplate to work under mingw. It's just about done
(though against a much older mingw, it looks like, that's running gcc
3.something).
I had to make a whole bunch of changes, which I'll get reviewed after
thanksgiving,
most likely, and then submit to the SVN repository.
Original comment by [email protected]
on 25 Nov 2009 at 2:12
- Changed state: Started
from ctemplate.
Older MinGW did not provide either libgcc or libstdc++ as a shared library and
they
forced the use of SJLJ EH. MinGW GCC 4.4 is the first version to support
libstdc++
as a shared library and also supports DWARF2 EH. I personally greatly prefer
to use
the latter, since it makes smaller executables and improves performance over
SJLJ EH.
libsupc++ is normally linked in by default when linking with G++. It is the
GCC C++
support library. However, you run into symbol collisions if you try to link
with
libstdc++.dll and libstdc++.a at the same time, so you have to link with GCC and
explicitly provide the right libraries.
The script failure was in a state machine generation test. The error spat out
two
identical looking pieces of C source code and then claimed that they didn't
match. I
suspect that this is because of a line ending difference. If one of the
examples was
produced with an Msys utility, and another was produced by a native Windows
program,
then they might have different line endings. Alternatively, if the reference
input
is provided in the tarball, then the line endings in the tarball would mostly
likely
be Unix-style instead of Windows-style.
The intent is not to actually use libctemplate under Msys - I only use Msys to
run
configure. The intent is to build a Windows native DLL for writing native
windows
programs using MinGW's port of GCC.
Thanks for your help.
Original comment by [email protected]
on 27 Nov 2009 at 4:22
from ctemplate.
I'm not sure I understand your last paragraph (well, not "thanks for your
help," but
the one before that), but if you're running the unittests under mingw, then you
are
using libctemplate under msys, so we'll have to get that working right.
I'm still not sure what test is failing. If you can attach the complete output
of
your test run, that would be helpful. We can test your theory that the problem
is
with line endings, and if so, figure out the right fix.
Original comment by [email protected]
on 30 Nov 2009 at 6:44
from ctemplate.
The difference is that libctemplate was not linked against msys-1.0.dll, so
that it
is a native Windows DLL that uses the standard MSVC runtime library and not the
MSYS
runtime library. I have attached the console output of running
$ PATH=/c/Python26:$PATH make check &> errors.txt
When I view this file using MSYS vi, the actual output contains extra line
ending
characters, displayed as ^M, when compared to the expected output.
Original comment by [email protected]
on 1 Dec 2009 at 2:46
Attachments:
from ctemplate.
Gotcha. OK, I've modified the generator test to strip windows newlines before
doing
the diff. I'll check that into the SVN repository shortly, after it goes
through the
review process here.
Original comment by [email protected]
on 1 Dec 2009 at 8:36
from ctemplate.
OK, ctemplate should compile under mingw with ctemplate 0.97, just released.
Original comment by [email protected]
on 20 Apr 2010 at 5:54
- Changed state: Fixed
from ctemplate.
Related Issues (20)
- README missing autogen.sh step for Compilation HOT 4
- python2 does not work with Mac with src/htmlparser/generate_fsm.py HOT 4
- make (dist)check fails HOT 5
- Macro Redefinition and Header Conflicts Causes Issue Installing HOT 5
- Include files *_fsm.h not exist HOT 6
- Not libctemplate.
- Libtool library used but 'LIBTOOL' is undefined HOT 3
- Preview documentation as GitHub Pages HOT 1
- Ctemplate issue while using protoc plugins HOT 3
- VS2017 latest version, build ctemplate failed HOT 11
- build with >=gcc-7.1 failed HOT 10
- Create release that supports Python 3 HOT 12
- How to skip blank field? HOT 1
- ctemplate 2.4 Mac OSX build failed
- How to install Ctemplate in Centos 7?
- when i reboot service, ctemplate produce coredump HOT 3
- `README.md` points to a non-existent file `INSTALL` HOT 1
- ctemplate-2.4 dose not has the configure file๏ผ HOT 6
- A bunch of undefined errors occur when make HOT 1
- Add support for windows arm64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctemplate.