Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40513 closed defect (fixed)

codeblocks: universal variant fails

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), cooljeanius (Eric Gallager)
Port: codeblocks

Description

clang: error: cannot use 'precompiled-header' output with multiple -arch options

Change History (9)

comment:1 Changed 11 years ago by mojca (Mojca Miklavec)

I would be grateful for hints about how to disable precompiled headers. Maybe this is something that could/should go to FAQ.

A tiny bit is written here: http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html

Last edited 11 years ago by mojca (Mojca Miklavec) (previous) (diff)

comment:2 Changed 11 years ago by mojca (Mojca Miklavec)

Cc: jeremyhu@… added
Version: 2.2.0

comment:3 in reply to:  1 Changed 11 years ago by cooljeanius (Eric Gallager)

Replying to mojca@…:

I would be grateful for hints about how to disable precompiled headers. Maybe this is something that could/should go to FAQ.

A tiny bit is written here: http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html

There should be a configure flag for it, if not, there should be some Autoconf macros to handle that, which could be used in a patch for the configure.ac file. I know that bakefile's bakefile.m4 macro file has stuff relating to precompiled headers in it, for example...

comment:4 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:5 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Why not just use muniversal?

comment:6 Changed 11 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed

I have found

--enable-pch=no

and committed it in r111287.

This seems like a weird way, I would expect a flag --disable-pch, but well ...

comment:7 in reply to:  6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to mojca@…:

I have found

--enable-pch=no

and committed it in r111287.

This seems like a weird way, I would expect a flag --disable-pch, but well ...

codeblocks uses an autotools-based configure script, therefore "--enable-foo=no" is the same as "--disable-foo", just as "--enable-foo=yes" is the same as "--enable-foo".

comment:8 Changed 11 years ago by mojca (Mojca Miklavec)

OK, I was expecting an explicit --disable-pch to appear somewhere in configure script, but I see now that there is an option wildcard at the beginning of the file. I knew that --disable-foo was supposed to be the same as --enable-foo=no, but I thought that implementation for this particular option was lacking something.

But I hope that universal build works for you now?

comment:9 in reply to:  8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to mojca@…:

But I hope that universal build works for you now?

Yes! Thanks.

Note: See TracTickets for help on using tickets.